This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/lua/LuaTextbox.h
2019-04-09 15:28:40 +02:00

28 lines
486 B
C++

#pragma once
#include "LuaLuna.h"
#include "LuaComponent.h"
namespace ui
{
class Textbox;
}
class LuaScriptInterface;
class LuaTextbox: public LuaComponent
{
LuaComponentCallback 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();
};