The structure used to identify an SDL cursor.
More...
|
constexpr | Resource (T resource={}) |
| Constructs from the underlying resource.
|
|
constexpr | Resource (const ResourceHandle< Resource< T > > auto &resource) |
| Constructs from pointer like.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (SDL_Cursor * resource={}) |
| Constructs from the underlying resource.
|
|
constexpr | Resource (const ResourceHandle< Resource< SDL_Cursor * > > auto &resource) |
| Constructs from pointer like.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr | operator value_type () const |
| Converts back to underlying type.
|
|
constexpr bool | operator== (const Resource &other) const=default |
| Comparison.
|
|
constexpr bool | operator== (std::nullopt_t) const |
| Comparison.
|
|
constexpr bool | operator== (std::nullptr_t) const |
| Comparison.
|
|
constexpr SDL_Cursor * | get () const |
| Return contained resource;.
|
|
constexpr const SDL_Cursor * | operator-> () const |
| Access to fields.
|
|
constexpr SDL_Cursor * | operator-> () |
| Access to fields.
|
|
|
static void | reset (SDL_Cursor *resource) |
| Free a previously-created cursor.
|
|
|
using | value_type = SDL_Cursor * |
| The raw resource type.
|
|
This is opaque data.
- Since
- This struct is available since SDL 3.2.0.
- Category:
- Resource
- See also
- Cursor
◆ reset()
static void SDL::CursorRef::reset |
( |
SDL_Cursor * |
resource | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: