Changeset View
Changeset View
Standalone View
Standalone View
source/gui/ObjectBases/IGUIObject.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | public: | ||||
/// Get object name | /// Get object name | ||||
void SetName(const CStr& Name) { m_Name = Name; } | void SetName(const CStr& Name) { m_Name = Name; } | ||||
// Get Presentable name. | // Get Presentable name. | ||||
// Will change all internally set names to something like "<unnamed object>" | // Will change all internally set names to something like "<unnamed object>" | ||||
CStr GetPresentableName() const; | CStr GetPresentableName() const; | ||||
/** | /** | ||||
* Create a child object from the given definition. | |||||
* @return nullptr on failure. | |||||
*/ | |||||
IGUIObject* CreateChild(JS::HandleValue); | |||||
/** | |||||
* Remove a child & delete it. | |||||
* @return whether the child was deleted. | |||||
*/ | |||||
bool DeleteChild(IGUIObject* child); | |||||
/** | |||||
* Return all child objects of the current object. | * Return all child objects of the current object. | ||||
*/ | */ | ||||
const std::vector<IGUIObject*>& GetChildren() const { return m_Children; } | const std::vector<IGUIObject*>& GetChildren() const { return m_Children; } | ||||
//@} | //@} | ||||
//-------------------------------------------------------- | //-------------------------------------------------------- | ||||
/** @name Settings Management */ | /** @name Settings Management */ | ||||
//-------------------------------------------------------- | //-------------------------------------------------------- | ||||
▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator