Crazy Eddie's GUI System
0.8.7
|
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;
109 virtual void setName(
const String& name);
114 inline const String& getName()
const
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();
248 NamedElement& operator=(
const NamedElement&) {
return *
this;}
254 #if defined(_MSC_VER)
255 # pragma warning(pop)
258 #endif // end of guard _CEGUINamedElement_h_
bool isChild(const Element *element) const
Checks whether given element is attached to this Element.
bool isAncestor(const Element *element) const
Checks whether the specified Element is an ancestor of this Element.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: NamedElement.h:75
void removeChild(Element *element)
Remove the Element Element's child list.
String class used within the GUI system.
Definition: String.h:88
Adds name to the Element class, including name path traversal.
Definition: NamedElement.h:100
A positioned and sized rectangular node in a tree graph.
Definition: Element.h:269