desktop code refactoring

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-04-10 23:31:16 +02:00
parent b3bf03999b
commit 5b82cd8189
22 changed files with 163 additions and 158 deletions

17
src/ui/UIWidget.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "model/AppContext.h"
class UIWidget {
public:
explicit UIWidget(void *appstate);
virtual ~UIWidget();
virtual void render() const = 0;
[[nodiscard]] AppContext *get_context() const;
private:
AppContext *m_context{};
};