Select one of the symbols to view example projects that use it.
 
Outline
#define CHECKBOX_H
#include "WM.h"
#include "DIALOG_Intern.h"
#include "WIDGET.h"
#define CHECKBOX_CI_DISABLED
#define CHECKBOX_CI_ENABLED
#define CHECKBOX_BI_INACTIV_UNCHECKED
#define CHECKBOX_BI_ACTIV_UNCHECKED
#define CHECKBOX_BI_INACTIV_CHECKED
#define CHECKBOX_BI_ACTIV_CHECKED
#define CHECKBOX_BI_INACTIV_3STATE
#define CHECKBOX_BI_ACTIV_3STATE
#define CHECKBOX_SKINFLEX_PI_ENABLED
#define CHECKBOX_SKINFLEX_PI_DISABLED
CHECKBOX_Handle
CHECKBOX_SKINFLEX_PROPS
CHECKBOX_Create(int, int, int, int, GUI_HWIN, int, int);
CHECKBOX_CreateEx(int, int, int, int, GUI_HWIN, int, int, int);
CHECKBOX_CreateUser(int, int, int, int, GUI_HWIN, int, int, int, int);
CHECKBOX_CreateIndirect(const GUI_WIDGET_CREATE_INFO *, GUI_HWIN, int, int, WM_CALLBACK *);
CHECKBOX_Callback(WM_MESSAGE *);
CHECKBOX_GetDefaultAlign();
CHECKBOX_GetDefaultBkColor();
CHECKBOX_GetDefaultFont();
CHECKBOX_GetDefaultSpacing();
CHECKBOX_GetDefaultTextAlign();
CHECKBOX_GetDefaultTextColor();
CHECKBOX_GetUserData(CHECKBOX_Handle, void *, int);
CHECKBOX_SetDefaultAlign(int);
CHECKBOX_SetDefaultBkColor(GUI_COLOR);
CHECKBOX_SetDefaultFocusColor(GUI_COLOR);
CHECKBOX_SetDefaultFont(const GUI_FONT *);
CHECKBOX_SetDefaultImage(const GUI_BITMAP *, unsigned int);
CHECKBOX_SetDefaultSpacing(int);
CHECKBOX_SetDefaultTextAlign(int);
CHECKBOX_SetDefaultTextColor(GUI_COLOR);
CHECKBOX_GetBkColor(CHECKBOX_Handle);
CHECKBOX_GetBoxBkColor(CHECKBOX_Handle, int);
CHECKBOX_GetFocusColor(CHECKBOX_Handle);
CHECKBOX_GetFont(CHECKBOX_Handle);
CHECKBOX_GetState(CHECKBOX_Handle);
CHECKBOX_GetText(CHECKBOX_Handle, char *, int);
CHECKBOX_GetTextAlign(CHECKBOX_Handle);
CHECKBOX_GetTextColor(CHECKBOX_Handle);
CHECKBOX_IsChecked(CHECKBOX_Handle);
CHECKBOX_SetBkColor(CHECKBOX_Handle, GUI_COLOR);
CHECKBOX_SetBoxBkColor(CHECKBOX_Handle, GUI_COLOR, int);
CHECKBOX_SetFocusColor(CHECKBOX_Handle, GUI_COLOR);
CHECKBOX_SetFont(CHECKBOX_Handle, const GUI_FONT *);
CHECKBOX_SetImage(CHECKBOX_Handle, const GUI_BITMAP *, unsigned int);
CHECKBOX_SetNumStates(CHECKBOX_Handle, unsigned int);
CHECKBOX_SetSpacing(CHECKBOX_Handle, unsigned int);
CHECKBOX_SetState(CHECKBOX_Handle, unsigned int);
CHECKBOX_SetText(CHECKBOX_Handle, const char *);
CHECKBOX_SetTextAlign(CHECKBOX_Handle, int);
CHECKBOX_SetTextColor(CHECKBOX_Handle, GUI_COLOR);
CHECKBOX_SetUserData(CHECKBOX_Handle, const void *, int);
CHECKBOX_GetSkinFlexProps(CHECKBOX_SKINFLEX_PROPS *, int);
CHECKBOX_SetSkinClassic(CHECKBOX_Handle);
CHECKBOX_SetSkin(CHECKBOX_Handle, WIDGET_DRAW_ITEM_FUNC *);
CHECKBOX_DrawSkinFlex(const WIDGET_ITEM_DRAW_INFO *);
CHECKBOX_SetSkinFlexProps(const CHECKBOX_SKINFLEX_PROPS *, int);
CHECKBOX_SetDefaultSkinClassic();
CHECKBOX_GetSkinFlexButtonSize(CHECKBOX_Handle);
CHECKBOX_SetSkinFlexButtonSize(CHECKBOX_Handle, int);
CHECKBOX_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC *);
#define CHECKBOX_SKIN_FLEX
#define CHECKBOX_Check
#define CHECKBOX_Uncheck
#define CHECKBOX_BI_INACTIV
#define CHECKBOX_BI_ACTIV
Files
loading...
SourceVuSTM32 Libraries and SamplesSTemWininc/CHECKBOX.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * * * (c) 1996 - 2017 SEGGER Microcontroller GmbH & Co. KG * * * * Internet: www.segger.com Support: support@segger.com * * * ********************************************************************** ** emWin V5.44 - 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. ---------------------------------------------------------------------- ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2018 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under Ultimate Liberty license SLA0044, * the "License"; You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * http://www.st.com/SLA0044 * ****************************************************************************** ---------------------------------------------------------------------- File : CHECKBOX.h Purpose : CHECKBOX include --------------------END-OF-HEADER------------------------------------- *//* ... */ #ifndef CHECKBOX_H #define CHECKBOX_H #include "WM.h" #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ #include "WIDGET.h" #if GUI_WINSUPPORT #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * Defines * ********************************************************************** *//* ... */ /********************************************************************* * * Color indices *//* ... */ #define CHECKBOX_CI_DISABLED 0 #define CHECKBOX_CI_ENABLED 1 /********************************************************************* * * Bitmap indices *//* ... */ #define CHECKBOX_BI_INACTIV_UNCHECKED 0 #define CHECKBOX_BI_ACTIV_UNCHECKED 1 #define CHECKBOX_BI_INACTIV_CHECKED 2 #define CHECKBOX_BI_ACTIV_CHECKED 3 #define CHECKBOX_BI_INACTIV_3STATE 4 #define CHECKBOX_BI_ACTIV_3STATE 5 /********************************************************************* * * Skinning property indices *//* ... */ #define CHECKBOX_SKINFLEX_PI_ENABLED 0 #define CHECKBOX_SKINFLEX_PI_DISABLED 1 10 defines /********************************************************************* * * Public Types * ********************************************************************** *//* ... */ typedef WM_HMEM CHECKBOX_Handle; typedef struct { GUI_COLOR aColorFrame[3]; GUI_COLOR aColorInner[2]; GUI_COLOR ColorCheck; int ButtonSize; ...} CHECKBOX_SKINFLEX_PROPS; /********************************************************************* * * Create functions * ********************************************************************** *//* ... */ CHECKBOX_Handle CHECKBOX_Create (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int Id, int Flags); CHECKBOX_Handle CHECKBOX_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id); CHECKBOX_Handle CHECKBOX_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes); CHECKBOX_Handle CHECKBOX_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); /********************************************************************* * * The callback ... * * Do not call it directly ! It is only to be used from within an * overwritten callback. *//* ... */ void CHECKBOX_Callback(WM_MESSAGE * pMsg); /********************************************************************* * * Managing default values * ********************************************************************** *//* ... */ int CHECKBOX_GetDefaultAlign (void); GUI_COLOR CHECKBOX_GetDefaultBkColor (void); const GUI_FONT * CHECKBOX_GetDefaultFont (void); int CHECKBOX_GetDefaultSpacing (void); int CHECKBOX_GetDefaultTextAlign (void); GUI_COLOR CHECKBOX_GetDefaultTextColor (void); int CHECKBOX_GetUserData (CHECKBOX_Handle hObj, void * pDest, int NumBytes); void CHECKBOX_SetDefaultAlign (int Align); void CHECKBOX_SetDefaultBkColor (GUI_COLOR Color); GUI_COLOR CHECKBOX_SetDefaultFocusColor(GUI_COLOR Color); void CHECKBOX_SetDefaultFont (const GUI_FONT * pFont); void CHECKBOX_SetDefaultImage (const GUI_BITMAP * pBitmap, unsigned int Index); void CHECKBOX_SetDefaultSpacing (int Spacing); void CHECKBOX_SetDefaultTextAlign (int Align); void CHECKBOX_SetDefaultTextColor (GUI_COLOR Color); /********************************************************************* * * Member functions * ********************************************************************** *//* ... */ GUI_COLOR CHECKBOX_GetBkColor (CHECKBOX_Handle hObj); GUI_COLOR CHECKBOX_GetBoxBkColor(CHECKBOX_Handle hObj, int Index); GUI_COLOR CHECKBOX_GetFocusColor(CHECKBOX_Handle hObj); const GUI_FONT * CHECKBOX_GetFont (CHECKBOX_Handle hObj); int CHECKBOX_GetState (CHECKBOX_Handle hObj); int CHECKBOX_GetText (CHECKBOX_Handle hObj, char * pBuffer, int MaxLen); int CHECKBOX_GetTextAlign (CHECKBOX_Handle hObj); GUI_COLOR CHECKBOX_GetTextColor (CHECKBOX_Handle hObj); int CHECKBOX_IsChecked (CHECKBOX_Handle hObj); void CHECKBOX_SetBkColor (CHECKBOX_Handle hObj, GUI_COLOR Color); GUI_COLOR CHECKBOX_SetBoxBkColor(CHECKBOX_Handle hObj, GUI_COLOR Color, int Index); GUI_COLOR CHECKBOX_SetFocusColor(CHECKBOX_Handle hObj, GUI_COLOR Color); void CHECKBOX_SetFont (CHECKBOX_Handle hObj, const GUI_FONT * pFont); void CHECKBOX_SetImage (CHECKBOX_Handle hObj, const GUI_BITMAP * pBitmap, unsigned int Index); void CHECKBOX_SetNumStates (CHECKBOX_Handle hObj, unsigned NumStates); void CHECKBOX_SetSpacing (CHECKBOX_Handle hObj, unsigned Spacing); void CHECKBOX_SetState (CHECKBOX_Handle hObj, unsigned State); void CHECKBOX_SetText (CHECKBOX_Handle hObj, const char * pText); void CHECKBOX_SetTextAlign (CHECKBOX_Handle hObj, int Align); void CHECKBOX_SetTextColor (CHECKBOX_Handle hObj, GUI_COLOR Color); int CHECKBOX_SetUserData (CHECKBOX_Handle hObj, const void * pSrc, int NumBytes); /********************************************************************* * * Member functions: Skinning * ********************************************************************** *//* ... */ void CHECKBOX_GetSkinFlexProps (CHECKBOX_SKINFLEX_PROPS * pProps, int Index); void CHECKBOX_SetSkinClassic (CHECKBOX_Handle hObj); void CHECKBOX_SetSkin (CHECKBOX_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); int CHECKBOX_DrawSkinFlex (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); void CHECKBOX_SetSkinFlexProps (const CHECKBOX_SKINFLEX_PROPS * pProps, int Index); void CHECKBOX_SetDefaultSkinClassic (void); int CHECKBOX_GetSkinFlexButtonSize (CHECKBOX_Handle hObj); void CHECKBOX_SetSkinFlexButtonSize (CHECKBOX_Handle hObj, int ButtonSize); WIDGET_DRAW_ITEM_FUNC * CHECKBOX_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); #define CHECKBOX_SKIN_FLEX CHECKBOX_DrawSkinFlex /********************************************************************* * * Macros for compatibility * ********************************************************************** *//* ... */ #define CHECKBOX_Check(hObj) CHECKBOX_SetState(hObj, 1) #define CHECKBOX_Uncheck(hObj) CHECKBOX_SetState(hObj, 0) #define CHECKBOX_BI_INACTIV CHECKBOX_BI_INACTIV_CHECKED #define CHECKBOX_BI_ACTIV CHECKBOX_BI_ACTIV_CHECKED 5 defines #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif // GUI_WINSUPPORT/* ... */ #endif // CHECKBOX_H /*************************** End of file ****************************/
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.