Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSInterface_GUIProxy_impl.h File Reference
#include "JSInterface_GUIProxy.h"
#include "gui/CGUI.h"
#include "gui/CGUISetting.h"
#include "gui/ObjectBases/IGUIObject.h"
#include "ps/CLogger.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/ScriptExtraHeaders.h"
#include "scriptinterface/ScriptRequest.h"
#include <string>
#include <string_view>
Include dependency graph for JSInterface_GUIProxy_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  JSInterface_GUIProxy::MapCache
 
struct  JSI_GUIProxy< GUIObjectType >::PropCache
 

Namespaces

namespace  JSInterface_GUIProxy
 

Macros

#define DECLARE_GUIPROXY(Type)
 

Functions

JSClass & JSInterface_GUIProxy::ClassDefinition ()
 

Macro Definition Documentation

◆ DECLARE_GUIPROXY

#define DECLARE_GUIPROXY (   Type)
Value:
void Type::CreateJSObject() \
{ \
ScriptRequest rq(m_pGUI.GetScriptInterface()); \
using ProxyHandler = JSI_GUIProxy<std::remove_pointer_t<decltype(this)>>; \
m_JSObject = ProxyHandler::CreateJSObject(rq, this, GetGUI().GetProxyData(&ProxyHandler::Singleton())); \
} \
template class JSI_GUIProxy<Type>;
Handles the js interface with C++ GUI objects.
Definition: JSInterface_GUIProxy.h:121