Event Model
The event argument types raised by the manager, the interaction helper and the host
Beep.Skia reports activity through plain .NET events. The manager raises diagram-level events (ComponentDropped, DrawSurface, SelectionChanged and theme changes), while the interaction helper raises pointer and hover events. The event argument types below carry the payloads.
On this page
Pointer Events
Click and hover payloads.
ComponentClickEventArgs
Event args for component (node) click events.
| Member | Kind | Description |
|---|---|---|
IDrawableComponent Component | Property | Gets or sets the component. |
SKPoint ClickPosition | Property | Gets or sets the click position. |
MouseButton Button | Property | Gets or sets the button. |
bool IsDoubleClick | Property | Gets or sets the is double click. |
DiagramClickEventArgs
Event args for diagram canvas click events (clicking empty space).
| Member | Kind | Description |
|---|---|---|
SKPoint ClickPosition | Property | Gets or sets the click position. |
MouseButton Button | Property | Gets or sets the button. |
LineClickEventArgs
Event args for connection line click events.
| Member | Kind | Description |
|---|---|---|
IConnectionLine Line | Property | Gets or sets the line. |
SKPoint ClickPosition | Property | Gets or sets the click position. |
MouseButton Button | Property | Gets or sets the button. |
bool IsDoubleClick | Property | Gets or sets the is double click. |
HoverChangedEventArgs
Event args for hover state changes.
| Member | Kind | Description |
|---|---|---|
IDrawableComponent Component | Property | Gets or sets the component. |
IConnectionLine Line | Property | Gets or sets the line. |
bool IsHovered | Property | Gets or sets the is hovered. |
SKPoint Position | Property | Gets or sets the position. |
Drag and Drop Events
Payload raised when a component drag ends.
ComponentDropEventArgs
Event args for when a component is dropped after a drag operation. Provides final positions in canvas and screen space along with final bounds.
| Member | Kind | Description |
|---|---|---|
SkiaComponent Component | Property | Gets or sets the component. |
SKPoint CanvasPosition | Property | Gets or sets the canvas position. |
SKPoint ScreenPosition | Property | Gets or sets the screen position. |
SKRect Bounds | Property | Gets or sets the bounds. |
SKPoint Location | Property | Gets or sets the location. |