Select one of the symbols to view example projects that use it.
 
Outline
#define LISTVIEW_H
#include "WM.h"
#include "DIALOG_Intern.h"
#include "ICONVIEW.h"
#include "HEADER.h"
#define LISTVIEW_ALL_ITEMS
#define LISTVIEW_CI_UNSEL
#define LISTVIEW_CI_SEL
#define LISTVIEW_CI_SELFOCUS
#define LISTVIEW_CI_DISABLED
#define LISTVIEW_CF_AUTOSCROLLBAR_H
#define LISTVIEW_CF_AUTOSCROLLBAR_V
#define LISTVIEW_CF_CELL_SELECT
#define LISTVIEW_SF_AUTOSCROLLBAR_H
#define LISTVIEW_SF_AUTOSCROLLBAR_V
LISTVIEW_Handle
LISTVIEW_Create(int, int, int, int, GUI_HWIN, int, int, int);
LISTVIEW_CreateEx(int, int, int, int, GUI_HWIN, int, int, int);
LISTVIEW_CreateUser(int, int, int, int, GUI_HWIN, int, int, int, int);
LISTVIEW_CreateAttached(GUI_HWIN, int, int);
LISTVIEW_CreateIndirect(const GUI_WIDGET_CREATE_INFO *, GUI_HWIN, int, int, WM_CALLBACK *);
LISTVIEW_Callback(WM_MESSAGE *);
LISTVIEW_AddColumn(LISTVIEW_Handle, int, const char *, int);
LISTVIEW_AddRow(LISTVIEW_Handle, const GUI_ConstString *);
LISTVIEW_CompareText(const void *, const void *);
LISTVIEW_CompareDec(const void *, const void *);
LISTVIEW_DecSel(LISTVIEW_Handle);
LISTVIEW_DeleteAllRows(LISTVIEW_Handle);
LISTVIEW_DeleteColumn(LISTVIEW_Handle, unsigned int);
LISTVIEW_DeleteRow(LISTVIEW_Handle, unsigned int);
LISTVIEW_DeleteRowSorted(LISTVIEW_Handle, int);
LISTVIEW_DisableRow(LISTVIEW_Handle, unsigned int);
LISTVIEW_DisableSort(LISTVIEW_Handle);
LISTVIEW_EnableCellSelect(LISTVIEW_Handle, unsigned int);
LISTVIEW_EnableRow(LISTVIEW_Handle, unsigned int);
LISTVIEW_EnableSort(LISTVIEW_Handle);
LISTVIEW_GetBkColor(LISTVIEW_Handle, unsigned int);
LISTVIEW_GetFont(LISTVIEW_Handle);
LISTVIEW_GetHeader(LISTVIEW_Handle);
LISTVIEW_GetItemRect(LISTVIEW_Handle, unsigned long, unsigned long, GUI_RECT *);
LISTVIEW_GetItemText(LISTVIEW_Handle, unsigned int, unsigned int, char *, unsigned int);
LISTVIEW_GetItemTextLen(LISTVIEW_Handle, unsigned int, unsigned int);
LISTVIEW_GetItemTextSorted(LISTVIEW_Handle, unsigned int, unsigned int, char *, unsigned int);
LISTVIEW_GetLBorder(LISTVIEW_Handle);
LISTVIEW_GetNumColumns(LISTVIEW_Handle);
LISTVIEW_GetNumRows(LISTVIEW_Handle);
LISTVIEW_GetRBorder(LISTVIEW_Handle);
LISTVIEW_GetSel(LISTVIEW_Handle);
LISTVIEW_GetSelCol(LISTVIEW_Handle);
LISTVIEW_GetSelUnsorted(LISTVIEW_Handle);
LISTVIEW_GetTextAlign(LISTVIEW_Handle, unsigned int);
LISTVIEW_GetTextColor(LISTVIEW_Handle, unsigned int);
LISTVIEW_GetUserData(LISTVIEW_Handle, void *, int);
LISTVIEW_GetUserDataRow(LISTVIEW_Handle, unsigned int);
LISTVIEW_GetWrapMode(LISTVIEW_Handle);
LISTVIEW_IncSel(LISTVIEW_Handle);
LISTVIEW_InsertRow(LISTVIEW_Handle, unsigned int, const GUI_ConstString *);
LISTVIEW_OwnerDraw(const WIDGET_ITEM_DRAW_INFO *);
LISTVIEW_RowIsDisabled(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetAutoScrollH(LISTVIEW_Handle, int);
LISTVIEW_SetAutoScrollV(LISTVIEW_Handle, int);
LISTVIEW_SetItemBitmap(LISTVIEW_Handle, unsigned int, unsigned int, int, int, const GUI_BITMAP *);
LISTVIEW_SetBkColor(LISTVIEW_Handle, unsigned int, GUI_COLOR);
LISTVIEW_SetColumnWidth(LISTVIEW_Handle, unsigned int, int);
LISTVIEW_SetCompareFunc(LISTVIEW_Handle, unsigned int, int (*)(const void *, const void *));
LISTVIEW_SetFixed(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetFont(LISTVIEW_Handle, const GUI_FONT *);
LISTVIEW_SetGridVis(LISTVIEW_Handle, int);
LISTVIEW_SetHeaderHeight(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetItemBkColor(LISTVIEW_Handle, unsigned int, unsigned int, unsigned int, GUI_COLOR);
LISTVIEW_SetItemText(LISTVIEW_Handle, unsigned int, unsigned int, const char *);
LISTVIEW_SetItemTextColor(LISTVIEW_Handle, unsigned int, unsigned int, unsigned int, GUI_COLOR);
LISTVIEW_SetItemTextSorted(LISTVIEW_Handle, unsigned int, unsigned int, const char *);
LISTVIEW_SetLBorder(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetOwnerDraw(LISTVIEW_Handle, WIDGET_DRAW_ITEM_FUNC *);
LISTVIEW_SetRBorder(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetRowHeight(LISTVIEW_Handle, unsigned int);
LISTVIEW_SetSel(LISTVIEW_Handle, int);
LISTVIEW_SetSelCol(LISTVIEW_Handle, int);
LISTVIEW_SetSelUnsorted(LISTVIEW_Handle, int);
LISTVIEW_SetSort(LISTVIEW_Handle, unsigned int, unsigned int);
LISTVIEW_SetTextAlign(LISTVIEW_Handle, unsigned int, int);
LISTVIEW_SetTextColor(LISTVIEW_Handle, unsigned int, GUI_COLOR);
LISTVIEW_SetUserData(LISTVIEW_Handle, const void *, int);
LISTVIEW_SetUserDataRow(LISTVIEW_Handle, unsigned int, unsigned long);
LISTVIEW_SetWrapMode(LISTVIEW_Handle, GUI_WRAPMODE);
LISTVIEW_SetDefaultBkColor(unsigned int, GUI_COLOR);
LISTVIEW_SetDefaultFont(const GUI_FONT *);
LISTVIEW_SetDefaultGridColor(GUI_COLOR);
LISTVIEW_SetDefaultTextColor(unsigned int, GUI_COLOR);
Files
loading...
SourceVuSTM32 Libraries and SamplesSTemWininc/LISTVIEW.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * 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 : LISTVIEW.h Purpose : LISTVIEW include --------------------END-OF-HEADER------------------------------------- *//* ... */ #ifndef LISTVIEW_H #define LISTVIEW_H #include "WM.h" #include "DIALOG_Intern.h" // Req. for Create indirect data structure #include "ICONVIEW.h" #include "HEADER.h" #if GUI_WINSUPPORT #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * Defines *//* ... */ #define LISTVIEW_ALL_ITEMS -1 /********************************************************************* * * Color indices *//* ... */ #define LISTVIEW_CI_UNSEL 0 #define LISTVIEW_CI_SEL 1 #define LISTVIEW_CI_SELFOCUS 2 #define LISTVIEW_CI_DISABLED 3 /************************************************************ * * Create / Status flags *//* ... */ #define LISTVIEW_CF_AUTOSCROLLBAR_H (1 << 0) #define LISTVIEW_CF_AUTOSCROLLBAR_V (1 << 1) #define LISTVIEW_CF_CELL_SELECT (1 << 2) // Create Flag used to enable cell selection #define LISTVIEW_SF_AUTOSCROLLBAR_H LISTVIEW_CF_AUTOSCROLLBAR_H #define LISTVIEW_SF_AUTOSCROLLBAR_V LISTVIEW_CF_AUTOSCROLLBAR_V 10 defines /********************************************************************* * * Public Types * ********************************************************************** *//* ... */ typedef WM_HMEM LISTVIEW_Handle; /********************************************************************* * * Create functions * ********************************************************************** *//* ... */ LISTVIEW_Handle LISTVIEW_Create (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int Id, int Flags, int SpecialFlags); LISTVIEW_Handle LISTVIEW_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id); LISTVIEW_Handle LISTVIEW_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes); LISTVIEW_Handle LISTVIEW_CreateAttached(WM_HWIN hParent, int Id, int SpecialFlags); LISTVIEW_Handle LISTVIEW_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 LISTVIEW_Callback(WM_MESSAGE * pMsg); /********************************************************************* * * Member functions * ********************************************************************** *//* ... */ int LISTVIEW_AddColumn (LISTVIEW_Handle hObj, int Width, const char * s, int Align); int LISTVIEW_AddRow (LISTVIEW_Handle hObj, const GUI_ConstString * ppText); int LISTVIEW_CompareText (const void * p0, const void * p1); int LISTVIEW_CompareDec (const void * p0, const void * p1); void LISTVIEW_DecSel (LISTVIEW_Handle hObj); void LISTVIEW_DeleteAllRows (LISTVIEW_Handle hObj); void LISTVIEW_DeleteColumn (LISTVIEW_Handle hObj, unsigned Index); void LISTVIEW_DeleteRow (LISTVIEW_Handle hObj, unsigned Index); void LISTVIEW_DeleteRowSorted (LISTVIEW_Handle hObj, int Row); void LISTVIEW_DisableRow (LISTVIEW_Handle hObj, unsigned Row); void LISTVIEW_DisableSort (LISTVIEW_Handle hObj); void LISTVIEW_EnableCellSelect (LISTVIEW_Handle hObj, unsigned OnOff); // Enables/disables cell selection void LISTVIEW_EnableRow (LISTVIEW_Handle hObj, unsigned Row); void LISTVIEW_EnableSort (LISTVIEW_Handle hObj); GUI_COLOR LISTVIEW_GetBkColor (LISTVIEW_Handle hObj, unsigned Index); const GUI_FONT * LISTVIEW_GetFont (LISTVIEW_Handle hObj); HEADER_Handle LISTVIEW_GetHeader (LISTVIEW_Handle hObj); void LISTVIEW_GetItemRect (LISTVIEW_Handle hObj, U32 Col, U32 Row, GUI_RECT * pRect); void LISTVIEW_GetItemText (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, char * pBuffer, unsigned MaxSize); unsigned LISTVIEW_GetItemTextLen (LISTVIEW_Handle hObj, unsigned Column, unsigned Row); void LISTVIEW_GetItemTextSorted (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, char * pBuffer, unsigned MaxSize); unsigned LISTVIEW_GetLBorder (LISTVIEW_Handle hObj); unsigned LISTVIEW_GetNumColumns (LISTVIEW_Handle hObj); unsigned LISTVIEW_GetNumRows (LISTVIEW_Handle hObj); unsigned LISTVIEW_GetRBorder (LISTVIEW_Handle hObj); int LISTVIEW_GetSel (LISTVIEW_Handle hObj); int LISTVIEW_GetSelCol (LISTVIEW_Handle hObj); int LISTVIEW_GetSelUnsorted (LISTVIEW_Handle hObj); int LISTVIEW_GetTextAlign (LISTVIEW_Handle hObj, unsigned ColIndex); GUI_COLOR LISTVIEW_GetTextColor (LISTVIEW_Handle hObj, unsigned Index); int LISTVIEW_GetUserData (LISTVIEW_Handle hObj, void * pDest, int NumBytes); U32 LISTVIEW_GetUserDataRow (LISTVIEW_Handle hObj, unsigned Row); GUI_WRAPMODE LISTVIEW_GetWrapMode (LISTVIEW_Handle hObj); void LISTVIEW_IncSel (LISTVIEW_Handle hObj); int LISTVIEW_InsertRow (LISTVIEW_Handle hObj, unsigned Index, const GUI_ConstString * ppText); int LISTVIEW_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); unsigned LISTVIEW_RowIsDisabled (LISTVIEW_Handle hObj, unsigned Row); void LISTVIEW_SetAutoScrollH (LISTVIEW_Handle hObj, int OnOff); void LISTVIEW_SetAutoScrollV (LISTVIEW_Handle hObj, int OnOff); void LISTVIEW_SetItemBitmap (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, int xOff, int yOff, const GUI_BITMAP * pBitmap); void LISTVIEW_SetBkColor (LISTVIEW_Handle hObj, unsigned int Index, GUI_COLOR Color); void LISTVIEW_SetColumnWidth (LISTVIEW_Handle hObj, unsigned int Index, int Width); void LISTVIEW_SetCompareFunc (LISTVIEW_Handle hObj, unsigned Column, int (* fpCompare)(const void * p0, const void * p1)); unsigned LISTVIEW_SetFixed (LISTVIEW_Handle hObj, unsigned Fixed); void LISTVIEW_SetFont (LISTVIEW_Handle hObj, const GUI_FONT * pFont); int LISTVIEW_SetGridVis (LISTVIEW_Handle hObj, int Show); void LISTVIEW_SetHeaderHeight (LISTVIEW_Handle hObj, unsigned HeaderHeight); void LISTVIEW_SetItemBkColor (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, unsigned int Index, GUI_COLOR Color); void LISTVIEW_SetItemText (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, const char * s); void LISTVIEW_SetItemTextColor (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, unsigned int Index, GUI_COLOR Color); void LISTVIEW_SetItemTextSorted (LISTVIEW_Handle hObj, unsigned Column, unsigned Row, const char * pText); void LISTVIEW_SetLBorder (LISTVIEW_Handle hObj, unsigned BorderSize); void LISTVIEW_SetOwnerDraw (LISTVIEW_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawItem); void LISTVIEW_SetRBorder (LISTVIEW_Handle hObj, unsigned BorderSize); unsigned LISTVIEW_SetRowHeight (LISTVIEW_Handle hObj, unsigned RowHeight); void LISTVIEW_SetSel (LISTVIEW_Handle hObj, int Sel); void LISTVIEW_SetSelCol (LISTVIEW_Handle hObj, int NewCol); void LISTVIEW_SetSelUnsorted (LISTVIEW_Handle hObj, int Sel); unsigned LISTVIEW_SetSort (LISTVIEW_Handle hObj, unsigned Column, unsigned Reverse); void LISTVIEW_SetTextAlign (LISTVIEW_Handle hObj, unsigned int Index, int Align); void LISTVIEW_SetTextColor (LISTVIEW_Handle hObj, unsigned int Index, GUI_COLOR Color); int LISTVIEW_SetUserData (LISTVIEW_Handle hObj, const void * pSrc, int NumBytes); void LISTVIEW_SetUserDataRow (LISTVIEW_Handle hObj, unsigned Row, U32 UserData); void LISTVIEW_SetWrapMode (LISTVIEW_Handle hObj, GUI_WRAPMODE WrapMode); /********************************************************************* * * Managing default values * ********************************************************************** *//* ... */ GUI_COLOR LISTVIEW_SetDefaultBkColor (unsigned Index, GUI_COLOR Color); const GUI_FONT * LISTVIEW_SetDefaultFont (const GUI_FONT * pFont); GUI_COLOR LISTVIEW_SetDefaultGridColor(GUI_COLOR Color); GUI_COLOR LISTVIEW_SetDefaultTextColor(unsigned Index, GUI_COLOR Color); #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif // GUI_WINSUPPORT/* ... */ #endif // LISTVIEW_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.