Changeset View
Changeset View
Standalone View
Standalone View
source/gui/Scripting/JSInterface_GUIProxy.cpp
Show All 27 Lines | |||||
template<> | template<> | ||||
void JSI_GUIProxy<IGUIObject>::CreateFunctions(const ScriptRequest& rq, GUIProxyProps* cache) | void JSI_GUIProxy<IGUIObject>::CreateFunctions(const ScriptRequest& rq, GUIProxyProps* cache) | ||||
{ | { | ||||
CreateFunction<&IGUIObject::GetName>(rq, cache, "toString"); | CreateFunction<&IGUIObject::GetName>(rq, cache, "toString"); | ||||
CreateFunction<&IGUIObject::GetName>(rq, cache, "toSource"); | CreateFunction<&IGUIObject::GetName>(rq, cache, "toSource"); | ||||
CreateFunction<&IGUIObject::SetFocus>(rq, cache, "focus"); | CreateFunction<&IGUIObject::SetFocus>(rq, cache, "focus"); | ||||
CreateFunction<&IGUIObject::ReleaseFocus>(rq, cache, "blur"); | CreateFunction<&IGUIObject::ReleaseFocus>(rq, cache, "blur"); | ||||
CreateFunction<&IGUIObject::GetComputedSize>(rq, cache, "getComputedSize"); | CreateFunction<&IGUIObject::GetComputedSize>(rq, cache, "getComputedSize"); | ||||
CreateFunction<&IGUIObject::CreateChild>(rq, cache, "createChild"); | |||||
CreateFunction<&IGUIObject::DeleteChild>(rq, cache, "deleteChild"); | |||||
} | } | ||||
DECLARE_GUIPROXY(IGUIObject); | DECLARE_GUIPROXY(IGUIObject); | ||||
// Implement derived types below. | // Implement derived types below. | ||||
// CButton | // CButton | ||||
template<> void JSI_GUIProxy<CButton>::CreateFunctions(const ScriptRequest& rq, GUIProxyProps* cache) | template<> void JSI_GUIProxy<CButton>::CreateFunctions(const ScriptRequest& rq, GUIProxyProps* cache) | ||||
{ | { | ||||
CreateFunction<&CButton::GetTextSize>(rq, cache, "getTextSize"); | CreateFunction<&CButton::GetTextSize>(rq, cache, "getTextSize"); | ||||
Show All 16 Lines |
Wildfire Games · Phabricator