From 7adb798c17d6e232a0215e5742b52da163b1c8bb Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Sun, 18 Jan 2026 15:43:03 -0800 Subject: [PATCH] Update gui.h Adds gui base header --- kernel/gui.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/kernel/gui.h b/kernel/gui.h index e69de29..3c39760 100644 --- a/kernel/gui.h +++ b/kernel/gui.h @@ -0,0 +1,34 @@ +#ifndef GUI_H +#define GUI_H + +#include +#include + +#define GUI_WINDOW_WIDTH 80 +#define GUI_WINDOW_HEIGHT 25 +#define GUI_BUTTON_WIDTH 10 +#define GUI_BUTTON_HEIGHT 3 + +// Window structure +typedef struct { + uint32_t x, y; + uint32_t width, height; + uint32_t color; // Background color + const char* title; +} gui_window_t; + +// Button structure +typedef struct { + uint32_t x, y; + uint32_t width, height; + uint32_t color; // Background color + const char* label; +} gui_button_t; + +// Function prototypes for GUI elements +void gui_init(void); +void gui_draw_window(gui_window_t* window); +void gui_draw_button(gui_button_t* button); +void gui_clear(uint32_t color); + +#endif // GUI_H