summaryrefslogtreecommitdiff
path: root/src/cat/LuaLabel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-31 21:02:02 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-31 21:02:02 (GMT)
commit355c43723fd7aa5c412649924c1aa9238657b8ca (patch)
tree6860645c9f9dc5e224471af5170c578a2d13435e /src/cat/LuaLabel.h
parente8628274ada57b6a526e7cdb261875ac95f05db5 (diff)
downloadpowder-355c43723fd7aa5c412649924c1aa9238657b8ca.zip
powder-355c43723fd7aa5c412649924c1aa9238657b8ca.tar.gz
More interface API
Diffstat (limited to 'src/cat/LuaLabel.h')
-rw-r--r--src/cat/LuaLabel.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cat/LuaLabel.h b/src/cat/LuaLabel.h
new file mode 100644
index 0000000..bfaaabf
--- /dev/null
+++ b/src/cat/LuaLabel.h
@@ -0,0 +1,30 @@
+#pragma once
+
+extern "C" {
+ #include "lua.h"
+ #include "lauxlib.h"
+ #include "lualib.h"
+}
+
+#include "LuaLuna.h"
+
+namespace ui
+{
+ class Label;
+}
+
+class LuaLabel
+{
+ ui::Label * label;
+ lua_State * l;
+ int text(lua_State * l);
+ int position(lua_State * l);
+ int size(lua_State * l);
+public:
+ static const char className[];
+ static Luna<LuaLabel>::RegType methods[];
+
+ ui::Label * GetComponent() { return label; }
+ LuaLabel(lua_State * l);
+ ~LuaLabel();
+}; \ No newline at end of file