X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FProgressState.hpp;fp=src%2Fapp%2FProgressState.hpp;h=b3295c245b995041a2d5d001c1c82b2cc905ce2b;hb=9da6ac5e93d79e79658a95d5f6efe42146873583;hp=0000000000000000000000000000000000000000;hpb=b6effe22f680573c3ebcbad2674a08379c182b27;p=blank.git diff --git a/src/app/ProgressState.hpp b/src/app/ProgressState.hpp new file mode 100644 index 0000000..b3295c2 --- /dev/null +++ b/src/app/ProgressState.hpp @@ -0,0 +1,32 @@ +#ifndef BLANK_APP_PROGRESSSTATE_HPP_ +#define BLANK_APP_PROGRESSSTATE_HPP_ + +#include "State.hpp" + +#include "../ui/Progress.hpp" + + +namespace blank { + +class Environment; + +class ProgressState +: public State { + +public: + ProgressState(Environment &env, const char *tpl); + + void SetProgress(int value, int total); + + void Handle(const SDL_Event &) override; + void Render(Viewport &) override; + +private: + Environment &env; + Progress progress; + +}; + +} + +#endif