Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
JSInterface_IGUIObject.cpp File Reference
#include "precompiled.h"
#include "JSInterface_IGUIObject.h"
#include "JSInterface_GUITypes.h"
#include "gui/IGUIObject.h"
#include "gui/CGUI.h"
#include "gui/IGUIScrollBar.h"
#include "gui/CList.h"
#include "gui/GUIManager.h"
#include "ps/CLogger.h"
#include "scriptinterface/ScriptInterface.h"

Go to the source code of this file.

Macros

#define P(x)   if (!JS_NewNumberValue(cx, colour.x, &c)) return JS_FALSE; JS_SetProperty(cx, obj, #x, &c)
 
#define P(x, y, z)   g_ScriptingHost.SetObjectProperty_Double(obj, #z, area.x.y)
 
#define P(x, y, z)   area.x.y = (float)g_ScriptingHost.GetObjectProperty_Double(obj, #z)
 
#define PROP(x)
 

Macro Definition Documentation

#define P (   x)    if (!JS_NewNumberValue(cx, colour.x, &c)) return JS_FALSE; JS_SetProperty(cx, obj, #x, &c)
#define P (   x,
  y,
 
)    g_ScriptingHost.SetObjectProperty_Double(obj, #z, area.x.y)
#define P (   x,
  y,
 
)    area.x.y = (float)g_ScriptingHost.GetObjectProperty_Double(obj, #z)
#define PROP (   x)
Value:
JS_GetProperty(cx, obj, #x, &t); \
JS_ValueToNumber(cx, t, &s); \
colour.x = (float)s