Add application audio option

This commit is contained in:
dec05eba
2024-11-13 22:18:30 +01:00
parent 590428425e
commit 4ba1e814b7
20 changed files with 441 additions and 137 deletions

View File

@@ -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;
};
}