SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::PropertyMutableProxy Struct Reference

Represent a mutable property name from a given Properties. More...

Inheritance diagram for SDL::PropertyMutableProxy:
[legend]

Public Member Functions

template<PropertyValue V>
PropertyMutableProxyoperator= (V &&value)
 Change the value of this property.
 PropertyProxy (PropertiesRef props, StringParam name)
 Constructor.
Public Member Functions inherited from SDL::PropertyProxy
 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().

Detailed Description

Represent a mutable property name from a given Properties.


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