29 #ifndef _TplWindowRendererProperty_h_ 30 #define _TplWindowRendererProperty_h_ 32 #include "CEGUI/TplProperty.h" 38 template<
class C,
typename T>
47 bool writesXML =
true) :
51 defaultValue, writesXML)
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_ Definition: TplProperty.h:49
TplProperty< C, T >::Helper::safe_method_return_type getNative_impl(const PropertyReceiver *receiver) const
Definition: TplWindowRendererProperty.h:72
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Definition: TplProperty.h:39
Dummy base class to ensure correct casting of receivers.
Definition: Property.h:45
void setNative_impl(PropertyReceiver *receiver, typename TplProperty< C, T >::Helper::pass_type value)
Definition: TplWindowRendererProperty.h:61
An abstract class that defines the interface to access object properties by name.
Definition: Property.h:60
Definition: TplWindowRendererProperty.h:39
String class used within the GUI system.
Definition: String.h:62