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)
135 bool isChild(
const String& name_path)
const;
169 bool isAncestor(
const String& name)
const;
209 void removeChild(
const String& name_path);
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.
NamedElement * element
pointer to an Element object of relevance to the event.
Definition: NamedElement.h:57
static const String EventNamespace
Namespace for global events.
Definition: NamedElement.h:79
static const String EventNameChanged
Definition: NamedElement.h:86
bool isAncestor(const Element *element) const
Checks whether the specified Element is an ancestor of this Element.
virtual void onNameChanged(NamedElementEventArgs &e)
Handler called when the element's name changes.
void addNamedElementProperties()
Add standard CEGUI::NamedElement properties.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
NamedElement(const String &name="")
Constructor.
virtual void setName(const String &name)
Renames the element.
virtual ~NamedElement()
Destructor.
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: NamedElement.h:50
String d_name
The name of the element, unique in the parent of this element.
Definition: NamedElement.h:241
void removeChild(Element *element)
Remove the Element Element's child list.
NamedElement * getChildElementRecursive(const String &name) const
Find the first child with the given name, recursively and breadth-first.
NamedElement * getChildElement(const String &name_path) const
Return the attached child element that the given name path references.
String class used within the GUI system.
Definition: String.h:64
virtual NamedElement * getChildByNamePath_impl(const String &name_path) const
Retrieves a child at name_path or 0 if none such exists.
const String & getName() const
Return a String object holding the name of this Element.
Definition: NamedElement.h:114
String getNamePath() const
Return a String object that describes the name path for this Element.
virtual NamedElement * getChildByNameRecursive_impl(const String &name) const
Finds a child by name or 0 if none such exists.
virtual void addChild_impl(Element *element)
Add given element to child list at an appropriate position.
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
Adds name to the Element class, including name path traversal.
Definition: NamedElement.h:76
A positioned and sized rectangular node in a tree graph.
Definition: Element.h:246
bool isChildRecursive(const String &name) const
returns whether at least one window with the given name is attached to this Window or any of it's chi...