summaryrefslogtreecommitdiff
path: root/src/cat/LuaLabel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-02 22:55:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-02 22:55:08 (GMT)
commit4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c (patch)
treef76cf74aa260678cd230dba8955d378c5fa392f0 /src/cat/LuaLabel.h
parentb7616a91d860871a3e4ac46cba957633a93acb59 (diff)
downloadpowder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.zip
powder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.tar.gz
Textbox component for Lua interface API
Diffstat (limited to 'src/cat/LuaLabel.h')
-rw-r--r--src/cat/LuaLabel.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cat/LuaLabel.h b/src/cat/LuaLabel.h
index 7e1f808..a80ea4f 100644
--- a/src/cat/LuaLabel.h
+++ b/src/cat/LuaLabel.h
@@ -7,6 +7,7 @@ extern "C" {
}
#include "LuaLuna.h"
+#include "LuaComponent.h"
namespace ui
{
@@ -15,20 +16,14 @@ namespace ui
class LuaScriptInterface;
-class LuaLabel
+class LuaLabel: public LuaComponent
{
ui::Label * label;
- lua_State * l;
int text(lua_State * l);
- int position(lua_State * l);
- int size(lua_State * l);
public:
- LuaScriptInterface * ci;
- int UserData;
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