Select one of the symbols to view example projects that use it.
 
Outline
#define LISTBOX_H
#include "WM.h"
#include "WIDGET.h"
#include "DIALOG_Intern.h"
#define LISTBOX_ALL_ITEMS
#define LISTBOX_CI_UNSEL
#define LISTBOX_CI_SEL
#define LISTBOX_CI_SELFOCUS
#define LISTBOX_CI_DISABLED
LISTBOX_Handle
#define LISTBOX_NOTIFICATION_LOST_FOCUS
#define LISTBOX_CF_AUTOSCROLLBAR_H
#define LISTBOX_CF_AUTOSCROLLBAR_V
#define LISTBOX_CF_MULTISEL
#define LISTBOX_CF_WRAP
#define LISTBOX_SF_AUTOSCROLLBAR_H
#define LISTBOX_SF_AUTOSCROLLBAR_V
#define LISTBOX_SF_MULTISEL
#define LISTBOX_SF_WRAP
#define LISTBOX_FM_OFF
#define LISTBOX_FM_ON
#define LISTBOX_FM_CENTER
LISTBOX_Create(const GUI_ConstString *, int, int, int, int, int);
LISTBOX_CreateAsChild(const GUI_ConstString *, GUI_HWIN, int, int, int, int, int);
LISTBOX_CreateEx(int, int, int, int, GUI_HWIN, int, int, int, const GUI_ConstString *);
LISTBOX_CreateUser(int, int, int, int, GUI_HWIN, int, int, int, const GUI_ConstString *, int);
LISTBOX_CreateIndirect(const GUI_WIDGET_CREATE_INFO *, GUI_HWIN, int, int, WM_CALLBACK *);
LISTBOX_Callback(WM_MESSAGE *);
LISTBOX_AddKey(LISTBOX_Handle, int);
LISTBOX_AddString(LISTBOX_Handle, const char *);
LISTBOX_AddStringH(LISTBOX_Handle, long);
LISTBOX_DecSel(LISTBOX_Handle);
LISTBOX_DeleteItem(LISTBOX_Handle, unsigned int);
LISTBOX_EnableFixedScrollMode(LISTBOX_Handle, unsigned int, unsigned char);
LISTBOX_EnableWrapMode(LISTBOX_Handle, int);
LISTBOX_GetBkColor(LISTBOX_Handle, unsigned int);
LISTBOX_GetFont(LISTBOX_Handle);
LISTBOX_GetItemSpacing(LISTBOX_Handle);
LISTBOX_GetNumItems(LISTBOX_Handle);
LISTBOX_GetSel(LISTBOX_Handle);
LISTBOX_GetTextColor(LISTBOX_Handle, unsigned int);
LISTBOX_GetItemDisabled(LISTBOX_Handle, unsigned int);
LISTBOX_GetItemSel(LISTBOX_Handle, unsigned int);
LISTBOX_GetItemText(LISTBOX_Handle, unsigned int, char *, int);
LISTBOX_GetMulti(LISTBOX_Handle);
LISTBOX_GetOwner(LISTBOX_Handle);
LISTBOX_GetScrollStepH(LISTBOX_Handle);
LISTBOX_GetTextAlign(LISTBOX_Handle);
LISTBOX_GetUserData(LISTBOX_Handle, void *, int);
LISTBOX_IncSel(LISTBOX_Handle);
LISTBOX_InsertString(LISTBOX_Handle, const char *, unsigned int);
LISTBOX_InvalidateItem(LISTBOX_Handle, int);
LISTBOX_OwnerDraw(const WIDGET_ITEM_DRAW_INFO *);
LISTBOX_SetAutoScrollH(LISTBOX_Handle, int);
LISTBOX_SetAutoScrollV(LISTBOX_Handle, int);
LISTBOX_SetBkColor(LISTBOX_Handle, unsigned int, GUI_COLOR);
LISTBOX_SetFont(LISTBOX_Handle, const GUI_FONT *);
LISTBOX_SetItemDisabled(LISTBOX_Handle, unsigned int, int);
LISTBOX_SetItemSel(LISTBOX_Handle, unsigned int, int);
LISTBOX_SetItemSpacing(LISTBOX_Handle, unsigned int);
LISTBOX_SetMulti(LISTBOX_Handle, int);
LISTBOX_SetOwner(LISTBOX_Handle, GUI_HWIN);
LISTBOX_SetOwnerDraw(LISTBOX_Handle, WIDGET_DRAW_ITEM_FUNC *);
LISTBOX_SetScrollStepH(LISTBOX_Handle, int);
LISTBOX_SetSel(LISTBOX_Handle, int);
LISTBOX_SetScrollbarColor(LISTBOX_Handle, unsigned int, GUI_COLOR);
LISTBOX_SetScrollbarWidth(LISTBOX_Handle, unsigned int);
LISTBOX_SetString(LISTBOX_Handle, const char *, unsigned int);
LISTBOX_SetText(LISTBOX_Handle, const GUI_ConstString *);
LISTBOX_SetTextAlign(LISTBOX_Handle, int);
LISTBOX_SetTextColor(LISTBOX_Handle, unsigned int, GUI_COLOR);
LISTBOX_SetUserData(LISTBOX_Handle, const void *, int);
LISTBOX_UpdateScrollers(LISTBOX_Handle);
LISTBOX_GetDefaultFont();
LISTBOX_GetDefaultScrollStepH();
LISTBOX_GetDefaultBkColor(unsigned int);
LISTBOX_GetDefaultTextAlign();
LISTBOX_GetDefaultTextColor(unsigned int);
LISTBOX_GetDefaultScrollMode();
LISTBOX_SetDefaultFont(const GUI_FONT *);
LISTBOX_SetDefaultScrollStepH(int);
LISTBOX_SetDefaultBkColor(unsigned int, GUI_COLOR);
LISTBOX_SetDefaultTextAlign(int);
LISTBOX_SetDefaultTextColor(unsigned int, GUI_COLOR);
LISTBOX_SetDefaultScrollMode(unsigned char);
#define LISTBOX_SetBackColor
#define LISTBOX_DeleteString
Files
loading...
SourceVuSTM32 Libraries and SamplesSTemWininc/LISTBOX.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * 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 : LISTBOX.h Purpose : LISTBOX widget include --------------------END-OF-HEADER------------------------------------- *//* ... */ #ifndef LISTBOX_H #define LISTBOX_H #include "WM.h" #include "WIDGET.h" /* Req. for WIDGET_DRAW_ITEM_FUNC */ #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ #if GUI_WINSUPPORT #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * defines * ********************************************************************** *//* ... */ #define LISTBOX_ALL_ITEMS -1 /********************************************************************* * * Color indices *//* ... */ #define LISTBOX_CI_UNSEL 0 #define LISTBOX_CI_SEL 1 #define LISTBOX_CI_SELFOCUS 2 #define LISTBOX_CI_DISABLED 3 5 defines /************************************************************ * * States *//* ... */ typedef WM_HMEM LISTBOX_Handle; /********************************************************************* * * Notification codes * * The following is the list of notification codes specific to this widget, * Send with the WM_NOTIFY_PARENT message *//* ... */ #define LISTBOX_NOTIFICATION_LOST_FOCUS (WM_NOTIFICATION_WIDGET + 0) /************************************************************ * * Create / Status flags *//* ... */ #define LISTBOX_CF_AUTOSCROLLBAR_H (1<<0) #define LISTBOX_CF_AUTOSCROLLBAR_V (1<<1) #define LISTBOX_CF_MULTISEL (1<<2) #define LISTBOX_CF_WRAP (1<<3) #define LISTBOX_SF_AUTOSCROLLBAR_H LISTBOX_CF_AUTOSCROLLBAR_H #define LISTBOX_SF_AUTOSCROLLBAR_V LISTBOX_CF_AUTOSCROLLBAR_V #define LISTBOX_SF_MULTISEL LISTBOX_CF_MULTISEL #define LISTBOX_SF_WRAP LISTBOX_CF_WRAP /************************************************************ * * Fixed scroll mode flags *//* ... */ #define LISTBOX_FM_OFF 0 // Turn fixed mode off #define LISTBOX_FM_ON 1 // Turn fixed mode on #define LISTBOX_FM_CENTER 2 // Set fixed mode to center 12 defines /********************************************************************* * * Create functions * ********************************************************************** *//* ... */ LISTBOX_Handle LISTBOX_Create (const GUI_ConstString * ppText, int x0, int y0, int xSize, int ySize, int Flags); LISTBOX_Handle LISTBOX_CreateAsChild (const GUI_ConstString * ppText, WM_HWIN hWinParent, int x0, int y0, int xSize, int ySize, int Flags); LISTBOX_Handle LISTBOX_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText); LISTBOX_Handle LISTBOX_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText, int NumExtraBytes); LISTBOX_Handle LISTBOX_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 LISTBOX_Callback(WM_MESSAGE * pMsg); /********************************************************************* * * Member functions * ********************************************************************** *//* ... */ int LISTBOX_AddKey (LISTBOX_Handle hObj, int Key); void LISTBOX_AddString (LISTBOX_Handle hObj, const char * s); void LISTBOX_AddStringH (LISTBOX_Handle hObj, WM_HMEM hString); /* Not to be documented!!! */ void LISTBOX_DecSel (LISTBOX_Handle hObj); void LISTBOX_DeleteItem (LISTBOX_Handle hObj, unsigned int Index); void LISTBOX_EnableFixedScrollMode(LISTBOX_Handle hObj, unsigned int OnOff, U8 FixedPos); void LISTBOX_EnableWrapMode (LISTBOX_Handle hObj, int OnOff); GUI_COLOR LISTBOX_GetBkColor (LISTBOX_Handle hObj, unsigned int Index); const GUI_FONT * LISTBOX_GetFont (LISTBOX_Handle hObj); unsigned LISTBOX_GetItemSpacing (LISTBOX_Handle hObj); unsigned LISTBOX_GetNumItems (LISTBOX_Handle hObj); int LISTBOX_GetSel (LISTBOX_Handle hObj); GUI_COLOR LISTBOX_GetTextColor (LISTBOX_Handle hObj, unsigned int Index); int LISTBOX_GetItemDisabled (LISTBOX_Handle hObj, unsigned Index); int LISTBOX_GetItemSel (LISTBOX_Handle hObj, unsigned Index); void LISTBOX_GetItemText (LISTBOX_Handle hObj, unsigned Index, char * pBuffer, int MaxSize); int LISTBOX_GetMulti (LISTBOX_Handle hObj); WM_HWIN LISTBOX_GetOwner (LISTBOX_Handle hObj); int LISTBOX_GetScrollStepH (LISTBOX_Handle hObj); int LISTBOX_GetTextAlign (LISTBOX_Handle hObj); int LISTBOX_GetUserData (LISTBOX_Handle hObj, void * pDest, int NumBytes); void LISTBOX_IncSel (LISTBOX_Handle hObj); void LISTBOX_InsertString (LISTBOX_Handle hObj, const char * s, unsigned int Index); void LISTBOX_InvalidateItem (LISTBOX_Handle hObj, int Index); int LISTBOX_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); void LISTBOX_SetAutoScrollH (LISTBOX_Handle hObj, int OnOff); void LISTBOX_SetAutoScrollV (LISTBOX_Handle hObj, int OnOff); void LISTBOX_SetBkColor (LISTBOX_Handle hObj, unsigned int Index, GUI_COLOR color); void LISTBOX_SetFont (LISTBOX_Handle hObj, const GUI_FONT * pFont); void LISTBOX_SetItemDisabled (LISTBOX_Handle hObj, unsigned Index, int OnOff); void LISTBOX_SetItemSel (LISTBOX_Handle hObj, unsigned Index, int OnOff); void LISTBOX_SetItemSpacing (LISTBOX_Handle hObj, unsigned Value); void LISTBOX_SetMulti (LISTBOX_Handle hObj, int Mode); void LISTBOX_SetOwner (LISTBOX_Handle hObj, WM_HWIN hOwner); void LISTBOX_SetOwnerDraw (LISTBOX_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawItem); void LISTBOX_SetScrollStepH (LISTBOX_Handle hObj, int Value); void LISTBOX_SetSel (LISTBOX_Handle hObj, int Sel); void LISTBOX_SetScrollbarColor(LISTBOX_Handle hObj, unsigned Index, GUI_COLOR Color); void LISTBOX_SetScrollbarWidth(LISTBOX_Handle hObj, unsigned Width); void LISTBOX_SetString (LISTBOX_Handle hObj, const char * s, unsigned int Index); void LISTBOX_SetText (LISTBOX_Handle hObj, const GUI_ConstString * ppText); void LISTBOX_SetTextAlign (LISTBOX_Handle hObj, int Align); GUI_COLOR LISTBOX_SetTextColor (LISTBOX_Handle hObj, unsigned int Index, GUI_COLOR Color); int LISTBOX_SetUserData (LISTBOX_Handle hObj, const void * pSrc, int NumBytes); int LISTBOX_UpdateScrollers (LISTBOX_Handle hObj); /********************************************************************* * * Managing default values * ********************************************************************** *//* ... */ const GUI_FONT * LISTBOX_GetDefaultFont(void); int LISTBOX_GetDefaultScrollStepH (void); GUI_COLOR LISTBOX_GetDefaultBkColor (unsigned Index); int LISTBOX_GetDefaultTextAlign (void); GUI_COLOR LISTBOX_GetDefaultTextColor (unsigned Index); int LISTBOX_GetDefaultScrollMode (void); void LISTBOX_SetDefaultFont (const GUI_FONT * pFont); void LISTBOX_SetDefaultScrollStepH (int Value); void LISTBOX_SetDefaultBkColor (unsigned Index, GUI_COLOR Color); void LISTBOX_SetDefaultTextAlign (int Align); void LISTBOX_SetDefaultTextColor (unsigned Index, GUI_COLOR Color); void LISTBOX_SetDefaultScrollMode (U8 ScrollMode); /********************************************************************* * * Compatibility to older versions * ********************************************************************** *//* ... */ #define LISTBOX_SetBackColor(hObj, Index, Color) LISTBOX_SetBkColor(hObj, Index, Color) #define LISTBOX_DeleteString LISTBOX_DeleteItem #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif // GUI_WINSUPPORT/* ... */ #endif // LISTBOX_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.