Pyrogenesis  trunk
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"
#include "scriptinterface/ScriptExtraHeaders.h"
Include dependency graph for JSInterface_IGUIObject.cpp:

Macros

#define P(x)
 
#define P(x, y, z)   pScriptInterface->SetProperty(vp, #z, area.x.y, false, true)
 
#define P(x, y, z)   pScriptInterface->GetProperty(vp, #z, area.x.y)
 
#define PROP(x)
 

Macro Definition Documentation

#define P (   x)
Value:
c = JS::NumberValue(color.x); \
if (c.isNull()) \
return false; \
JS_SetProperty(cx, obj, #x, c)
#define P (   x,
  y,
 
)    pScriptInterface->SetProperty(vp, #z, area.x.y, false, true)
#define P (   x,
  y,
 
)    pScriptInterface->GetProperty(vp, #z, area.x.y)
#define PROP (   x)
Value:
JS_GetProperty(cx, vpObj, #x, &t); \
s = t.toDouble(); \
color.x = (float)s