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/LuaProgressBar.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/LuaProgressBar.h')
| -rw-r--r-- | src/cat/LuaProgressBar.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cat/LuaProgressBar.h b/src/cat/LuaProgressBar.h new file mode 100644 index 0000000..9de56e7 --- /dev/null +++ b/src/cat/LuaProgressBar.h @@ -0,0 +1,30 @@ +#pragma once + +extern "C" { + #include "lua.h" + #include "lauxlib.h" + #include "lualib.h" +} + +#include "LuaLuna.h" +#include "LuaComponent.h" + +namespace ui +{ + class ProgressBar; +} + +class LuaScriptInterface; + +class LuaProgressBar: public LuaComponent +{ + ui::ProgressBar * progressBar; + int progress(lua_State * l); + int status(lua_State * l); +public: + static const char className[]; + static Luna<LuaProgressBar>::RegType methods[]; + + LuaProgressBar(lua_State * l); + ~LuaProgressBar(); +};
\ No newline at end of file |
