27 #ifndef _CEGUITplWindowProperty_h_ 28 #define _CEGUITplWindowProperty_h_ 30 #include "CEGUI/TplProperty.h" 36 template<
class C,
typename T>
37 class TplWindowProperty :
public TplProperty<C, T>
40 TplWindowProperty(
const String& name,
const String& help,
42 typename TplProperty<C, T>::Setter setter,
43 typename TplProperty<C, T>::GetterFunctor getter,
44 typename TplProperty<C, T>::Helper::pass_type defaultValue = T(),
45 bool writesXML =
true) :
46 TplProperty<C, T>(name, help, origin, setter, getter,
47 defaultValue, writesXML)
52 return CEGUI_NEW_AO TplWindowProperty<C, T>(*this);
60 C* instance =
static_cast<C*
>(receiver);
61 CEGUI_CALL_MEMBER_FN(*instance, this->d_setter)(value);
68 const C* instance =
static_cast<const C*
>(receiver);
69 return this->d_getter(instance);
75 #endif // end of guard _CEGUITplWindowProperty_h_ Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
void setNative_impl(PropertyReceiver *receiver, typename TplProperty< C, T >::Helper::pass_type value)
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/TplWindowProperty.h:57
Definition: cegui/include/CEGUI/TplProperty.h:39
TplProperty< C, T >::Helper::safe_method_return_type getNative_impl(const PropertyReceiver *receiver) const
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/TplWindowProperty.h:66
Dummy base class to ensure correct casting of receivers.
Definition: cegui/include/CEGUI/Property.h:45
Property(const String &name, const String &help, const String &defaultValue="", bool writesXML=true, const String &dataType="Unknown", const String &origin="Unknown")
Creates a new Property object.
Definition: cegui/include/CEGUI/Property.h:91