summaryrefslogtreecommitdiff
path: root/include/gui/component.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/component.h')
-rw-r--r--include/gui/component.h6
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
3typedef enum {
4 WAITING_BUTTON, INSERT_ORIGIN, INSERT_TARGET,PRINTING
5} Mode;
3 6
4#include <stdbool.h> 7extern 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 *);
38typedef struct Component { 41typedef 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;