mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 17:27:05 +09:00
24 lines
596 B
C++
24 lines
596 B
C++
#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;
|
|
};
|
|
} |