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