Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/ObjectBases/IGUIObject.cpp
Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | |||||
bool IGUIObject::IsFocused() const | bool IGUIObject::IsFocused() const | ||||
{ | { | ||||
return m_pGUI.GetFocusedObject() == this; | return m_pGUI.GetFocusedObject() == this; | ||||
} | } | ||||
bool IGUIObject::IsBaseObject() const | bool IGUIObject::IsBaseObject() const | ||||
{ | { | ||||
return this == &m_pGUI.GetBaseObject(); | return this == m_pGUI.GetBaseObject(); | ||||
} | } | ||||
bool IGUIObject::IsRootObject() const | bool IGUIObject::IsRootObject() const | ||||
{ | { | ||||
return m_pParent == &m_pGUI.GetBaseObject(); | return m_pParent == m_pGUI.GetBaseObject(); | ||||
} | } | ||||
void IGUIObject::TraceMember(JSTracer* trc) | void IGUIObject::TraceMember(JSTracer* trc) | ||||
{ | { | ||||
// Please ensure to adapt the Tracer enabling and disabling in accordance with the GC things traced! | // Please ensure to adapt the Tracer enabling and disabling in accordance with the GC things traced! | ||||
for (std::pair<const CStr, JS::Heap<JSObject*>>& handler : m_ScriptHandlers) | for (std::pair<const CStr, JS::Heap<JSObject*>>& handler : m_ScriptHandlers) | ||||
JS::TraceEdge(trc, &handler.second, "IGUIObject::m_ScriptHandlers"); | JS::TraceEdge(trc, &handler.second, "IGUIObject::m_ScriptHandlers"); | ||||
Show All 21 Lines |
Wildfire Games · Phabricator