Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUICommonEnums.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUICOMMONENUMS_H
11#define GUICOMMONENUMS_H
12
14const eC_UInt cuiNumOfImageTypes = 14;
15
19{
20public:
23 {
27 AA_BOTH
28 };
29
32 {
35 };
36
41 static eC_Bool HasHorizontal(const AxisAlignment_t& eAlignment)
42 {
43 return ((eAlignment == AA_HORIZONTAL) || (eAlignment == AA_BOTH));
44 }
45
50 static eC_Bool HasVertical(const AxisAlignment_t& eAlignment)
51 {
52 return ((eAlignment == AA_VERTICAL) || (eAlignment == AA_BOTH));
53 }
54
57 {
60 };
61
64 {
69 };
70
80 {
81 // Original format of the image.
82 IMAGE_FORMAT = 0,
83
84 // Trick: We use the upper byte to indicate how many bytes are used per pixel.
85 // 1 byte per pixel.
86 ALPHA_8 = 1 << 24,
87 ALPHA_4,
88
89 // 2 bytes per pixel.
90 RGB_565 = 2 << 24,
91 BGR_565,
92 ABGR_4444,
93 BGRA_4444,
94 RGB_565_A8,
95 ARGB_4444,
96 RGBA_4444,
97
98 // 3 bytes per pixel.
99 RGB_888 = 3 << 24,
100 BGR_888,
101
102 // 4 bytes per pixel.
103 ARGB_8888 = 4 << 24,
104 ABGR_8888,
105 RGBA_8888,
106 BGRA_8888,
107 RGB_8888
108 };
109
112 {
117 OGLES
118 };
119
122 {
124 GLYPHLIB
125 };
126
129 {
133 RO_270
134 };
135
138 {
161 };
162};
163
164#endif // GUICOMMONENUMS_H
Definition: GUICommonEnums.h:19
Alignment_t
Position of control.
Definition: GUICommonEnums.h:64
@ ALIGN_TOP
aligned to top
Definition: GUICommonEnums.h:65
@ ALIGN_RIGHT
aligned right
Definition: GUICommonEnums.h:68
@ ALIGN_BOTTOM
aligned to bottom
Definition: GUICommonEnums.h:66
@ ALIGN_LEFT
aligned left
Definition: GUICommonEnums.h:67
static eC_Bool HasHorizontal(const AxisAlignment_t &eAlignment)
Definition: GUICommonEnums.h:41
AxisStyle_t
Axis-types for displaying values.
Definition: GUICommonEnums.h:32
@ AS_LINEAR
linear
Definition: GUICommonEnums.h:33
@ AS_LOGARITHMIC
logarithmic
Definition: GUICommonEnums.h:34
Rotation_t
Enumaration for Rotation.
Definition: GUICommonEnums.h:129
@ RO_180
180 degrees
Definition: GUICommonEnums.h:132
@ RO_90
90 degrees
Definition: GUICommonEnums.h:131
@ RO_270
270 degrees
Definition: GUICommonEnums.h:133
@ RO_0
0 degrees
Definition: GUICommonEnums.h:130
AxisAlignment_t
Axis-alignment for freedom of control.
Definition: GUICommonEnums.h:23
@ AA_NONE
not aligned
Definition: GUICommonEnums.h:24
@ AA_VERTICAL
vertical
Definition: GUICommonEnums.h:26
@ AA_BOTH
horizontal + vertical
Definition: GUICommonEnums.h:27
@ AA_HORIZONTAL
horizontal
Definition: GUICommonEnums.h:25
AttributeType
The possible types of attributes.
Definition: GUICommonEnums.h:138
@ AT_COLOR
Colors in hex notation.
Definition: GUICommonEnums.h:157
@ AT_IMAGEID
Image ID.
Definition: GUICommonEnums.h:150
@ AT_ANIMATION_CHAIN_ID
Animation Chain ID.
Definition: GUICommonEnums.h:160
@ AT_BOOL
Boolean value.
Definition: GUICommonEnums.h:147
@ AT_FLOAT
Float value.
Definition: GUICommonEnums.h:146
@ AT_INT
integer value
Definition: GUICommonEnums.h:141
@ AT_UBYTE
unsigned 8-bit value
Definition: GUICommonEnums.h:140
@ AT_STRING
String.
Definition: GUICommonEnums.h:148
@ AT_USHORT
unsigned short integer value
Definition: GUICommonEnums.h:145
@ AT_DATAPOOLID
DataPool resource ID.
Definition: GUICommonEnums.h:155
@ AT_BYTE
8-bit value
Definition: GUICommonEnums.h:139
@ AT_TEXTID
Text ID.
Definition: GUICommonEnums.h:151
@ AT_COMMENT
Comment (for XML comment tags without values).
Definition: GUICommonEnums.h:156
@ AT_PROPERTYID
Property ID.
Definition: GUICommonEnums.h:159
@ AT_HEX
Integer value, formatted in hex.
Definition: GUICommonEnums.h:143
@ AT_OBJECTID
Object handle (ID).
Definition: GUICommonEnums.h:149
@ AT_FONTID
Font ID.
Definition: GUICommonEnums.h:152
@ AT_UINT
unsigned integer value
Definition: GUICommonEnums.h:142
@ AT_SOUNDID
Sound ID.
Definition: GUICommonEnums.h:153
@ AT_SHORT
Short integer value.
Definition: GUICommonEnums.h:144
@ AT_COLORID
Color ID.
Definition: GUICommonEnums.h:158
@ AT_GENRESID
General resource ID.
Definition: GUICommonEnums.h:154
ImageType_t
Definition: GUICommonEnums.h:80
GraphicsWrapper_t
Enumeration for Graphics-Wrappers.
Definition: GUICommonEnums.h:112
@ BLU
BLU.
Definition: GUICommonEnums.h:113
@ OGLES
OpenGL ES.
Definition: GUICommonEnums.h:117
@ EGML
eGML
Definition: GUICommonEnums.h:114
@ DAVE
DAVE.
Definition: GUICommonEnums.h:115
@ OGL
OpenGL.
Definition: GUICommonEnums.h:116
Orientation_t
orientation of controls
Definition: GUICommonEnums.h:57
@ OR_VERTICAL
vertical orientation
Definition: GUICommonEnums.h:59
@ OR_HORIZONTAL
horizontal orientation
Definition: GUICommonEnums.h:58
FontWrapper_t
Emumerations for Font-Wrappers.
Definition: GUICommonEnums.h:122
@ GLYPHLIB
GlyphLib.
Definition: GUICommonEnums.h:124
@ FREETYPE
FreeType.
Definition: GUICommonEnums.h:123
static eC_Bool HasVertical(const AxisAlignment_t &eAlignment)
Definition: GUICommonEnums.h:50