summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/button.c7
-rw-r--r--src/gui/component.c7
-rw-r--r--src/gui/group.c7
-rw-r--r--src/gui/gui.c7
-rw-r--r--src/gui/pictureframe.c7
-rw-r--r--src/gui/window.c7
6 files changed, 42 insertions, 0 deletions
diff --git a/src/gui/button.c b/src/gui/button.c
index 4bf3952..79abef2 100644
--- a/src/gui/button.c
+++ b/src/gui/button.c
@@ -6,6 +6,13 @@
6#include <MLV/MLV_all.h> 6#include <MLV/MLV_all.h>
7#include "common/mem.h" 7#include "common/mem.h"
8 8
9/**
10 * File: button.c
11 *
12 * Author:
13 * Adam NAILI
14 */
15
9static bool button_is_selected(int x, int y, Button *button) { 16static bool button_is_selected(int x, int y, Button *button) {
10 assert(button != NULL); 17 assert(button != NULL);
11 int x1 = button->component.x_pos; 18 int x1 = button->component.x_pos;
diff --git a/src/gui/component.c b/src/gui/component.c
index c45ea4f..65435db 100644
--- a/src/gui/component.c
+++ b/src/gui/component.c
@@ -1,5 +1,12 @@
1#include "gui/component.h" 1#include "gui/component.h"
2 2
3/**
4 * File: component.c
5 *
6 * Author:
7 * Adam NAILI
8 */
9
3Mode mode = WAITING_BUTTON_SHOW; 10Mode mode = WAITING_BUTTON_SHOW;
4 11
5int frame = 2; 12int frame = 2;
diff --git a/src/gui/group.c b/src/gui/group.c
index 7f5adcd..75737af 100644
--- a/src/gui/group.c
+++ b/src/gui/group.c
@@ -4,6 +4,13 @@
4#include <MLV/MLV_shape.h> 4#include <MLV/MLV_shape.h>
5#include "common/mem.h" 5#include "common/mem.h"
6 6
7/**
8 * File: group.c
9 *
10 * Author:
11 * Adam NAILI
12 */
13
7void group_print(Component *parameterSelf) { 14void group_print(Component *parameterSelf) {
8 assert(parameterSelf != NULL); 15 assert(parameterSelf != NULL);
9 Group *self = (Group *) parameterSelf; 16 Group *self = (Group *) parameterSelf;
diff --git a/src/gui/gui.c b/src/gui/gui.c
index 7300196..45565e5 100644
--- a/src/gui/gui.c
+++ b/src/gui/gui.c
@@ -2,6 +2,13 @@
2#include <MLV/MLV_all.h> 2#include <MLV/MLV_all.h>
3#include "common/mem.h" 3#include "common/mem.h"
4 4
5/**
6 * File: gui.c
7 *
8 * Author:
9 * Adam NAILI
10 */
11
5GUI *gui_create(const char *fpath1, const char *fpath2) { 12GUI *gui_create(const char *fpath1, const char *fpath2) {
6 GUI *gui = malloc_or_die(sizeof(GUI)); 13 GUI *gui = malloc_or_die(sizeof(GUI));
7 gui->window = window_create(500, 500, "Morphing"); 14 gui->window = window_create(500, 500, "Morphing");
diff --git a/src/gui/pictureframe.c b/src/gui/pictureframe.c
index c012ece..c6d7bf6 100644
--- a/src/gui/pictureframe.c
+++ b/src/gui/pictureframe.c
@@ -3,6 +3,13 @@
3#include <MLV/MLV_all.h> 3#include <MLV/MLV_all.h>
4#include "common/mem.h" 4#include "common/mem.h"
5 5
6/**
7 * File: pictureframe.c
8 *
9 * Author:
10 * Adam NAILI
11 */
12
6static bool pictureframe_is_selected(int x, int y, PictureFrame *pictureFrame) { 13static bool pictureframe_is_selected(int x, int y, PictureFrame *pictureFrame) {
7 assert(pictureFrame != NULL); 14 assert(pictureFrame != NULL);
8 int x1 = pictureFrame->component.x_pos; 15 int x1 = pictureFrame->component.x_pos;
diff --git a/src/gui/window.c b/src/gui/window.c
index c9d200a..5d0a187 100644
--- a/src/gui/window.c
+++ b/src/gui/window.c
@@ -4,6 +4,13 @@
4#include "painter/rasterizer.h" 4#include "painter/rasterizer.h"
5#include "common/mem.h" 5#include "common/mem.h"
6 6
7/**
8 * File: window.c
9 *
10 * Author:
11 * Adam NAILI
12 */
13
7Window *window_create(int width, int height, char *title) { 14Window *window_create(int width, int height, char *title) {
8 assert(width > 0); 15 assert(width > 0);
9 assert(height > 0); 16 assert(height > 0);