![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Wraps a T. More...
#include <CGUISetting.h>


Public Member Functions | |
| template<typename... Args> | |
| CGUISimpleSetting (IGUIObject *pObject, const CStr &name, Args &&... args) | |
| NONCOPYABLE (CGUISimpleSetting) | |
| CGUISimpleSetting (CGUISimpleSetting &&)=default | |
| CGUISimpleSetting & | operator= (CGUISimpleSetting &&)=delete |
| operator const T & () const | |
| const T & | operator* () const |
| const T * | operator-> () const |
| T & | GetMutable () |
| 'Uglified' getter when you want direct access without triggering messages. More... | |
| void | Set (T value, bool sendMessage) |
| 'Uglified' operator=, so that SendMessage is explicit. More... | |
Public Member Functions inherited from IGUISetting | |
| NONCOPYABLE (IGUISetting) | |
| IGUISetting (const CStr &name, IGUIObject *owner) | |
| bool | FromString (const CStrW &value, const bool sendMessage) |
| Parses the given string and assigns to the setting value. More... | |
| bool | FromJSVal (const ScriptRequest &rq, JS::HandleValue value, const bool sendMessage) |
| Parses the given JS::Value using Script::FromJSVal and assigns it to the setting data. More... | |
| virtual void | ToJSVal (const ScriptRequest &rq, JS::MutableHandleValue value)=0 |
| Converts the setting data to a JS::Value using Script::ToJSVal. More... | |
Protected Member Functions | |
| bool | DoFromString (const CStrW &value) override |
| bool | DoFromJSVal (const ScriptRequest &rq, JS::HandleValue value) override |
| void | ToJSVal (const ScriptRequest &rq, JS::MutableHandleValue value) override |
| Converts the setting data to a JS::Value using Script::ToJSVal. More... | |
Protected Member Functions inherited from IGUISetting | |
| IGUISetting (IGUISetting &&other) | |
| IGUISetting & | operator= (IGUISetting &&other)=delete |
| virtual | ~IGUISetting ()=default |
| virtual bool | DoFromString (const CStrW &value)=0 |
| virtual bool | DoFromJSVal (const ScriptRequest &rq, JS::HandleValue value)=0 |
| virtual void | OnSettingChange (const CStr &setting, bool sendMessage) |
| Triggers the IGUIObject logic when a setting changes. More... | |
| const CStr & | GetName () const |
| Return the name of the setting, from JS. More... | |
Protected Attributes | |
| T | m_Setting |
Protected Attributes inherited from IGUISetting | |
| IGUIObject & | m_Object |
| The object that stores this setting. More... | |
Wraps a T.
Makes sure the appropriate setting functions are called when modifying T, and likewise makes sure that JS/xml settings affect T appropriately, while being as transparent as possible to use from C++ code.
|
inline |
|
default |
|
overrideprotectedvirtual |
Implements IGUISetting.
|
overrideprotectedvirtual |
Implements IGUISetting.
|
inline |
'Uglified' getter when you want direct access without triggering messages.
| CGUISimpleSetting< T >::NONCOPYABLE | ( | CGUISimpleSetting< T > | ) |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
'Uglified' operator=, so that SendMessage is explicit.
|
overrideprotectedvirtual |
Converts the setting data to a JS::Value using Script::ToJSVal.
Implements IGUISetting.
|
protected |