|
| constexpr | Properties (PropertiesID resource) noexcept |
| | Constructs from raw Properties.
|
|
constexpr | Properties (Properties &&other) noexcept |
| | Move constructor.
|
| | Properties () |
| | Create a group of properties.
|
| | Properties (std::initializer_list< std::pair< StringParam, std::variant< StringParam, void *, Sint64, float, bool > > > entries) |
| | Create a group of properties.
|
|
| ~Properties () |
| | Destructor.
|
|
constexpr Properties & | operator= (Properties &&other) noexcept |
| | Assignment operator.
|
| void | Destroy () |
| | Destroy a group of properties.
|
| PropertyProxy | operator[] (StringParam name) const |
| | Access a property from a group of properties.
|
| PropertyIterator | begin () const |
| | Gets an iterator to the first property in a group of properties.
|
| std::nullptr_t | end () const |
| | Gets sentinel iterator for a group of properties.
|
| PropertyMutableProxy | operator[] (StringParam name) |
| | Access a property from a group of properties.
|
| void | Copy (PropertiesRef dst) |
| | Copy a group of properties.
|
| PropertiesLock | Lock () |
| | Lock a group of properties.
|
| void | Unlock (PropertiesLock &&lock) |
| | Unlock a group of properties.
|
| template<PropertyValue V> |
| void | Set (StringParam name, V &&value) |
| | Set a property in a group of properties.
|
| void | SetPointerPropertyWithCleanup (StringParam name, void *value, CleanupPropertyCallback cleanup, void *userdata) |
| | Set a pointer property in a group of properties with a cleanup function that is called when the property is deleted.
|
| void | SetPointerPropertyWithCleanup (StringParam name, void *value, CleanupPropertyCB cleanup) |
| | Set a pointer property in a group of properties with a cleanup function that is called when the property is deleted.
|
| void | SetPointerProperty (StringParam name, void *value) |
| | Set a pointer property in a group of properties.
|
| void | SetStringProperty (StringParam name, StringParam value) |
| | Set a string property in a group of properties.
|
| void | SetNumberProperty (StringParam name, Sint64 value) |
| | Set an integer property in a group of properties.
|
| void | SetFloatProperty (StringParam name, float value) |
| | Set a floating point property in a group of properties.
|
| void | SetBooleanProperty (StringParam name, bool value) |
| | Set a boolean property in a group of properties.
|
| bool | HasProperty (StringParam name) const |
| | Return whether a property exists in a group of properties.
|
| PropertyType | GetPropertyType (StringParam name) const |
| | Get the type of a property in a group of properties.
|
| PropertyProxy | Get (StringParam name) const |
| | Get a property from a group of properties.
|
| void * | GetPointerProperty (StringParam name, void *default_value=nullptr) const |
| | Get a pointer property from a group of properties.
|
| const char * | GetStringProperty (StringParam name, StringParam default_value="") const |
| | Get a string property from a group of properties.
|
| Sint64 | GetNumberProperty (StringParam name, Sint64 default_value=0) const |
| | Get a number property from a group of properties.
|
| float | GetFloatProperty (StringParam name, float default_value=0) const |
| | Get a floating point property from a group of properties.
|
| bool | GetBooleanProperty (StringParam name, bool default_value=false) const |
| | Get a boolean property from a group of properties.
|
| void | ClearProperty (StringParam name) |
| | Clear a property from a group of properties.
|
| void | Enumerate (EnumeratePropertiesCallback callback, void *userdata) const |
| | Enumerate the properties contained in a group of properties.
|
| void | Enumerate (EnumeratePropertiesCB callback) const |
| | Enumerate the properties contained in a group of properties.
|
| Uint64 | GetCount () const |
| | Returns the number of properties this has.
|
|
constexpr | ResourceBaseT ()=default |
| | Default constructor, creates null/invalid resource.
|
|
constexpr | ResourceBaseT (RawPointer resource) |
| | Constructs from resource pointer.
|
|
constexpr | ResourceBaseT (std::nullptr_t) |
| | Constructs null/invalid.
|
|
constexpr | ResourceBaseT (const ResourceBaseT &)=default |
| | Copy constructor.
|
|
constexpr | ResourceBaseT (ResourceBaseT &&) noexcept=default |
| | Move constructor.
|
|
constexpr | ResourceBaseT ()=default |
| | Default constructor, creates null/invalid resource.
|
|
constexpr | operator bool () const |
| | Converts to bool.
|
|
constexpr auto | operator<=> (const ResourceBaseT &other) const=default |
| | Comparison.
|
|
constexpr RawConstPointer | operator-> () const noexcept |
| | member access to underlying resource pointer.
|
|
constexpr RawPointer | get () const noexcept |
| | Retrieves underlying resource pointer.
|
|
constexpr RawPointer | release () noexcept |
| | Retrieves underlying resource pointer and clear this.
|
An ID that represents a properties set.
- Since
- This datatype is available since SDL 3.2.0.
- Category:
- Resource
- See also
- Properties.Create
-
prop