|
SDL3pp
A slim C++ wrapper for SDL3
|
Semi-safe reference for Cursor.


Public Member Functions | |
| CursorRef (CursorParam resource) | |
| Constructs from CursorParam. More... | |
| CursorRef (const CursorRef &other) | |
| Copy constructor. | |
| ~CursorRef () | |
| Destructor. | |
Public Member Functions inherited from SDL::Cursor | |
| constexpr | Cursor ()=default |
| Default ctor. | |
| constexpr | Cursor (const CursorRaw resource) |
| Constructs from CursorParam. More... | |
| constexpr | Cursor (const Cursor &other)=delete |
| Copy constructor. | |
| constexpr | Cursor (Cursor &&other) |
| Move constructor. | |
| constexpr | Cursor (const CursorRef &other)=delete |
| constexpr | Cursor (CursorRef &&other)=delete |
| Cursor (const Uint8 *data, const Uint8 *mask, const PointRaw &size, const PointRaw &hot) | |
| Create a cursor using the specified bitmap data and mask (in MSB format). More... | |
| Cursor (SurfaceParam surface, const PointRaw &hot) | |
| Create a color cursor. More... | |
| Cursor (SystemCursor id) | |
| Create a system cursor. More... | |
| ~Cursor () | |
| Destructor. | |
| Cursor & | operator= (Cursor other) |
| Assignment operator. | |
| constexpr CursorRaw | get () const |
| Retrieves underlying CursorRaw. | |
| constexpr CursorRaw | release () |
| Retrieves underlying CursorRaw and clear this. | |
| constexpr auto | operator<=> (const Cursor &other) const =default |
| Comparison. | |
| constexpr bool | operator== (std::nullptr_t _) const |
| Comparison. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr | operator CursorParam () const |
| Converts to CursorParam. | |
| void | Destroy () |
| Free a previously-created cursor. More... | |
| void | Set () |
| Set the active cursor. More... | |
|
inline |
| resource | a CursorRaw or Cursor. |
This does not takes ownership!