Crazy Eddie's GUI System
0.8.4
|
base class for properties able to do native set/get More...
Public Types | |
typedef PropertyHelper< T > | Helper |
Public Member Functions | |
TypedProperty (const String &name, const String &help, const String &origin="Unknown", typename Helper::pass_type defaultValue=T(), bool writesXML=true) | |
virtual String | get (const PropertyReceiver *receiver) const |
virtual void | set (PropertyReceiver *receiver, const String &value) |
virtual void | setNative (PropertyReceiver *receiver, typename Helper::pass_type value) |
native set method, sets the property given a native type | |
virtual Helper::safe_method_return_type | getNative (const PropertyReceiver *receiver) const |
native get method, returns the native type by copy | |
Protected Member Functions | |
virtual void | setNative_impl (PropertyReceiver *receiver, typename Helper::pass_type value)=0 |
virtual Helper::safe_method_return_type | getNative_impl (const PropertyReceiver *receiver) const =0 |
base class for properties able to do native set/get
virtual String CEGUI::TypedProperty< T >::get | ( | const PropertyReceiver * | receiver | ) | const [inline, virtual] |
Return the current value of the Property as a String.
receiver | Pointer to the target object. |
Implements CEGUI::Property.
virtual Helper::safe_method_return_type CEGUI::TypedProperty< T >::getNative | ( | const PropertyReceiver * | receiver | ) | const [inline, virtual] |
native get method, returns the native type by copy
Referenced by CEGUI::TypedProperty< String >::get(), and CEGUI::PropertySet::getProperty().
virtual void CEGUI::TypedProperty< T >::set | ( | PropertyReceiver * | receiver, |
const String & | value | ||
) | [inline, virtual] |
Sets the value of the property.
receiver | Pointer to the target object. |
value | A String object that contains a textual representation of the new value to assign to the Property. |
InvalidRequestException | Thrown when the Property was unable to interpret the content of value. |
Implements CEGUI::Property.
virtual void CEGUI::TypedProperty< T >::setNative | ( | PropertyReceiver * | receiver, |
typename Helper::pass_type | value | ||
) | [inline, virtual] |
native set method, sets the property given a native type
Referenced by CEGUI::TypedProperty< String >::set(), and CEGUI::PropertySet::setProperty().