Select one of the symbols to view example projects that use it.
 
Outline
#define GUIDEMO_H
#include "GUI.h"
#include "WM.h"
#include "CHECKBOX.h"
#include "FRAMEWIN.h"
#include "PROGBAR.h"
#include "TEXT.h"
#include "BUTTON.h"
#include "SLIDER.h"
#include "HEADER.h"
#include "GRAPH.h"
#include "ICONVIEW.h"
#include "LISTVIEW.h"
#include "TREEVIEW.h"
#define CONTROL_SIZE_X
#define CONTROL_SIZE_Y
#define INFO_SIZE_Y
#define BUTTON_SIZE_X
#define BUTTON_SIZE_Y
#define PROGBAR_SIZE_X
#define PROGBAR_SIZE_Y
#define TEXT_SIZE_X
#define TEXT_SIZE_Y
#define SHOW_PROGBAR_AT
#define GUI_ID_HALT
#define GUI_ID_NEXT
#define BK_COLOR_0
#define BK_COLOR_1
#define NUMBYTES_NEEDED
#define CIRCLE_RADIUS
#define LOGO_DIST_BORDER
#define CHAR_READING_TIME
#define SHOW_GUIDEMO_BITMAP
#define SHOW_GUIDEMO_COLORBAR
#define SHOW_GUIDEMO_CURSOR
#define SHOW_GUIDEMO_GRAPH
#define SHOW_GUIDEMO_LISTVIEW
#define SHOW_GUIDEMO_SPEED
#define SHOW_GUIDEMO_TREEVIEW
#define SHOW_GUIDEMO_ICONVIEW
#define SHOW_GUIDEMO_RADIALMENU
#define SHOW_GUIDEMO_VSCREEN
#define GUIDEMO_SHOW_SPRITES
#define GUIDEMO_USE_VNC
#define GUIDEMO_USE_AUTO_BK
#define GUIDEMO_CF_SHOW_SPRITES
#define GUIDEMO_CF_USE_VNC
#define GUIDEMO_CF_USE_AUTO_BK
GUIDEMO_CONFIG
GUIDEMO_AddIntToString(char *, unsigned int);
GUIDEMO_AddStringToString(char *, const char *);
GUIDEMO_CheckCancel();
GUIDEMO_ClearText(char *);
GUIDEMO_Config(GUIDEMO_CONFIG *);
GUIDEMO_Delay(int);
GUIDEMO_DrawBk(int);
GUIDEMO_GetConfFlag(unsigned short);
GUIDEMO_GetTime();
GUIDEMO_HideControlWin();
GUIDEMO_HideInfoWin();
GUIDEMO_NotifyStartNext();
GUIDEMO_SetDrawLogo(unsigned char);
GUIDEMO_ShowControlWin();
GUIDEMO_ShowInfo(const char *);
GUIDEMO_ShowInfoWin();
GUIDEMO_ShowIntro(const char *, const char *);
GUIDEMO_UpdateControlText();
GUIDEMO_Wait(int);
GUIDEMO_Main();
GUIDEMO_AntialiasedText();
GUIDEMO_Automotive();
GUIDEMO_BarGraph();
GUIDEMO_Bitmap();
GUIDEMO_ColorBar();
GUIDEMO_Cursor();
GUIDEMO_Fading();
GUIDEMO_Graph();
GUIDEMO_IconView();
GUIDEMO_ImageFlow();
GUIDEMO_Intro();
GUIDEMO_Listview();
GUIDEMO_RadialMenu();
GUIDEMO_Skinning();
GUIDEMO_Speed();
GUIDEMO_Speedometer();
GUIDEMO_TransparentDialog();
GUIDEMO_Treeview();
GUIDEMO_VScreen();
GUIDEMO_WashingMachine();
GUIDEMO_ZoomAndRotate();
bmSTLogo;
bmSeggerLogo;
bmSeggerLogo70x35;
bmSTLogo70x35;
GUI_FontRounded16;
GUI_FontRounded22;
GUI_FontSouvenir18;
GUI_FontD6x8;
GUI_FontAA2_32;
GUI_FontAA4_32;
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWin_SampleDemoSTemWin/App/GUIDEMO.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * Portions COPYRIGHT(c) 2016 STMicroelectronics * * Portions SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * * * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG * * * * Internet: www.segger.com Support: support@segger.com * * * ********************************************************************** ** emWin V5.28 - Graphical user interface for embedded applications ** All Intellectual Property rights in the Software belongs to SEGGER. emWin is protected by international copyright laws. Knowledge of the source code may not be used to write a similar product. This file may only be used in accordance with the following terms: The software has been licensed to STMicroelectronics International N.V. a Dutch company with a Swiss branch and its headquarters in Plan- les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ troller products commercialized by Licensee only, sublicensed and dis_ tributed under the terms and conditions of the End User License Agree_ ment supplied by STMicroelectronics International N.V. Full source code is available at: www.segger.com We appreciate your understanding and fairness. ---------------------------------------------------------------------- File : GUIDEMO.h Purpose : Configuration file of GUIDemo ---------------------------------------------------------------------- *//* ... */ /** ****************************************************************************** * @file GUIDEMO.c * @author MCD Application Team * @brief Configuration file of GUIDemo ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ #ifndef GUIDEMO_H #define GUIDEMO_H #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif #include "GUI.h" #if GUI_WINSUPPORT #include "WM.h" #include "CHECKBOX.h" #include "FRAMEWIN.h" #include "PROGBAR.h" #include "TEXT.h" #include "BUTTON.h" #include "SLIDER.h" #include "HEADER.h" #include "GRAPH.h" #include "ICONVIEW.h" #include "LISTVIEW.h" #include "TREEVIEW.h" /* ... */#endif /********************************************************************* * * Defines * ********************************************************************** *//* ... */ #define CONTROL_SIZE_X 80 #define CONTROL_SIZE_Y 61 #define INFO_SIZE_Y 65 #define BUTTON_SIZE_X 32 #define BUTTON_SIZE_Y 20 #define PROGBAR_SIZE_X 66 #define PROGBAR_SIZE_Y 12 #define TEXT_SIZE_X 69 #define TEXT_SIZE_Y 7 #define SHOW_PROGBAR_AT 100 #define GUI_ID_HALT (GUI_ID_USER + 0) #define GUI_ID_NEXT (GUI_ID_USER + 1) #define BK_COLOR_0 0xFF5555 #define BK_COLOR_1 0x880000 #define NUMBYTES_NEEDED 0x200000 #define CIRCLE_RADIUS 100 #define LOGO_DIST_BORDER 5 #define CHAR_READING_TIME 80 18 defines /********************************************************************* * * Configuration of modules to be used * ********************************************************************** *//* ... */ #ifndef SHOW_GUIDEMO_BITMAP #define SHOW_GUIDEMO_BITMAP (1) #endif #ifndef SHOW_GUIDEMO_COLORBAR #define SHOW_GUIDEMO_COLORBAR (1) #endif #ifndef SHOW_GUIDEMO_CURSOR #define SHOW_GUIDEMO_CURSOR (1) #endif #ifndef SHOW_GUIDEMO_GRAPH #define SHOW_GUIDEMO_GRAPH (1) #endif #ifndef SHOW_GUIDEMO_LISTVIEW #define SHOW_GUIDEMO_LISTVIEW (1) #endif #ifndef SHOW_GUIDEMO_SPEED #define SHOW_GUIDEMO_SPEED (1) #endif #ifndef SHOW_GUIDEMO_TREEVIEW #define SHOW_GUIDEMO_TREEVIEW (1) #endif #ifndef SHOW_GUIDEMO_ICONVIEW #define SHOW_GUIDEMO_ICONVIEW (1) #endif #ifndef SHOW_GUIDEMO_RADIALMENU #define SHOW_GUIDEMO_RADIALMENU (1) #endif #ifndef SHOW_GUIDEMO_VSCREEN #define SHOW_GUIDEMO_VSCREEN (1) #endif /********************************************************************* * * Configuration macros * ********************************************************************** *//* ... */ #ifndef GUIDEMO_SHOW_SPRITES #define GUIDEMO_SHOW_SPRITES (1) #endif #ifndef GUIDEMO_USE_VNC #define GUIDEMO_USE_VNC (0) #endif #ifndef GUIDEMO_USE_AUTO_BK #define GUIDEMO_USE_AUTO_BK (1) #endif #define GUIDEMO_CF_SHOW_SPRITES (GUIDEMO_SHOW_SPRITES << 0) #define GUIDEMO_CF_USE_VNC (GUIDEMO_USE_VNC << 1) #define GUIDEMO_CF_USE_AUTO_BK (GUIDEMO_USE_AUTO_BK << 2) /********************************************************************* * * GUIDEMO_CONFIG *//* ... */ typedef struct GUIDEMO_CONFIG { void (* * apFunc)(void); int NumDemos; U16 Flags; #if GUIDEMO_USE_VNC int (* pGUI_VNC_X_StartServer)(int LayerIndex, int ServerIndex); #endif ...} GUIDEMO_CONFIG; /********************************************************************* * * Internal functions * ********************************************************************** *//* ... */ void GUIDEMO_AddIntToString (char * acText, unsigned int Number); void GUIDEMO_AddStringToString(char * acText, const char * acAdd); int GUIDEMO_CheckCancel (void); void GUIDEMO_ClearText (char * acText); void GUIDEMO_Config (GUIDEMO_CONFIG * pConfig); void GUIDEMO_Delay (int t); void GUIDEMO_DrawBk (int DrawLogo); U16 GUIDEMO_GetConfFlag (U16 Flag); int GUIDEMO_GetTime (void); void GUIDEMO_HideControlWin (void); void GUIDEMO_HideInfoWin (void); void GUIDEMO_NotifyStartNext (void); void GUIDEMO_SetDrawLogo (U8 OnOff); void GUIDEMO_ShowControlWin (void); void GUIDEMO_ShowInfo (const char * acInfo); void GUIDEMO_ShowInfoWin (void); void GUIDEMO_ShowIntro (const char * acText, const char * acDescription); void GUIDEMO_UpdateControlText(void); void GUIDEMO_Wait (int TimeWait); void GUIDEMO_Main (void); /********************************************************************* * * Demo modules * ********************************************************************** *//* ... */ void GUIDEMO_AntialiasedText (void); void GUIDEMO_Automotive (void); void GUIDEMO_BarGraph (void); void GUIDEMO_Bitmap (void); void GUIDEMO_ColorBar (void); void GUIDEMO_Cursor (void); void GUIDEMO_Fading (void); void GUIDEMO_Graph (void); void GUIDEMO_IconView (void); void GUIDEMO_ImageFlow (void); void GUIDEMO_Intro (void); void GUIDEMO_Listview (void); void GUIDEMO_RadialMenu (void); void GUIDEMO_Skinning (void); void GUIDEMO_Speed (void); void GUIDEMO_Speedometer (void); void GUIDEMO_TransparentDialog(void); void GUIDEMO_Treeview (void); void GUIDEMO_VScreen (void); void GUIDEMO_WashingMachine (void); void GUIDEMO_ZoomAndRotate (void); /********************************************************************* * * Externs * ********************************************************************** *//* ... */ extern GUI_CONST_STORAGE GUI_BITMAP bmSTLogo; extern GUI_CONST_STORAGE GUI_BITMAP bmSeggerLogo; extern GUI_CONST_STORAGE GUI_BITMAP bmSeggerLogo70x35; extern GUI_CONST_STORAGE GUI_BITMAP bmSTLogo70x35; extern GUI_CONST_STORAGE GUI_FONT GUI_FontRounded16; extern GUI_CONST_STORAGE GUI_FONT GUI_FontRounded22; extern GUI_CONST_STORAGE GUI_FONT GUI_FontSouvenir18; extern GUI_CONST_STORAGE GUI_FONT GUI_FontD6x8; extern GUI_CONST_STORAGE GUI_FONT GUI_FontAA2_32; extern GUI_CONST_STORAGE GUI_FONT GUI_FontAA4_32; #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif // avoid multiple inclusion