diff options
Diffstat (limited to 'include/gui/gui.h')
-rw-r--r-- | include/gui/gui.h | 29 |
1 files changed, 27 insertions, 2 deletions
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 @@ | |||
1 | #ifndef UPEM_MORPHING_GUI | 1 | #ifndef UPEM_MORPHING_GUI |
2 | #define UPEM_MORPHING_GUI | 2 | #define UPEM_MORPHING_GUI |
3 | 3 | ||
4 | #include <gui/window.h> | ||
4 | /** | 5 | /** |
5 | * File: gui.h | 6 | * File: gui.h |
6 | */ | 7 | */ |
7 | 8 | ||
9 | typedef struct { | ||
10 | Window *window; | ||
11 | Button *button1; | ||
12 | Button *button2; | ||
13 | Button *button3; | ||
14 | Button *button4; | ||
15 | Button *button5; | ||
16 | Button *button6; | ||
17 | Button *button7; | ||
18 | PictureFrame *pictureFrame1; | ||
19 | PictureFrame *pictureFrame2; | ||
20 | Canvas *canvasSrc; | ||
21 | Canvas *canvasTrg; | ||
22 | Morphing *morphing; | ||
23 | MLV_Keyboard_button keyboardButton; | ||
24 | MLV_Keyboard_modifier keyboardModifier; | ||
25 | int unicode; | ||
26 | int mouse_x; | ||
27 | int mouse_y; | ||
28 | } GUI; | ||
29 | |||
30 | |||
31 | GUI *gui_init(const char *fpath1, const char *fpath2); | ||
8 | /** | 32 | /** |
9 | * Function: gui_open | 33 | * Function: gui_handle_event |
10 | * Builds and opens the graphical user interface. | 34 | * Builds and opens the graphical user interface. |
11 | */ | 35 | */ |
12 | void gui_open(void); | 36 | void gui_handle_event(GUI *gui); |
13 | 37 | ||
38 | void gui_free(GUI *gui); | ||
14 | #endif | 39 | #endif |