Changeset View
Changeset View
Standalone View
Standalone View
source/gui/IGUIObject.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
class IGUIObject | class IGUIObject | ||||
{ | { | ||||
friend class CGUI; | friend class CGUI; | ||||
friend class IGUIScrollBar; | friend class IGUIScrollBar; | ||||
friend class GUITooltip; | friend class GUITooltip; | ||||
// Allow getProperty to access things like GetParent() | // Allow getProperty to access things like GetParent() | ||||
friend bool JSI_IGUIObject::getProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, JS::MutableHandleValue vp); | friend bool JSI_IGUIObject::getEventHandler(JSContext* cx, IGUIObject& obj, const CStr& propName, JS::MutableHandleValue vp); | ||||
friend bool JSI_IGUIObject::setProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, bool UNUSED(strict), JS::MutableHandleValue vp); | friend bool JSI_IGUIObject::setEventHandler(JSContext* cx, IGUIObject& obj, const CStr& propName, JS::MutableHandleValue vp); | ||||
friend bool JSI_IGUIObject::getComputedSize(JSContext* cx, uint argc, JS::Value* vp); | friend bool JSI_IGUIObject::getChildren(JSContext* cx, IGUIObject& obj, const CStr& propName, JS::MutableHandleValue vp); | ||||
friend bool JSI_IGUIObject::getParent(JSContext* cx, IGUIObject& obj, const CStr& propName, JS::MutableHandleValue vp); | |||||
friend bool JSI_IGUIObject::getComputedSize(JSContext* cx, IGUIObject& obj, JS::MutableHandleValue rval); | |||||
public: | public: | ||||
IGUIObject(CGUI* pGUI); | IGUIObject(CGUI* pGUI); | ||||
virtual ~IGUIObject(); | virtual ~IGUIObject(); | ||||
/** | /** | ||||
* Checks if mouse is hovering this object. | * Checks if mouse is hovering this object. | ||||
* The mouse position is cached in CGUI. | * The mouse position is cached in CGUI. | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator