desktop code refactoring
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
17
src/ui/UIWidget.h
Normal file
17
src/ui/UIWidget.h
Normal 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{};
|
||||
};
|
Reference in New Issue
Block a user