From 9e660e594f6d3a43ea1427fb872801a2fcedad93 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 26 Sep 2023 22:32:35 +0300 Subject: initial commit --- src/ui.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/ui.h (limited to 'src/ui.h') 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 *); -- cgit v1.2.3