30 #ifndef _CEGUINamedElement_h_ 31 #define _CEGUINamedElement_h_ 33 #include "CEGUI/Element.h" 36 # pragma warning(push) 37 # pragma warning(disable : 4251) 49 class CEGUIEXPORT NamedElementEventArgs :
public EventArgs
52 NamedElementEventArgs(NamedElement* element):
57 NamedElement* element;
74 class CEGUIEXPORT NamedElement :
79 static const String EventNamespace;
86 static const String EventNameChanged;
93 NamedElement(
const String& name =
"");
98 virtual ~NamedElement();
109 virtual void setName(
const String& name);
122 String getNamePath()
const;
135 bool isChild(
const String& name_path)
const;
154 bool isChildRecursive(
const String& name)
const;
169 bool isAncestor(
const String& name)
const;
209 void removeChild(
const String& name_path);
213 virtual void addChild_impl(
Element* element);
228 void addNamedElementProperties();
254 #if defined(_MSC_VER) 255 # pragma warning(pop) 258 #endif // end of guard _CEGUINamedElement_h_ void removeChild(Element *element)
Remove the Element Element's child list.
Definition: cegui/src/Element.cpp:366
Adds name to the Element class, including name path traversal.
Definition: cegui/include/CEGUI/NamedElement.h:74
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
A positioned and sized rectangular node in a tree graph.
Definition: cegui/include/CEGUI/Element.h:242
const String & getName() const
Return a String object holding the name of this Element.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/NamedElement.h:114
bool isAncestor(const Element *element) const
Checks whether the specified Element is an ancestor of this Element.
Definition: cegui/src/Element.cpp:386
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: cegui/include/CEGUI/NamedElement.h:49
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62
bool isChild(const Element *element) const
Checks whether given element is attached to this Element.
Definition: cegui/src/Element.cpp:380