Guiliani  Version 2.6 revision 7293 (documentation build 12)
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 = 19;
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 LUM_8,
89 LUM_4,
90
91 // 2 bytes per pixel.
92 RGB_565 = 2 << 24,
93 BGR_565,
94 ABGR_4444,
95 BGRA_4444,
96 RGB_565_A8,
97 ARGB_4444,
98 RGBA_4444,
99
100 // 3 bytes per pixel.
101 RGB_888 = 3 << 24,
102 BGR_888,
103
104 // 4 bytes per pixel.
105 ARGB_8888 = 4 << 24,
106 ABGR_8888,
107 RGBA_8888,
108 BGRA_8888,
109 RGB_8888
110 };
111
114 {
119 OGLES
120 };
121
124 {
126 GLYPHLIB
127 };
128
131 {
135 RO_270
136 };
137
140 {
163 };
164};
165
166#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:131
@ RO_180
180 degrees
Definition: GUICommonEnums.h:134
@ RO_90
90 degrees
Definition: GUICommonEnums.h:133
@ RO_270
270 degrees
Definition: GUICommonEnums.h:135
@ RO_0
0 degrees
Definition: GUICommonEnums.h:132
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:140
@ AT_COLOR
Colors in hex notation.
Definition: GUICommonEnums.h:159
@ AT_IMAGEID
Image ID.
Definition: GUICommonEnums.h:152
@ AT_ANIMATION_CHAIN_ID
Animation Chain ID.
Definition: GUICommonEnums.h:162
@ AT_BOOL
Boolean value.
Definition: GUICommonEnums.h:149
@ AT_FLOAT
Float value.
Definition: GUICommonEnums.h:148
@ AT_INT
integer value
Definition: GUICommonEnums.h:143
@ AT_UBYTE
unsigned 8-bit value
Definition: GUICommonEnums.h:142
@ AT_STRING
String.
Definition: GUICommonEnums.h:150
@ AT_USHORT
unsigned short integer value
Definition: GUICommonEnums.h:147
@ AT_DATAPOOLID
DataPool resource ID.
Definition: GUICommonEnums.h:157
@ AT_BYTE
8-bit value
Definition: GUICommonEnums.h:141
@ AT_TEXTID
Text ID.
Definition: GUICommonEnums.h:153
@ AT_COMMENT
Comment (for XML comment tags without values).
Definition: GUICommonEnums.h:158
@ AT_PROPERTYID
Property ID.
Definition: GUICommonEnums.h:161
@ AT_HEX
Integer value, formatted in hex.
Definition: GUICommonEnums.h:145
@ AT_OBJECTID
Object handle (ID).
Definition: GUICommonEnums.h:151
@ AT_FONTID
Font ID.
Definition: GUICommonEnums.h:154
@ AT_UINT
unsigned integer value
Definition: GUICommonEnums.h:144
@ AT_SOUNDID
Sound ID.
Definition: GUICommonEnums.h:155
@ AT_SHORT
Short integer value.
Definition: GUICommonEnums.h:146
@ AT_COLORID
Color ID.
Definition: GUICommonEnums.h:160
@ AT_GENRESID
General resource ID.
Definition: GUICommonEnums.h:156
ImageType_t
Definition: GUICommonEnums.h:80
GraphicsWrapper_t
Enumeration for Graphics-Wrappers.
Definition: GUICommonEnums.h:114
@ BLU
BLU.
Definition: GUICommonEnums.h:115
@ OGLES
OpenGL ES.
Definition: GUICommonEnums.h:119
@ EGML
eGML
Definition: GUICommonEnums.h:116
@ DAVE
DAVE.
Definition: GUICommonEnums.h:117
@ OGL
OpenGL.
Definition: GUICommonEnums.h:118
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:124
@ GLYPHLIB
GlyphLib.
Definition: GUICommonEnums.h:126
@ FREETYPE
FreeType.
Definition: GUICommonEnums.h:125
static eC_Bool HasVertical(const AxisAlignment_t &eAlignment)
Definition: GUICommonEnums.h:50