SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::CursorRef Struct Reference

Semi-safe reference for Cursor.

Inheritance diagram for SDL::CursorRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::CursorRef:
Collaboration graph
[legend]

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.
 
Cursoroperator= (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...
 

Constructor & Destructor Documentation

◆ CursorRef()

SDL::CursorRef::CursorRef ( CursorParam  resource)
inline
Parameters
resourcea CursorRaw or Cursor.

This does not takes ownership!


The documentation for this struct was generated from the following file: