diff options
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h new file mode 100644 index 0000000..19c8881 --- /dev/null +++ b/src/ui.h @@ -0,0 +1,36 @@ +enum UI_PanelType { + UI_PANELTYPE_CANVAS, + UI_PANELTYPE_PALETTE, + UI_PANELTYPE_BUTTONS, + UI_PANELTYPE_TIMELINE, + UI_PANELTYPE_DIVIDER, +}; + +struct UI; +struct UIPanel; +struct UIPanelCanvas; +struct UIPanelPalette; +struct UIPanelButtons; +struct UIPanelTimeline; +struct UIPanelDivider; + +typedef struct UI UI; +typedef struct UIPanel UIPanel; +typedef struct UIPanelCanvas UIPanelCanvas; +typedef struct UIPanelPalette UIPanelPalette; +typedef struct UIPanelButtons UIPanelButtons; +typedef struct UIPanelTimeline UIPanelTimeline; +typedef struct UIPanelDivider UIPanelDivider; + +extern UI *main_ui; + +void ui_create(const char *); +void ui_destroy(); +unsigned char ui_resize(); +void ui_redraw(); +void ui_redraw_panel(unsigned char); +void ui_present(); +void ui_mousel_up(int, int); +void ui_mousel_down(int, int); +void ui_mouse_move(int, int); +unsigned char ui_theme_load(const char *); |