1 \section{\class{wxSetCursorEvent
}}\label{wxsetcursorevent
}
3 A SetCursorEvent is generated when the mouse cursor is about to be set as a
4 result of mouse motion. This event gives the application the chance to perform
5 specific mouse cursor processing based on the current position of the mouse
6 within the window. Use
\helpref{SetCursor
}{wxsetcursoreventsetcursor
} to
7 specify the cursor you want to be displayed.
9 \wxheading{Derived from
}
11 \helpref{wxEvent
}{wxevent
}\\
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
20 \helpref{wxCore
}{librarieslist
}
24 \helpref{::wxSetCursor
}{wxsetcursor
}
25 \helpref{wxWindow::wxSetCursor
}{wxwindowsetcursor
}
27 \wxheading{Event table macros
}
29 To process a set cursor event, use this event handler macro to direct input to a member
30 function that takes a wxSetCursorEvent argument.
33 \begin{twocollist
}\itemsep=
0pt
34 \twocolitem{{\bf EVT
\_SET\_CURSOR(func)
}}{Process a wxEVT
\_SET\_CURSOR event.
}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxSetCursorEvent::wxSetCursorEvent
}\label{wxsetcursoreventctor
}
43 \func{}{wxSetCursorEvent
}{\param{wxCoord
}{x =
0},
\param{wxCoord
}{y =
0}}
45 Constructor, used by the library itself internally to initialize the event
49 \membersection{wxSetCursorEvent::GetCursor
}\label{wxsetcursoreventgetcursor
}
51 \constfunc{wxCursor&
}{GetCursor
}{\void}
53 Returns a reference to the cursor specified by this event.
56 \membersection{wxSetCursorEvent::GetX
}\label{wxsetcursoreventgetx
}
58 \constfunc{wxCoord
}{GetX
}{\void}
60 Returns the X coordinate of the mouse in client coordinates.
63 \membersection{wxSetCursorEvent::GetY
}\label{wxsetcursoreventgety
}
65 \constfunc{wxCoord
}{GetY
}{\void}
67 Returns the Y coordinate of the mouse in client coordinates.
70 \membersection{wxSetCursorEvent::HasCursor
}\label{wxsetcursoreventhascursor
}
72 \constfunc{bool
}{HasCursor
}{\void}
74 Returns
\true if the cursor specified by this event is a valid cursor.
78 You cannot specify
\texttt{wxNullCursor
} with this event, as it is not
79 considered a valid cursor.
82 \membersection{wxSetCursorEvent::SetCursor
}\label{wxsetcursoreventsetcursor
}
84 \func{void
}{SetCursor
}{\param{const wxCursor\&
}{cursor
}}
86 Sets the cursor associated with this event.