Crazy Eddie's GUI System  0.8.4
CEGUI::PropertyLinkDefinition< T > Class Template Reference

Class representing a property that links to another property defined on an attached child widget. More...

+ Inheritance diagram for CEGUI::PropertyLinkDefinition< T >:
+ Collaboration diagram for CEGUI::PropertyLinkDefinition< T >:

List of all members.

Public Types

typedef TypedProperty< T >::Helper Helper
typedef ConstVectorIterator
< LinkTargetCollection
LinkTargetIterator

Public Member Functions

 PropertyLinkDefinition (const String &propertyName, const String &widgetName, const String &targetProperty, const String &initialValue, const String &origin, bool redrawOnWrite, bool layoutOnWrite, const String &fireEvent, const String &eventNamespace)
void addLinkTarget (const String &widget, const String &property)
 add a new link target to property on widget (name).
void clearLinkTargets ()
 clear all link targets from this link definition.
bool isTargetProperty (const String &widget, const String &property) const
void initialisePropertyReceiver (PropertyReceiver *receiver) const
 function to allow initialisation of a PropertyReceiver.
Propertyclone () const
LinkTargetIterator getLinkTargetIterator () const

Protected Types

typedef std::pair< String, StringStringPair
typedef std::vector
< StringPair
CEGUI_VECTOR_ALLOC(StringPair)> 
LinkTargetCollection
 type used for the collection of targets.

Protected Member Functions

Helper::safe_method_return_type getNative_impl (const PropertyReceiver *receiver) const
void setNative_impl (PropertyReceiver *receiver, typename Helper::pass_type value)
void updateLinkTargets (PropertyReceiver *receiver, typename Helper::pass_type value) const
void writeDefinitionXMLElementType (XMLSerializer &xml_stream) const
 Write out the text of the XML element type. Note that you should not write the opening '<' character, nor any other information such as attributes in this function.
void writeDefinitionXMLAdditionalAttributes (XMLSerializer &xml_stream) const
void writeFalagardXMLAttributes (XMLSerializer &xml_stream) const
const WindowgetTargetWindow (const PropertyReceiver *receiver, const String &name) const
 Return a pointer to the target window with the given name.
WindowgetTargetWindow (PropertyReceiver *receiver, const String &name) const
 Return a pointer to the target window with the given name.

Protected Attributes

LinkTargetCollection d_targets
 collection of targets for this PropertyLinkDefinition.

Detailed Description

template<typename T>
class CEGUI::PropertyLinkDefinition< T >

Class representing a property that links to another property defined on an attached child widget.


Member Function Documentation

template<typename T >
void CEGUI::PropertyLinkDefinition< T >::writeDefinitionXMLElementType ( XMLSerializer xml_stream) const [inline, protected, virtual]

Write out the text of the XML element type. Note that you should not write the opening '<' character, nor any other information such as attributes in this function.

Parameters:
xml_streamXMLSerializer where xml data should be output.

Implements CEGUI::PropertyDefinitionBase.

References CEGUI::XMLSerializer::openTag(), and CEGUI::Falagard_xmlHandler::PropertyLinkDefinitionElement.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends