diff options
author | Adam NAILI | 2018-01-01 23:36:39 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-01 23:36:39 +0100 |
commit | ff2d78256b6b2288e9a5954a49fe4babaf6400cb (patch) | |
tree | ed10145f7f49c949a57a19597251c576ef0ac5c1 /include/gui | |
parent | 8565b20b86a489b09f611ed1cd3b0ba7ac23a94a (diff) | |
download | morpher-ff2d78256b6b2288e9a5954a49fe4babaf6400cb.tar.gz |
Implementing rendering
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/pictureframe.h | 6 | ||||
-rw-r--r-- | include/gui/window.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/gui/pictureframe.h b/include/gui/pictureframe.h index f06a530..7b9644e 100644 --- a/include/gui/pictureframe.h +++ b/include/gui/pictureframe.h | |||
@@ -61,16 +61,14 @@ bool pictureframe_is_selected(int x, int y, PictureFrame *pictureFrame); | |||
61 | * y - value on y axis from the origin of the window to convert | 61 | * y - value on y axis from the origin of the window to convert |
62 | * *pictureFrame - pointer to the reference pictureframe that will give his relative coordinates | 62 | * *pictureFrame - pointer to the reference pictureframe that will give his relative coordinates |
63 | */ | 63 | */ |
64 | CartesianVector pictureframe_conversion_to_origin(int x, int y, PictureFrame *pictureFrame); | 64 | CartesianVector pictureframe_conversion_to_pic(int x, int y, PictureFrame *pictureFrame); |
65 | 65 | ||
66 | CartesianVector pictureframe_conversion_to_picture(int x, int y, PictureFrame *pictureFrame); | 66 | CartesianVector pictureframe_conversion_to_origin(int x, int y, PictureFrame *pictureFrame); |
67 | 67 | ||
68 | void pictureframe_init(PictureFrame *pictureFrame, int width, int height, int x_pos, int y_pos, | 68 | void pictureframe_init(PictureFrame *pictureFrame, int width, int height, int x_pos, int y_pos, |
69 | CartesianMappingDivision cartesianMappingDivision, Morphing *morphing, Canvas *canvas, | 69 | CartesianMappingDivision cartesianMappingDivision, Morphing *morphing, Canvas *canvas, |
70 | ClickHandler clickHandler); | 70 | ClickHandler clickHandler); |
71 | 71 | ||
72 | void pictureframe_free(PictureFrame *pictureFrame); | ||
73 | |||
74 | /** | 72 | /** |
75 | * Function: pictureframe_draw_canvas | 73 | * Function: pictureframe_draw_canvas |
76 | * Draws the contained Canvas of the PictureFrame. | 74 | * Draws the contained Canvas of the PictureFrame. |
diff --git a/include/gui/window.h b/include/gui/window.h index 329997b..10f0e74 100644 --- a/include/gui/window.h +++ b/include/gui/window.h | |||
@@ -9,6 +9,7 @@ | |||
9 | * The famous OS | 9 | * The famous OS |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <MLV/MLV_keyboard.h> | ||
12 | #include "group.h" | 13 | #include "group.h" |
13 | #include "component.h" | 14 | #include "component.h" |
14 | #include "button.h" | 15 | #include "button.h" |
@@ -100,4 +101,9 @@ void window_print_buttons(Window *window); | |||
100 | */ | 101 | */ |
101 | void window_print_pictureframes(Window *window); | 102 | void window_print_pictureframes(Window *window); |
102 | 103 | ||
104 | void window_click_keyboard_handler(Window *window, MLV_Keyboard_button *keyboardButton, | ||
105 | MLV_Keyboard_modifier *keyboardModifier, | ||
106 | int *unicode, int *mouse_x, int *mouse_y); | ||
107 | void window_rendering(Window *window,PictureFrame *pictureFrame1,Canvas *canvasSrc, Canvas *canvasTarget, Morphing *morphing); | ||
108 | |||
103 | #endif | 109 | #endif |