1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "Editor/GUI/EditorWindows.h"
LUA_BIND_REGISTRY(ContainnerWindow)
{
LUA_BIND_REGISTER_METHODS(state,
{ "SetTitle", _SetTitle },
{ "DoPaint", _DoPaint }
);
}
LUA_BIND_POSTPROCESS(ContainnerWindow)
{
LUA_BIND_REGISTER_ENUM(state, "EShowMode",
{ "NormalWindow", ShowMode::kShowNormalWindow },
{ "ShowPopupMenu", ShowMode::kShowPopupMenu },
{ "Utility ", ShowMode::kShowUtility },
{ "NoShadow", ShowMode::kShowNoShadow },
{ "MainWindow", ShowMode::kShowMainWindow },
{ "AuxWindow", ShowMode::kShowAuxWindow }
);
}
LUA_BIND_IMPL_METHOD(ContainnerWindow, _SetTitle)
{
LUA_BIND_PREPARE(L, ContainnerWindow);
return 0;
}
LUA_BIND_IMPL_METHOD(ContainnerWindow, _DoPaint)
{
LUA_BIND_PREPARE(L, ContainnerWindow);
self->DoPaint();
return 0;
}
|