diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-31 18:39:11 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-31 18:39:11 (GMT) |
| commit | 493a32a1b28f15cf02bb69c3735b9a411448c523 (patch) | |
| tree | 838b39db197c1f9cab5740703bb03f9b24702c56 /src/cat/LuaWindow.h | |
| parent | 322d224fa7a1d5f155c87596bb2f5927989e9933 (diff) | |
| download | powder-493a32a1b28f15cf02bb69c3735b9a411448c523.zip powder-493a32a1b28f15cf02bb69c3735b9a411448c523.tar.gz | |
Some Lua interface API stuff
Diffstat (limited to 'src/cat/LuaWindow.h')
| -rw-r--r-- | src/cat/LuaWindow.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cat/LuaWindow.h b/src/cat/LuaWindow.h new file mode 100644 index 0000000..ea7b98f --- /dev/null +++ b/src/cat/LuaWindow.h @@ -0,0 +1,30 @@ +#pragma once + +extern "C" { + #include "lua.h" + #include "lauxlib.h" + #include "lualib.h" +} + +#include "LuaLuna.h" + +namespace ui +{ + class Window; +} + +class LuaWindow +{ + ui::Window * window; + lua_State * l; + int position(lua_State * l); + int size(lua_State * l); + int addComponent(lua_State * l); +public: + static const char className[]; + static Luna<LuaWindow>::RegType methods[]; + + ui::Window * GetWindow() { return window; } + LuaWindow(lua_State * l); + ~LuaWindow(); +};
\ No newline at end of file |
