The-Powder-Toy/src/cat/LuaSlider.h
2013-05-11 15:08:32 +04:00

34 lines
540 B
C++

#pragma once
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
#include "LuaLuna.h"
#include "LuaComponent.h"
namespace ui
{
class Slider;
}
class LuaScriptInterface;
class LuaSlider: public LuaComponent
{
ui::Slider * slider;
int onValueChangedFunction;
void triggerOnValueChanged();
int onValueChanged(lua_State * l);
int steps(lua_State * l);
int value(lua_State * l);
public:
static const char className[];
static Luna<LuaSlider>::RegType methods[];
LuaSlider(lua_State * l);
~LuaSlider();
};