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() {}
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())