Contents Up Previous Next

wxSetCursorEvent

A SetCursorEvent is generated 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 SetCursor to specify the cursor you want to be displayed.

Derived from

wxEvent
wxObject

Include files

<wx/event.h>

See also

::wxSetCursor wxWindow::wxSetCursor

Event table macros

To process a set cursor event, use this event handler macro to direct input to a member function that takes a wxSetCursorEvent argument.

EVT_SET_CURSOR(func) Process a wxEVT_SET_CURSOR event.
Members

wxSetCursorEvent::wxSetCursorEvent
wxSetCursorEvent::GetCursor
wxSetCursorEvent::GetX
wxSetCursorEvent::GetY
wxSetCursorEvent::HasCursor
wxSetCursorEvent::SetCursor


wxSetCursorEvent::wxSetCursorEvent

wxSetCursorEvent(wxCoordx = 0, wxCoordy = 0)

Constructor, used by the library itself internally to initialize the event object.


wxSetCursorEvent::GetCursor

wxCursor GetCursor() const

Returns a reference to the cursor specified by this event.


wxSetCursorEvent::GetX

wxCoord GetX() const

Returns the X coordinate of the mouse in client coordinates.


wxSetCursorEvent::GetY

wxCoord GetY() const

Returns the Y coordinate of the mouse in client coordinates.


wxSetCursorEvent::HasCursor

bool HasCursor() const

Returns true if the cursor specified by this event is a valid cursor.

Remarks

You cannot specify wxNullCursor with this event, as it is not considered a valid cursor.


wxSetCursorEvent::SetCursor

void SetCursor(const wxCursor&cursor)

Sets the cursor associated with this event.