Changeset View
Changeset View
Standalone View
Standalone View
source/gui/scripting/JSInterface_IGUITextOwner.h
Show All 14 Lines | |||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef INCLUDED_JSI_IGUITEXTOWNER | #ifndef INCLUDED_JSI_IGUITEXTOWNER | ||||
#define INCLUDED_JSI_IGUITEXTOWNER | #define INCLUDED_JSI_IGUITEXTOWNER | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
class IGUIObject; | |||||
namespace JSI_IGUITextOwner | namespace JSI_IGUITextOwner | ||||
{ | { | ||||
extern JSFunctionSpec JSI_methods[]; | extern JSFunctionSpec JSI_methods[]; | ||||
void RegisterScriptFunctions(JSContext* cx, JS::HandleObject obj); | void RegisterScriptFunctions(JSContext* cx, JS::HandleObject obj); | ||||
bool GetTextSize(JSContext* cx, uint argc, JS::Value* vp); | bool GetTextSize(JSContext* cx, IGUIObject& obj, JS::MutableHandleValue rval); | ||||
} | } | ||||
#endif // INCLUDED_JSI_IGUITEXTOWNER | #endif // INCLUDED_JSI_IGUITEXTOWNER |
Wildfire Games · Phabricator