Changeset View
Changeset View
Standalone View
Standalone View
source/gui/scripting/JSInterface_GUITypes.cpp
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | bool JSI_GUIMouse::toString(JSContext* cx, uint argc, JS::Value* vp) | ||||
rec.rval().setString(JS_NewStringCopyZ(cx, buffer)); | rec.rval().setString(JS_NewStringCopyZ(cx, buffer)); | ||||
return true; | return true; | ||||
} | } | ||||
// Initialise all the types at once: | // Initialise all the types at once: | ||||
void JSI_GUITypes::init(ScriptInterface& scriptInterface) | void JSI_GUITypes::init(ScriptInterface& scriptInterface) | ||||
{ | { | ||||
scriptInterface.DefineCustomObjectType(&JSI_GUISize::JSI_class, JSI_GUISize::construct, 1, nullptr, JSI_GUISize::JSI_methods, NULL, NULL); | scriptInterface.DefineCustomObjectType(&JSI_GUISize::JSI_class, JSI_GUISize::construct, 1, nullptr, JSI_GUISize::JSI_methods, nullptr, nullptr); | ||||
scriptInterface.DefineCustomObjectType(&JSI_GUIColor::JSI_class, JSI_GUIColor::construct, 1, nullptr, JSI_GUIColor::JSI_methods, NULL, NULL); | scriptInterface.DefineCustomObjectType(&JSI_GUIColor::JSI_class, JSI_GUIColor::construct, 1, nullptr, JSI_GUIColor::JSI_methods, nullptr, nullptr); | ||||
scriptInterface.DefineCustomObjectType(&JSI_GUIMouse::JSI_class, JSI_GUIMouse::construct, 1, nullptr, JSI_GUIMouse::JSI_methods, NULL, NULL); | scriptInterface.DefineCustomObjectType(&JSI_GUIMouse::JSI_class, JSI_GUIMouse::construct, 1, nullptr, JSI_GUIMouse::JSI_methods, nullptr, nullptr); | ||||
} | } |
Wildfire Games · Phabricator