mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Initial commit, showing ui above target window
This commit is contained in:
16
include/gui/Button.hpp
Normal file
16
include/gui/Button.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "Widget.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace gsr {
|
||||
class Button : public Widget {
|
||||
public:
|
||||
Button(mgl::vec2f size);
|
||||
void on_event(mgl::Event &event, mgl::Window &window) override;
|
||||
void draw(mgl::Window &window) override;
|
||||
private:
|
||||
mgl::vec2f size;
|
||||
bool mouse_inside = false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user