27 #ifndef _CEGUIFalPropertyDefinition_h_ 28 #define _CEGUIFalPropertyDefinition_h_ 30 #include "CEGUI/falagard/FalagardPropertyBase.h" 31 #include "CEGUI/falagard/XMLHandler.h" 32 #include "CEGUI/Logger.h" 45 bool redrawOnWrite,
bool layoutOnWrite,
48 redrawOnWrite, layoutOnWrite,
49 fireEvent, eventNamespace),
71 typename Helper::safe_method_return_type
74 const Window*
const wnd =
static_cast<const Window*
>(receiver);
85 return Helper::fromString(wnd->
getUserString(d_userStringName));
89 Logger::getSingleton().logEvent(
90 "PropertyDefiniton::get: Defining new user string: " +
105 void setNative_impl(
PropertyReceiver* receiver,
typename Helper::pass_type value)
107 setWindowUserString(static_cast<Window*>(receiver), Helper::toString(value));
112 void setWindowUserString(
Window* window,
const String& value)
const 121 writeDefinitionXMLAdditionalAttributes(xml_stream);
124 void writeDefinitionXMLAdditionalAttributes(
XMLSerializer& xml_stream)
const void setUserString(const String &name, const String &value)
Sets the value a named user string, creating it as required.
Definition: cegui/src/Window.cpp:2028
Exception class used when a request was made for an unknown object.
Definition: cegui/include/CEGUI/Exceptions.h:246
static const String TypeAttribute
Attribute name that stores a type string.
Definition: cegui/include/CEGUI/falagard/XMLHandler.h:152
XMLSerializer & attribute(const String &name, const String &value)
After an opening tag you can populate attribute list with this function.
Definition: XMLSerializer.cpp:104
void initialisePropertyReceiver(PropertyReceiver *receiver) const
function to allow initialisation of a PropertyReceiver.
Definition: cegui/include/CEGUI/falagard/PropertyDefinition.h:58
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
static const String PropertyDefinitionElement
Tag name for property definition elements.
Definition: cegui/include/CEGUI/falagard/XMLHandler.h:129
Definition: cegui/include/CEGUI/falagard/PropertyDefinition.h:37
static const String HelpStringAttribute
Attribute name that stores a help string.
Definition: cegui/include/CEGUI/falagard/XMLHandler.h:179
void writeDefinitionXMLElementType(XMLSerializer &xml_stream) const
Write out the text of the XML element type. Note that you should not write the opening '<' character...
Definition: cegui/include/CEGUI/falagard/PropertyDefinition.h:118
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
XMLSerializer & openTag(const String &name)
Start a new tag in the xml document.
Definition: XMLSerializer.cpp:51
Helper class used to convert various data types to and from the format expected in Property strings...
Definition: cegui/include/CEGUI/ForwardRefs.h:84
const String & getUserString(const String &name) const
Returns a named user string.
Definition: cegui/src/Window.cpp:2009
static const String UserStringNameSuffix
The PropertyDefinition's user string name suffix, which is appended to each #d_userStringName.
Definition: cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:84
static const String GenericDataType
Default or unspecified value for the "dataType" attribute.
Definition: cegui/include/CEGUI/falagard/XMLHandler.h:89
An abstract class that defines the interface to access object properties by name. ...
Definition: cegui/include/CEGUI/Property.h:60
static const String PropertyDefinitionHelpDefaultValue
Default value for the "type" attribute of PropertyDefinition elements.
Definition: cegui/include/CEGUI/falagard/XMLHandler.h:83
Definition: cegui/include/CEGUI/falagard/FalagardPropertyBase.h:36
Class used to create XML Document.
Definition: cegui/include/CEGUI/XMLSerializer.h:85
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62