From 8a4d894e336752e37fa84fc55885a70e65db8c4a Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Tue, 2 Jan 2018 00:28:20 +0100 Subject: Implementing GUI (init, handling_event, free) --- include/gui/gui.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/gui/gui.h b/include/gui/gui.h index 14bdcf2..daaf8de 100644 --- a/include/gui/gui.h +++ b/include/gui/gui.h @@ -1,14 +1,39 @@ #ifndef UPEM_MORPHING_GUI #define UPEM_MORPHING_GUI +#include /** * File: gui.h */ +typedef struct { + Window *window; + Button *button1; + Button *button2; + Button *button3; + Button *button4; + Button *button5; + Button *button6; + Button *button7; + PictureFrame *pictureFrame1; + PictureFrame *pictureFrame2; + Canvas *canvasSrc; + Canvas *canvasTrg; + Morphing *morphing; + MLV_Keyboard_button keyboardButton; + MLV_Keyboard_modifier keyboardModifier; + int unicode; + int mouse_x; + int mouse_y; +} GUI; + + +GUI *gui_init(const char *fpath1, const char *fpath2); /** - * Function: gui_open + * Function: gui_handle_event * Builds and opens the graphical user interface. */ -void gui_open(void); +void gui_handle_event(GUI *gui); +void gui_free(GUI *gui); #endif -- cgit v1.2.3