summaryrefslogtreecommitdiff
path: root/src/gui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widget.h')
-rw-r--r--src/gui/widget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widget.h b/src/gui/widget.h
index 1fd23ac..ceb5b71 100644
--- a/src/gui/widget.h
+++ b/src/gui/widget.h
@@ -24,12 +24,13 @@ typedef struct widget_t {
int y;
int w;
int h;
+ vga_color_t background_color;
bool focusable;
struct widget_t *parent;
widget_vtable_t *vtable;
} widget_t;
-void widget_init( widget_t *widget, widget_t *parent, const int x, const int y, const int w, const int h );
+void widget_init( widget_t *widget, widget_t *parent, const int x, const int y, const int w, const int h, const vga_color_t background_color );
void widget_draw( void *obj, graphics_context_t *context );
void widget_get_focus( void *obj, widget_t *widget );