wxsetcursoreventa 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 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.
wxsetcursorevent::wxsetcursorevent
wxsetcursorevent::wxsetcursoreventwxsetcursorevent(wxcoordx = 0, wxcoordy = 0) constructor, used by the library itself internally to initialize the event object.
wxsetcursorevent::getcursorwxcursor getcursor() const returns a reference to the cursor specified by this event.
wxsetcursorevent::getxwxcoord getx() const returns the x coordinate of the mouse in client coordinates.
wxsetcursorevent::getywxcoord gety() const returns the y coordinate of the mouse in client coordinates.
wxsetcursorevent::hascursorbool 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::setcursorvoid setcursor(const wxcursor&cursor) sets the cursor associated with this event.
|