mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-05 06:20:44 +09:00
Make sure all sizes are scaled by window size, make sure all elements are visible for very low resolutions and text doesn't get too small
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Widget.hpp"
|
||||
#include <functional>
|
||||
|
||||
#include <mglpp/graphics/Color.hpp>
|
||||
#include <mglpp/graphics/Text.hpp>
|
||||
@@ -17,8 +16,7 @@ namespace gsr {
|
||||
void draw(mgl::Window &window, mgl::vec2f offset) override;
|
||||
|
||||
mgl::vec2f get_size() override;
|
||||
|
||||
std::function<void()> on_click;
|
||||
bool is_checked() const;
|
||||
private:
|
||||
mgl::vec2f get_checkbox_size();
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user