IGH_ResponsiveObject

References
public interface IGH_ResponsiveObject
If you wish to participate in Canvas UI events, you must implement this interface.

Methods

RespondToKeyDown

#
GH_ObjectResponse RespondToKeyDown(GH_Canvas sender, KeyEventArgs e)
sender (GH_Canvas)
e (KeyEventArgs)

RespondToKeyUp

#
GH_ObjectResponse RespondToKeyUp(GH_Canvas sender, KeyEventArgs e)
sender (GH_Canvas)
e (KeyEventArgs)

RespondToMouseDoubleClick

#
GH_ObjectResponse RespondToMouseDoubleClick(GH_Canvas sender, GH_CanvasMouseEvent e)
This function will be called whenever the left button is double-clicked over the canvas. If you are active, you will be the only object who gets called.
sender (GH_Canvas)Base canvas.
e (GH_CanvasMouseEvent)Mouse event arguments.
All Response flags are valid.

RespondToMouseDown

#
GH_ObjectResponse RespondToMouseDown(GH_Canvas sender, GH_CanvasMouseEvent e)
This function will be called whenever a mouse button is pressed over the canvas. If you are active, you will be the only object who gets called. If you are inactive, you might get called if nobody on top of you decides to become active.
sender (GH_Canvas)Base canvas.
e (GH_CanvasMouseEvent)Mouse event arguments.
All Response flags are valid.

RespondToMouseMove

#
GH_ObjectResponse RespondToMouseMove(GH_Canvas sender, GH_CanvasMouseEvent e)
This function will be called when the mouse moves across the canvas. If you are active, you will be the only object who gets called. If you are inactive, you might get called if nobody on top of you decides to become active.
sender (GH_Canvas)Base canvas.
e (GH_CanvasMouseEvent)Mouse event arguments.
All Response flags are valid.

RespondToMouseUp

#
GH_ObjectResponse RespondToMouseUp(GH_Canvas sender, GH_CanvasMouseEvent e)
This function will be called whenever a mouse button is released over the canvas. If you are active, you will be the only object who gets called. If you are inactive, you will not be called at all for MouseUp events.
sender (GH_Canvas)Base canvas.
e (GH_CanvasMouseEvent)Mouse event arguments.
All Response flags are valid.