27 #ifndef _CEGUIFalagardPropertyBase_h_ 28 #define _CEGUIFalagardPropertyBase_h_ 30 #include "CEGUI/TypedProperty.h" 31 #include "CEGUI/falagard/PropertyDefinitionBase.h" 36 class FalagardPropertyBase :
public PropertyDefinitionBase,
public TypedProperty<T>
40 typedef typename TypedProperty<T>::Helper Helper;
43 FalagardPropertyBase(
const String& name,
const String& help,
44 const String& initialValue,
const String& origin,
45 bool redrawOnWrite,
bool layoutOnWrite,
46 const String& fireEvent,
const String& eventNamespace) :
47 PropertyDefinitionBase(name, help, initialValue,
48 redrawOnWrite, layoutOnWrite,
49 fireEvent, eventNamespace),
50 TypedProperty<T>(name, help, origin,
51 Helper::fromString(initialValue))
55 ~FalagardPropertyBase() {}
59 void setNative_impl(PropertyReceiver* receiver,
60 typename Helper::pass_type )
62 if (d_writeCausesLayout)
63 static_cast<Window*
>(receiver)->performChildWindowLayout();
65 if (d_writeCausesRedraw)
66 static_cast<Window*
>(receiver)->invalidate();
68 if (!d_eventFiredOnWrite.
empty())
70 WindowEventArgs args(static_cast<Window*>(receiver));
71 args.window->fireEvent(d_eventFiredOnWrite, args,
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
bool empty(void) const
Returns true if the String is empty.
Definition: cegui/include/CEGUI/String.h:633