blob: 8c391149a3a64eaaa4210880064330cd2b34c3cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
};
}
|