gui.h 327 B

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