summaryrefslogtreecommitdiff
path: root/src/gui/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/button.c')
-rw-r--r--src/gui/button.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gui/button.c b/src/gui/button.c
index 03addf8..a55796d 100644
--- a/src/gui/button.c
+++ b/src/gui/button.c
@@ -7,8 +7,6 @@
7#include <gui/component.h> 7#include <gui/component.h>
8 8
9bool button_is_selected(int x, int y, Button *button) { 9bool button_is_selected(int x, int y, Button *button) {
10 assert(x >= 0);
11 assert(y >= 0);
12 assert(button != NULL); 10 assert(button != NULL);
13 int x1 = button->component.x_pos; 11 int x1 = button->component.x_pos;
14 int y1 = button->component.y_pos; 12 int y1 = button->component.y_pos;
@@ -28,8 +26,6 @@ void button_print(Component *parameterSelf) {
28} 26}
29 27
30void button_click_test(int x, int y, Component *parameterSelf) { 28void button_click_test(int x, int y, Component *parameterSelf) {
31 assert(x >= 0);
32 assert(y >= 0);
33 assert(parameterSelf != NULL); 29 assert(parameterSelf != NULL);
34 Button *self = (Button *) parameterSelf; 30 Button *self = (Button *) parameterSelf;
35 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 31 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -37,8 +33,6 @@ void button_click_test(int x, int y, Component *parameterSelf) {
37} 33}
38 34
39void button_click_add_constraint(int x, int y, Component *parameterSelf) { 35void button_click_add_constraint(int x, int y, Component *parameterSelf) {
40 assert(x >= 0);
41 assert(y >= 0);
42 assert(parameterSelf != NULL); 36 assert(parameterSelf != NULL);
43 Button *self = (Button *) parameterSelf; 37 Button *self = (Button *) parameterSelf;
44 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 38 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -47,8 +41,6 @@ void button_click_add_constraint(int x, int y, Component *parameterSelf) {
47} 41}
48 42
49void button_click_show_hide(int x, int y, Component *parameterSelf) { 43void button_click_show_hide(int x, int y, Component *parameterSelf) {
50 assert(x >= 0);
51 assert(y >= 0);
52 assert(parameterSelf != NULL); 44 assert(parameterSelf != NULL);
53 Button *self = (Button *) parameterSelf; 45 Button *self = (Button *) parameterSelf;
54 if (button_is_selected(x, y, self)) { 46 if (button_is_selected(x, y, self)) {
@@ -61,8 +53,6 @@ void button_click_show_hide(int x, int y, Component *parameterSelf) {
61} 53}
62 54
63void button_click_exit(int x, int y, Component *parameterSelf) { 55void button_click_exit(int x, int y, Component *parameterSelf) {
64 assert(x >= 0);
65 assert(y >= 0);
66 assert(parameterSelf != NULL); 56 assert(parameterSelf != NULL);
67 Button *self = (Button *) parameterSelf; 57 Button *self = (Button *) parameterSelf;
68 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 58 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -71,8 +61,6 @@ void button_click_exit(int x, int y, Component *parameterSelf) {
71} 61}
72 62
73void button_click_less_frame(int x, int y, Component *parameterSelf) { 63void button_click_less_frame(int x, int y, Component *parameterSelf) {
74 assert(x >= 0);
75 assert(y >= 0);
76 assert(parameterSelf != NULL); 64 assert(parameterSelf != NULL);
77 Button *self = (Button *) parameterSelf; 65 Button *self = (Button *) parameterSelf;
78 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 66 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -85,8 +73,6 @@ void button_click_less_frame(int x, int y, Component *parameterSelf) {
85} 73}
86 74
87void button_click_more_frame(int x, int y, Component *parameterSelf) { 75void button_click_more_frame(int x, int y, Component *parameterSelf) {
88 assert(x >= 0);
89 assert(y >= 0);
90 assert(parameterSelf != NULL); 76 assert(parameterSelf != NULL);
91 Button *self = (Button *) parameterSelf; 77 Button *self = (Button *) parameterSelf;
92 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 78 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -99,8 +85,6 @@ void button_click_more_frame(int x, int y, Component *parameterSelf) {
99} 85}
100 86
101void button_click_rendering(int x,int y, Component *parameterSelf) { 87void button_click_rendering(int x,int y, Component *parameterSelf) {
102 assert(x >= 0);
103 assert(y >= 0);
104 assert(parameterSelf != NULL); 88 assert(parameterSelf != NULL);
105 Button *self = (Button *) parameterSelf; 89 Button *self = (Button *) parameterSelf;
106 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { 90 if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) {
@@ -109,8 +93,6 @@ void button_click_rendering(int x,int y, Component *parameterSelf) {
109} 93}
110 94
111void button_click_none(int x, int y, Component *parameterSelf) { 95void button_click_none(int x, int y, Component *parameterSelf) {
112 assert(x >= 0);
113 assert(y >= 0);
114 assert(parameterSelf != NULL); 96 assert(parameterSelf != NULL);
115} 97}
116 98