|
SDL3pp
A slim C++ wrapper for SDL3
|
Represent a property name from a given Properties. More...
Public Member Functions | |
| PropertyProxy (PropertiesRef props, StringParam name) | |
| Constructor. | |
| bool | IsValid () const |
| True if the there is a property with this name. | |
| PropertyType | GetType () const |
| Get Property type. | |
| const char * | GetName () const |
| Get Property name. | |
| PropertiesRef | GetProperties () const |
| Get the property group this proxy belongs to. | |
| operator void * () const | |
| Get property as a void pointer. | |
| operator const char * () const | |
| Get property as string. | |
| template<std::integral T> | |
| operator T () const | |
| Get property as integral type. | |
| operator float () const | |
| Get property as float. | |
| operator bool () const | |
| Get property as boolean. | |
| template<class T> | |
| auto | visit (T visitor) const |
| Call visitor with the correct type based on its GetType(). | |
Friends | |
| class | PropertyIterator |
Represent a property name from a given Properties.