diff options
Diffstat (limited to 'include/gui/component.h')
-rw-r--r-- | include/gui/component.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/include/gui/component.h b/include/gui/component.h index 9700dfe..97a23fe 100644 --- a/include/gui/component.h +++ b/include/gui/component.h | |||
@@ -1,5 +1,9 @@ | |||
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 | /** | ||
4 | * File: component.h | ||
5 | * Components implementation. | ||
6 | */ | ||
3 | 7 | ||
4 | /** | 8 | /** |
5 | * Enum: Mode | 9 | * Enum: Mode |
@@ -17,16 +21,21 @@ typedef enum { | |||
17 | WAITING_BUTTON_SHOW, WAITING_BUTTON_HIDE, INSERT_ORIGIN, INSERT_TARGET, PRINTING, EXITING, PRINTING_BUTTONS, RENDERING | 21 | WAITING_BUTTON_SHOW, WAITING_BUTTON_HIDE, INSERT_ORIGIN, INSERT_TARGET, PRINTING, EXITING, PRINTING_BUTTONS, RENDERING |
18 | } Mode; | 22 | } Mode; |
19 | 23 | ||
24 | /** | ||
25 | * Mode is used for application status rotation. It is shared between our components. In OOP, this could have been a | ||
26 | * static attribute of the class. | ||
27 | **/ | ||
20 | extern Mode mode; | 28 | extern Mode mode; |
21 | extern int frame; | ||
22 | extern char labelFrame[20]; | ||
23 | /** | 29 | /** |
24 | * File: component.h | 30 | * Components have no access to exterior. They can access only to themselves due to the generic implementation. These |
25 | * Windows and components handling. | 31 | * variables are the easiest way to share memory between components. |
26 | * | 32 | * frame and labelFrame is used to frame management and printing this number of frame on one of the button. Button are |
27 | * See also: | 33 | * not designed to have a dynamic label, so this implementation is the fastest without breaking the code or creating |
28 | * The famous OS | 34 | * another type of components. |
29 | */ | 35 | */ |
36 | extern int frame; | ||
37 | extern char labelFrame[20]; | ||
38 | |||
30 | struct Component; | 39 | struct Component; |
31 | 40 | ||
32 | /** | 41 | /** |