refactor canvas

This commit is contained in:
aanper
2020-10-15 18:05:28 +03:00
parent 19ef348c80
commit e684869970
12 changed files with 169 additions and 119 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "widget.h"
#include "canvas.h"
typedef enum {
WidgetLayerStatusBar,
@@ -10,9 +11,9 @@ typedef enum {
} WidgetLayer;
typedef struct Widget Widget;
typedef struct GUI GUI;
typedef struct Gui Gui;
typedef struct {
void (*add_widget)(GUI* gui, Widget* widget, WidgetLayer layer);
GUI* gui;
void (*add_widget)(Gui* gui, Widget* widget, WidgetLayer layer);
Gui* gui;
} GuiApi;