29 #ifndef _TplWindowRendererProperty_h_ 30 #define _TplWindowRendererProperty_h_ 32 #include "CEGUI/TplProperty.h" 38 template<
class C,
typename T>
39 class TplWindowRendererProperty :
public TplProperty<C, T>
42 TplWindowRendererProperty(
43 const String& name,
const String& help,
const String& origin,
44 typename TplProperty<C, T>::Setter setter,
45 typename TplProperty<C, T>::GetterFunctor getter,
46 typename TplProperty<C, T>::Helper::pass_type defaultValue = T(),
47 bool writesXML =
true) :
49 TplProperty<C, T>(name, help, origin,
51 defaultValue, writesXML)
56 return CEGUI_NEW_AO TplWindowRendererProperty<C, T>(*this);
64 C* instance =
static_cast<C*
>(
65 static_cast<const Window*
>(receiver)->getWindowRenderer());
67 CEGUI_CALL_MEMBER_FN(*instance, this->d_setter)(value);
74 const C* instance =
static_cast<const C*
>(
75 static_cast<const Window*
>(receiver)->getWindowRenderer());
77 return this->d_getter(instance);
90 #define CEGUI_DEFINE_WINDOW_RENDERER_PROPERTY(class_type, property_native_type, name, help, setter, getter, default_value)\ 92 static ::CEGUI::TplWindowRendererProperty<class_type, property_native_type> sProperty(\ 93 name, help, TypeName, setter, getter, default_value);\ 95 this->registerProperty(&sProperty);\ 110 #define CEGUI_DEFINE_WINDOW_RENDERER_PROPERTY_NO_XML(class_type, property_native_type, name, help, setter, getter, default_value)\ 112 static ::CEGUI::TplWindowRendererProperty<class_type, property_native_type> sProperty(\ 113 name, help, TypeName, setter, getter, default_value, false);\ 115 this->registerProperty(&sProperty,true);\ 119 #endif // end of guard _TplWindowRendererProperty_h_ Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
TplProperty< C, T >::Helper::safe_method_return_type getNative_impl(const PropertyReceiver *receiver) const
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/TplWindowRendererProperty.h:72
Definition: cegui/include/CEGUI/TplProperty.h:39
Dummy base class to ensure correct casting of receivers.
Definition: cegui/include/CEGUI/Property.h:45
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: cegui/include/CEGUI/Window.h:149
void setNative_impl(PropertyReceiver *receiver, typename TplProperty< C, T >::Helper::pass_type value)
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/TplWindowRendererProperty.h:61
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