gui.h 338 B

123456789101112131415161718
  1. #pragma once
  2. #include "widget.h"
  3. #include "canvas.h"
  4. typedef enum {
  5. WidgetLayerStatusBar,
  6. WidgetLayerMain,
  7. WidgetLayerFullscreen,
  8. WidgetLayerDialog
  9. } WidgetLayer;
  10. typedef struct Widget Widget;
  11. typedef struct GuiApi GuiApi;
  12. struct GuiApi {
  13. void (*add_widget)(GuiApi* gui_api, Widget* widget, WidgetLayer layer);
  14. };