diff options
Diffstat (limited to 'include/gui/component.h')
-rw-r--r-- | include/gui/component.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | #ifndef UPEM_C_COMPONENT_H | 1 | #ifndef UPEM_C_COMPONENT_H |
2 | #define UPEM_C_COMPONENT_H | 2 | #define UPEM_C_COMPONENT_H |
3 | typedef enum { | ||
4 | WAITING_BUTTON, INSERT_ORIGIN, INSERT_TARGET,PRINTING | ||
5 | } Mode; | ||
3 | 6 | ||
4 | #include <stdbool.h> | 7 | extern Mode mode; |
5 | /** | 8 | /** |
6 | * File: component.h | 9 | * File: component.h |
7 | * Windows and components handling. | 10 | * Windows and components handling. |
@@ -38,7 +41,6 @@ typedef void (*PrintMethod)(struct Component *); | |||
38 | typedef struct Component { | 41 | typedef struct Component { |
39 | int width, height; | 42 | int width, height; |
40 | int x_pos, y_pos; | 43 | int x_pos, y_pos; |
41 | bool activated; | ||
42 | ClickHandler click_handler; | 44 | ClickHandler click_handler; |
43 | PrintMethod print_method; | 45 | PrintMethod print_method; |
44 | } Component; | 46 | } Component; |