combine with desktop project

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-04-10 23:20:19 +02:00
parent b6fb4eb65c
commit b3bf03999b
72 changed files with 65538 additions and 132 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "../UIWidget.h"
#include <functional>
#define BUTTON_WIDTH (35)
class Button final : public UIWidget {
public:
Button(void* appState, float x, float y, float width, std::function<void()> callback);
void render() const override;
private:
float m_x;
float m_y;
float m_width;
std::function<void()> m_callback;
};