KiCad PCB EDA Suite
|
Simple class to construct and store cursors against unique ID keys. More...
#include <cursors.h>
Classes | |
struct | CURSOR_DEF |
Definition of a cursor. More... | |
Public Member Functions | |
CURSOR_STORE (const std::vector< CURSOR_DEF > &aDefs) | |
Construct a store with a pre-set list of cursors. | |
const wxCursor & | Get (KICURSOR aIdKey) const |
Get a given cursor by its ID. | |
Static Public Member Functions | |
static const wxCursor | GetCursor (KICURSOR aCursorType) |
static const wxCursor | GetHiDPICursor (KICURSOR aCursorType) |
static wxStockCursor | GetStockCursor (KICURSOR aCursorType) |
Private Attributes | |
std::map< KICURSOR, wxCursor > | m_store |
< Internal store of cursors by ID | |
Simple class to construct and store cursors against unique ID keys.
This can be used to lazily construct cursors as needed for specific applications.
CURSOR_STORE::CURSOR_STORE | ( | const std::vector< CURSOR_DEF > & | aDefs | ) |
Construct a store with a pre-set list of cursors.
In future, an "Add()" function could be added if stores need to dynamically add cursors.
aDefs | the list of pre-set cursor definitions |
Definition at line 566 of file cursors.cpp.
References constructCursor(), and m_store.
const wxCursor & CURSOR_STORE::Get | ( | KICURSOR | aIdKey | ) | const |
Get a given cursor by its ID.
aIdKey | the ID key to look up |
Definition at line 575 of file cursors.cpp.
References m_store.
Referenced by GetCursor(), and GetHiDPICursor().
|
static |
Definition at line 588 of file cursors.cpp.
References Get(), GetStockCursor(), and standard_cursors.
Referenced by KIGFX::CAIRO_GAL::SetNativeCursorStyle(), and KIGFX::OPENGL_GAL::SetNativeCursorStyle().
|
static |
Definition at line 602 of file cursors.cpp.
References Get(), GetStockCursor(), and hidpi_cursors.
Referenced by KIGFX::CAIRO_GAL::SetNativeCursorStyle(), and KIGFX::OPENGL_GAL::SetNativeCursorStyle().
|
static |
Definition at line 616 of file cursors.cpp.
References KIPLATFORM::UI::IsStockCursorOk().
Referenced by GetCursor(), and GetHiDPICursor().
|
private |
< Internal store of cursors by ID
Definition at line 149 of file cursors.h.
Referenced by CURSOR_STORE(), and Get().