From 9ed3c28a0335137d34e51d5fd49be6e523f65a89 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Thu, 28 Dec 2017 22:52:28 +0100 Subject: Implementing the add constraint feature, need to be fixed --- include/gui/component.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/gui/component.h') diff --git a/include/gui/component.h b/include/gui/component.h index dd101dc..0e8f437 100644 --- a/include/gui/component.h +++ b/include/gui/component.h @@ -1,7 +1,10 @@ #ifndef UPEM_C_COMPONENT_H #define UPEM_C_COMPONENT_H +typedef enum { + WAITING_BUTTON, INSERT_ORIGIN, INSERT_TARGET,PRINTING +} Mode; -#include +extern Mode mode; /** * File: component.h * Windows and components handling. @@ -38,7 +41,6 @@ typedef void (*PrintMethod)(struct Component *); typedef struct Component { int width, height; int x_pos, y_pos; - bool activated; ClickHandler click_handler; PrintMethod print_method; } Component; -- cgit v1.2.3