Changeset View
Changeset View
Standalone View
Standalone View
source/gui/scripting/JSInterface_IGUIObject.h
Show All 19 Lines | |||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
namespace JSI_IGUIObject | namespace JSI_IGUIObject | ||||
{ | { | ||||
extern JSClass JSI_class; | extern JSClass JSI_class; | ||||
extern JSPropertySpec JSI_props[]; | extern JSPropertySpec JSI_props[]; | ||||
extern JSFunctionSpec JSI_methods[]; | extern JSFunctionSpec JSI_methods[]; | ||||
void RegisterScriptClass(ScriptInterface& scriptInterface); | |||||
bool getProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, JS::MutableHandleValue vp); | bool getProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, JS::MutableHandleValue vp); | ||||
bool setProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, bool UNUSED(strict), JS::MutableHandleValue vp); | bool setProperty(JSContext* cx, JS::HandleObject obj, JS::HandleId id, bool UNUSED(strict), JS::MutableHandleValue vp); | ||||
bool construct(JSContext* cx, uint argc, JS::Value* vp); | bool construct(JSContext* cx, uint argc, JS::Value* vp); | ||||
bool toString(JSContext* cx, uint argc, JS::Value* vp); | bool toString(JSContext* cx, uint argc, JS::Value* vp); | ||||
bool focus(JSContext* cx, uint argc, JS::Value* vp); | bool focus(JSContext* cx, uint argc, JS::Value* vp); | ||||
bool blur(JSContext* cx, uint argc, JS::Value* vp); | bool blur(JSContext* cx, uint argc, JS::Value* vp); | ||||
bool getComputedSize(JSContext* cx, uint argc, JS::Value* vp); | bool getComputedSize(JSContext* cx, uint argc, JS::Value* vp); | ||||
void init(ScriptInterface& scriptInterface); | |||||
} | } | ||||
#endif // INCLUDED_JSI_IGUIOBJECT | #endif // INCLUDED_JSI_IGUIOBJECT |
Wildfire Games · Phabricator