diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-17 11:20:58 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-17 11:20:58 (GMT) |
| commit | 6e44ebc358d1206c147f514225373da07b43c015 (patch) | |
| tree | 35e97c28991c4aff46a9e5a4182b53dedb26e7ee /src/cat/LuaSlider.h | |
| parent | e52e9ce91ccca13115fec0fdb0111e7e5d39d10d (diff) | |
| download | powder-6e44ebc358d1206c147f514225373da07b43c015.zip powder-6e44ebc358d1206c147f514225373da07b43c015.tar.gz | |
Checkbox, Slider and ProgressBar components for ui API
Diffstat (limited to 'src/cat/LuaSlider.h')
| -rw-r--r-- | src/cat/LuaSlider.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/cat/LuaSlider.h b/src/cat/LuaSlider.h new file mode 100644 index 0000000..f9f327e --- /dev/null +++ b/src/cat/LuaSlider.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 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(); +};
\ No newline at end of file |
