summaryrefslogtreecommitdiff
path: root/include/gui/component.h
diff options
context:
space:
mode:
authorAdam NAILI2017-12-28 22:52:28 +0100
committerAdam NAILI2017-12-28 22:52:28 +0100
commit9ed3c28a0335137d34e51d5fd49be6e523f65a89 (patch)
tree1abc903ff235f921eecadcbb68fe7a37449274e0 /include/gui/component.h
parent9e4eb30f33867bcb37d5accfb5588cfb3b450f90 (diff)
downloadmorpher-9ed3c28a0335137d34e51d5fd49be6e523f65a89.tar.gz
Implementing the add constraint feature, need to be fixed
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;