compile/run ok, issue with backlight

This commit is contained in:
aanper
2020-10-15 18:56:47 +03:00
parent 78e016412e
commit f0f3615c55
10 changed files with 87 additions and 74 deletions

View File

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