From e806d41c8703ddc4bcaf2186d0c1701bd1e1ada3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 22 Dec 2021 12:16:38 +0000 Subject: Initial commit with some basic UI --- ui/toolbar.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ui/toolbar.h (limited to 'ui/toolbar.h') diff --git a/ui/toolbar.h b/ui/toolbar.h new file mode 100644 index 0000000..28aba6c --- /dev/null +++ b/ui/toolbar.h @@ -0,0 +1,26 @@ +#ifndef TOOLBAR_H +#define TOOLBAR_H + +#include "collection.hpp" +#include "iconButton.h" +#include "uiComponent.h" +#include +#include +#include + +class UIShader; +union SDL_Event; + +class Toolbar : public UIComponent { +public: + using InitInfo = std::pair; + explicit Toolbar(const std::initializer_list & initInfo); + + void render(const UIShader & uiShader, const Position & parentPos) const override; + + bool handleInput(const SDL_Event & e, const Position & parentPos) override; + + Collection icons; +}; + +#endif -- cgit v1.2.3