class
GUIMouseEvent
Contains data about a GUI mouse input event.
This class may store data for many types of events, and some data might not be initialized for some event types. Caller must check event type before relying on the data inside.
Public
Constructors
GUIMouseEvent
GUIMouseEvent
Methods
GetPosition
The position of the mouse when the event happened.
This is relative to the parent widget of the element this event is being sent to.
GetDragAmount
Returns drag amount in pixels, if event is drag related.
GetDragStartPosition
Returns the position where the drag was started from, if event is drag related.
GetWheelScrollAmount
Returns amount of mouse wheel scroll, if event is scroll wheel related.
IsButtonDown
Checks is the specified mouse button pressed.
GetDragAndDropData
Returns data being dragged by a drag and drop event.
Only valid if event is drag and drop related.
IsShiftDown
Checks is the shift button being held.
IsCtrlDown
Checks is the control button being held.
IsAltDown
Checks is the alt button being held.
Private
Methods
SetMouseOverData
Initializes the event with MouseOver event data.
SetMouseOutData
Initializes the event with MouseOut event data.
SetMouseMoveData
Initializes the event with MouseMove event data.
SetMouseWheelScrollData
Initializes the event with MouseWheelScroll event data.
SetMouseUpData
Initializes the event with MouseUp event data.
SetMouseDownData
Initializes the event with MouseDown event data.
SetMouseDoubleClickData
Initializes the event with MouseDoubleClick event data.
SetMouseDragData
Initializes the event with MouseDrag event data.
SetMouseDragStartData
Initializes the event with MouseDragStart event data.
SetMouseDragEndData
Initializes the event with MouseDragEnd event data.
SetDragAndDropDroppedData
Initializes the event with DragAndDropDropped event data.
SetDragAndDropDraggedData
Initializes the event with DragAndDropDragged event data.
SetDragAndDropLeftData
Initializes the event with DragAndDropLeft event data.