Polyphase Game Engine
Loading...
Searching...
No Matches
CheckBox_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
7
9
10#if LUA_ENABLED
11
12#define CHECKBOX_LUA_NAME "CheckBox"
13#define CHECKBOX_LUA_FLAG "cfCheckBox"
14#define CHECK_CHECKBOX(L, arg) (CheckBox*)CheckNodeLuaType(L, arg, CHECKBOX_LUA_NAME, CHECKBOX_LUA_FLAG);
15
16struct CheckBox_Lua
17{
18 // State
19 static int SetChecked(lua_State* L);
20 static int IsChecked(lua_State* L);
21 static int Toggle(lua_State* L);
22
23 // Text
24 static int SetText(lua_State* L);
25 static int GetText(lua_State* L);
26
27 // Visual
28 static int SetCheckedColor(lua_State* L);
29 static int GetCheckedColor(lua_State* L);
30 static int SetUncheckedColor(lua_State* L);
31 static int GetUncheckedColor(lua_State* L);
32 static int SetTextColor(lua_State* L);
33 static int GetTextColor(lua_State* L);
34 static int SetBoxSize(lua_State* L);
35 static int GetBoxSize(lua_State* L);
36 static int SetSpacing(lua_State* L);
37 static int GetSpacing(lua_State* L);
38
39 // Children
40 static int GetBoxQuad(lua_State* L);
41 static int GetTextWidget(lua_State* L);
42
43 static void Bind();
44};
45
46#endif