Thin wrapper around Win32 cursor handles with common cursor helpers.
More...
#include <spk_cursor.hpp>
|
|
using | Handle = HCURSOR |
| | Win32 cursor handle type.
|
|
| | Cursor (Handle p_handle) |
| | Wraps an existing Win32 cursor handle.
|
| const Handle & | handle () const |
| | Returns the underlying Win32 handle.
|
|
void | use () const |
| | Activates this cursor for the current thread.
|
Thin wrapper around Win32 cursor handles with common cursor helpers.
- See also
- Handle
void use() const
Activates this cursor for the current thread.
Definition spk_cursor.cpp:22
static const Cursor & handCursor()
Returns the hand cursor for clickable elements.
Definition spk_cursor.cpp:82
◆ Cursor()
| spk::Win32::Cursor::Cursor |
( |
Handle | p_handle | ) |
|
Wraps an existing Win32 cursor handle.
- Parameters
-
| p_handle | Win32 cursor handle to store. |
◆ activeCursor()
| const Cursor * spk::Win32::Cursor::activeCursor |
( |
| ) |
|
|
static |
Returns the cursor currently marked as active.
- Returns
- Pointer to the active cursor or nullptr if none.
◆ altCrossCursor()
| const Cursor & spk::Win32::Cursor::altCrossCursor |
( |
| ) |
|
|
static |
Returns the alternate crosshair cursor.
- Returns
- Cursor instance for alternate crosshair.
◆ arrowCursor()
| const Cursor & spk::Win32::Cursor::arrowCursor |
( |
| ) |
|
|
static |
Returns the standard arrow cursor.
- Returns
- Cursor instance for the arrow.
◆ crossCursor()
| const Cursor & spk::Win32::Cursor::crossCursor |
( |
| ) |
|
|
static |
Returns the crosshair cursor.
- Returns
- Cursor instance for crosshair.
◆ handCursor()
| const Cursor & spk::Win32::Cursor::handCursor |
( |
| ) |
|
|
static |
Returns the hand cursor for clickable elements.
- Returns
- Cursor instance for hand cursor.
◆ handle()
Returns the underlying Win32 handle.
- Returns
- Stored cursor handle.
◆ helpCursor()
| const Cursor & spk::Win32::Cursor::helpCursor |
( |
| ) |
|
|
static |
Returns the help cursor.
- Returns
- Cursor instance for help cursor.
◆ moveCursor()
| const Cursor & spk::Win32::Cursor::moveCursor |
( |
| ) |
|
|
static |
Returns the move cursor.
- Returns
- Cursor instance for move action.
◆ noCursor()
| const Cursor & spk::Win32::Cursor::noCursor |
( |
| ) |
|
|
static |
Returns the hidden cursor.
- Returns
- Cursor instance representing no cursor.
◆ resizeNESWCursor()
| const Cursor & spk::Win32::Cursor::resizeNESWCursor |
( |
| ) |
|
|
static |
Returns the north-east/south-west resize cursor.
- Returns
- Cursor instance for NE/SW resize.
◆ resizeNSCursor()
| const Cursor & spk::Win32::Cursor::resizeNSCursor |
( |
| ) |
|
|
static |
Returns the north/south resize cursor.
- Returns
- Cursor instance for N/S resize.
◆ resizeNWSECursor()
| const Cursor & spk::Win32::Cursor::resizeNWSECursor |
( |
| ) |
|
|
static |
Returns the north-west/south-east resize cursor.
- Returns
- Cursor instance for NW/SE resize.
◆ resizeWECursor()
| const Cursor & spk::Win32::Cursor::resizeWECursor |
( |
| ) |
|
|
static |
Returns the west/east resize cursor.
- Returns
- Cursor instance for W/E resize.
◆ textEditCursor()
| const Cursor & spk::Win32::Cursor::textEditCursor |
( |
| ) |
|
|
static |
Returns the I-beam text edit cursor.
- Returns
- Cursor instance for text editing.
◆ waitCursor()
| const Cursor & spk::Win32::Cursor::waitCursor |
( |
| ) |
|
|
static |
Returns the wait/busy cursor.
- Returns
- Cursor instance for wait state.
◆ workingCursor()
| const Cursor & spk::Win32::Cursor::workingCursor |
( |
| ) |
|
|
static |
Returns the working cursor.
- Returns
- Cursor instance for working cursor.
The documentation for this class was generated from the following files:
- includes/structure/win32/spk_cursor.hpp
- srcs/structure/win32/spk_cursor.cpp