The CursorManager class allows the application to change the cursor in a window based upon the application interaction mode.
The application can also choose to display a wait (aka busy) cursor that overrides the application-interaction-mode-specific cursor. We can also choose to "hide" cursor (actually show the blank cursor).
#include
<class_cursor_manager_1_1_cursor_manager.h>
Public Member Functions |
|
init () | |
Initialize the cursor pool for the cursors
in the application. |
|
setWindow () | |
Set the window in which we will display
cursor changes. |
|
setCursor () | |
Given an application interaction mode, set
the appropriate cursor. |
|
setCustomizedCursor () | |
Set customized cursor which is a wx.Cursor
instance. |
|
showWaitCursor () | |
Show or hide the wait cursor. |
|
showCursors () | |
Show or hide cursors. |
CursorManager.CursorManager.init | ( | ) |
Initialize the cursor pool for the cursors in the application.
CursorManager.CursorManager.setWindow | ( | ) |
Set the window in which we will display cursor changes.
Also initializes the cursor now that we have a window to bind it to.
CursorManager.CursorManager.setCursor | ( | ) |
Given an application interaction mode, set the appropriate cursor.
We might override the cursor if the wait cursor has been shown. Note: We might choose to not display any cursor if cursors are hidden.
CursorManager.CursorManager.setCustomizedCursor | ( | ) |
Set customized cursor which is a wx.Cursor instance.
If uiThread is True, then this method was called from the ui thread, and we can set the cursor directly; otherwise, we need to set the cursor indirectly. Note: We might choose to not display the cursor if cursors are hidden.
CursorManager.CursorManager.showWaitCursor | ( | ) |
Show or hide the wait cursor.
The wait cursor will override the current application-interaction-mode cursor. We use a counted wait cursor, so you need to match show and hide calls.
CursorManager.CursorManager.showCursors | ( | ) |
Show or hide cursors.