From 41da8b54ed619ea869ca286cd8ec02e105e21c19 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 31 Dec 2017 15:00:23 +0100 Subject: Implementing all kinds of buttons. Rendering to fix --- include/gui/button.h | 14 ++++++++++++++ include/gui/component.h | 4 +++- include/gui/textview.h | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/gui/button.h b/include/gui/button.h index 26d7970..41008c1 100644 --- a/include/gui/button.h +++ b/include/gui/button.h @@ -58,6 +58,20 @@ void button_print(Component *parameterSelf); void button_click_test(int x, int y, Component *parameterSelf); void button_click_add_constraint(int x, int y, Component *parameterSelf); + +void button_click_show_hide(int x, int y, Component *parameterSelf); + +void button_click_exit(int x, int y, Component *parameterSelf); + +void button_click_none(int x, int y, Component *parameterSelf); + +void button_click_more_frame(int x, int y, Component *parameterSelf); + +void button_click_less_frame(int x, int y, Component *parameterSelf); + +void button_click_rendering(int x, int y, Component *parameterSelf); + + /** * Function: button_is_selected * Checks if the button is selected or not. diff --git a/include/gui/component.h b/include/gui/component.h index 0e8f437..0275d45 100644 --- a/include/gui/component.h +++ b/include/gui/component.h @@ -1,10 +1,12 @@ #ifndef UPEM_C_COMPONENT_H #define UPEM_C_COMPONENT_H typedef enum { - WAITING_BUTTON, INSERT_ORIGIN, INSERT_TARGET,PRINTING + WAITING_BUTTON_SHOW, WAITING_BUTTON_HIDE, INSERT_ORIGIN, INSERT_TARGET, PRINTING, EXITING, PRINTING_BUTTONS, RENDERING } Mode; extern Mode mode; +extern int frame; +extern char labelFrame[20]; /** * File: component.h * Windows and components handling. diff --git a/include/gui/textview.h b/include/gui/textview.h index 7a07eb3..7414336 100644 --- a/include/gui/textview.h +++ b/include/gui/textview.h @@ -1,6 +1,8 @@ #ifndef UPEM_MORPHING_TEXTVIEW #define UPEM_MORPHING_TEXTVIEW +#include "component.h" + /** * File: textview.h */ -- cgit v1.2.3