mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-04 22:10:44 +09:00
Change fonts, nicer combobox, add/remove audio track button
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
namespace gsr {
|
||||
class Button : public Widget {
|
||||
public:
|
||||
// If width is 0 then the width of the text is used instead (with padding).
|
||||
// If height is 0 then the height of the text is used instead (with padding).
|
||||
Button(mgl::Font *font, const char *text, mgl::vec2f size, mgl::Color bg_color);
|
||||
Button(const Button&) = delete;
|
||||
Button& operator=(const Button&) = delete;
|
||||
@@ -16,7 +18,7 @@ namespace gsr {
|
||||
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 { return size; }
|
||||
mgl::vec2f get_size() override;
|
||||
|
||||
std::function<void()> on_click;
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user