summaryrefslogtreecommitdiff
path: root/src/cat/LuaTextbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat/LuaTextbox.h')
-rw-r--r--src/cat/LuaTextbox.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/cat/LuaTextbox.h b/src/cat/LuaTextbox.h
new file mode 100644
index 0000000..437875f
--- /dev/null
+++ b/src/cat/LuaTextbox.h
@@ -0,0 +1,33 @@
+#pragma once
+
+extern "C" {
+ #include "lua.h"
+ #include "lauxlib.h"
+ #include "lualib.h"
+}
+
+#include "LuaLuna.h"
+#include "LuaComponent.h"
+
+namespace ui
+{
+ class Textbox;
+}
+
+class LuaScriptInterface;
+
+class LuaTextbox: public LuaComponent
+{
+ int onTextChangedFunction;
+ ui::Textbox * textbox;
+ int text(lua_State * l);
+ int readonly(lua_State * l);
+ int onTextChanged(lua_State * l);
+ void triggerOnTextChanged();
+public:
+ static const char className[];
+ static Luna<LuaTextbox>::RegType methods[];
+
+ LuaTextbox(lua_State * l);
+ ~LuaTextbox();
+}; \ No newline at end of file