From e84ae1203b8cd7a51d93ec77a5a2663e7496eef5 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Fri, 22 Dec 2017 19:14:55 +0100 Subject: Adding asserts, modifying signatures of function for more precise type, implementing window_add functions, window_print functions --- include/gui/window.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/gui/window.h b/include/gui/window.h index 3212a49..329997b 100644 --- a/include/gui/window.h +++ b/include/gui/window.h @@ -11,6 +11,8 @@ #include "group.h" #include "component.h" +#include "button.h" +#include "pictureframe.h" /** * Struct: Window @@ -57,9 +59,9 @@ void window_free(Window *window); * * Parameters: * *window - pointer to the input window - * *component - pointer to the input component + * *button - pointer to the input button */ -void window_add_button(Window *window, Component *component); +void window_add_button(Window *window, Button *button); /** * Function: window_add_pictureframe @@ -67,9 +69,9 @@ void window_add_button(Window *window, Component *component); * * Parameters: * *window - pointer to the input window - * *component - pointer to the input component + * *pictureFrame - pointer to the input picture frame */ -void window_add_pictureframe(Window *window, Component *component); +void window_add_pictureframe(Window *window, PictureFrame *pictureFrame); /** * Function: window_create -- cgit v1.2.3