diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-13 22:18:30 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-13 22:36:55 +0100 |
commit | 4ba1e814b748d57631f6b7afb7eaa63e8435c24e (patch) | |
tree | aa49caab6f299fb42f404ace5907025616aad553 /include/gui/LineSeparator.hpp | |
parent | 590428425e8d35c96fffca666a50755a65c1cdba (diff) |
Add application audio option
Diffstat (limited to 'include/gui/LineSeparator.hpp')
-rw-r--r-- | include/gui/LineSeparator.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gui/LineSeparator.hpp b/include/gui/LineSeparator.hpp new file mode 100644 index 0000000..8c39114 --- /dev/null +++ b/include/gui/LineSeparator.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include "Widget.hpp" + +namespace gsr { + class LineSeparator : public Widget { + public: + enum class Type { + HORIZONTAL + }; + + LineSeparator(Type type, float width); + LineSeparator(const LineSeparator&) = delete; + LineSeparator& operator=(const LineSeparator&) = delete; + + bool on_event(mgl::Event &event, mgl::Window &window, mgl::vec2f offset) override; + void draw(mgl::Window &window, mgl::vec2f offset) override; + + mgl::vec2f get_size() override; + private: + Type type; + float width; + }; +}
\ No newline at end of file |