GUI: GuiApi isolation

This commit is contained in:
Aleksandr Kutuzov
2020-10-16 18:25:06 +03:00
parent 491343b683
commit f0800e579f
5 changed files with 22 additions and 29 deletions

View File

@@ -11,12 +11,8 @@ typedef enum {
} WidgetLayer;
typedef struct Widget Widget;
typedef struct Gui Gui;
struct _GuiApi;
typedef struct _GuiApi GuiApi;
struct _GuiApi {
typedef struct GuiApi GuiApi;
struct GuiApi {
void (*add_widget)(GuiApi* gui_api, Widget* widget, WidgetLayer layer);
Gui* gui;
};