summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam NAILI2018-01-02 00:28:20 +0100
committerAdam NAILI2018-01-02 00:28:20 +0100
commit8a4d894e336752e37fa84fc55885a70e65db8c4a (patch)
tree857169362384128d75f6617d320150d10fa30bf6 /include
parentc675120b5fc8e429e42aab2c4d609970a422afaa (diff)
downloadmorpher-8a4d894e336752e37fa84fc55885a70e65db8c4a.tar.gz
Implementing GUI (init, handling_event, free)
Diffstat (limited to 'include')
-rw-r--r--include/gui/gui.h29
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
9typedef 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
31GUI *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 */
12void gui_open(void); 36void gui_handle_event(GUI *gui);
13 37
38void gui_free(GUI *gui);
14#endif 39#endif