wx.SetCursorEvent¶A wx.SetCursorEvent is generated from wx.Window when the mouse cursor is about to be set as a result of mouse motion.
This event gives the application the chance to perform specific mouse cursor processing based on the current position of the mouse within the window. Use wx.SetCursorEvent.SetCursor to specify the cursor you want to be displayed.
Events Emitted by this Class¶Handlers bound for the following event types will receive a wx.SetCursorEvent parameter.
EVT_SET_CURSOR: Process a wxEVT_SET_CURSOR event.
See also
Class Hierarchy¶
Inheritance diagram for class SetCursorEvent:
Methods Summary¶Constructor, used by the library itself internally to initialize the event object. |
|
Returns a reference to the cursor specified by this event. |
|
Returns the mouse position for which the cursor is requested. |
|
Returns the X coordinate of the mouse in client coordinates. |
|
Returns the Y coordinate of the mouse in client coordinates. |
|
Returns |
|
Sets the cursor associated with this event. |
Properties Summary¶See |
|
See |
Class API¶Possible constructors:
SetCursorEvent(x=0, y=0) -> None
A SetCursorEvent is generated from Window when the mouse cursor is about to be set as a result of mouse motion.
Constructor, used by the library itself internally to initialize the event object.
x (int)
y (int)
None
Returns the mouse position for which the cursor is requested.
This position is expressed in the client coordinates of the window.
Added in version 4.3/wxWidgets-3.3.0.
Returns the X coordinate of the mouse in client coordinates.
int
See also
Returns the Y coordinate of the mouse in client coordinates.
int
See also
Returns True if the cursor specified by this event is a valid cursor.
bool
Note
You cannot specify NullCursor with this event, as it is not considered a valid cursor.
Sets the cursor associated with this event.
cursor (wx.Cursor)
None