STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
ICONVIEW.h
Go to the documentation of this file.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * Solutions for real time microcontroller applications *
4 **********************************************************************
5 * *
6 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * Internet: www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 
12 ** emWin V5.28 - Graphical user interface for embedded applications **
13 All Intellectual Property rights in the Software belongs to SEGGER.
14 emWin is protected by international copyright laws. Knowledge of the
15 source code may not be used to write a similar product. This file may
16 only be used in accordance with the following terms:
17 
18 The software has been licensed to STMicroelectronics International
19 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
20 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
21 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
22 troller products commercialized by Licensee only, sublicensed and dis_
23 tributed under the terms and conditions of the End User License Agree_
24 ment supplied by STMicroelectronics International N.V.
25 Full source code is available at: www.segger.com
26 
27 We appreciate your understanding and fairness.
28 ----------------------------------------------------------------------
29 File : ICONVIEW.h
30 Purpose : ICONVIEW include
31 --------------------END-OF-HEADER-------------------------------------
32 */
33 
34 #ifndef ICONVIEW_H
35 #define ICONVIEW_H
36 
37 #include "WM.h"
38 #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */
39 #include "WIDGET.h"
40 
41 #if GUI_WINSUPPORT
42 
43 #if defined(__cplusplus)
44  extern "C" { /* Make sure we have C-declarations in C++ programs */
45 #endif
46 
47 /*********************************************************************
48 *
49 * Defines
50 *
51 **********************************************************************
52 */
53 //
54 // Status- and create flags
55 //
56 #define ICONVIEW_CF_AUTOSCROLLBAR_V (1 << 1)
57 #define ICONVIEW_SF_AUTOSCROLLBAR_V ICONVIEW_CF_AUTOSCROLLBAR_V
58 
59 //
60 // Color indices
61 //
62 #define ICONVIEW_CI_BK 0
63 #define ICONVIEW_CI_UNSEL 0
64 #define ICONVIEW_CI_SEL 1
65 #define ICONVIEW_CI_DISABLED 2
66 
67 //
68 // Icon alignment flags, horizontal
69 //
70 #define ICONVIEW_IA_HCENTER (0 << 0)
71 #define ICONVIEW_IA_LEFT (1 << 0)
72 #define ICONVIEW_IA_RIGHT (2 << 0)
73 
74 //
75 // Icon alignment flags, vertical
76 //
77 #define ICONVIEW_IA_VCENTER (0 << 2)
78 #define ICONVIEW_IA_BOTTOM (1 << 2)
79 #define ICONVIEW_IA_TOP (2 << 2)
80 
81 /*********************************************************************
82 *
83 * Types
84 *
85 **********************************************************************
86 */
87 typedef WM_HMEM ICONVIEW_Handle;
88 
89 /*********************************************************************
90 *
91 * Public functions
92 *
93 **********************************************************************
94 */
95 ICONVIEW_Handle ICONVIEW_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems);
96 ICONVIEW_Handle ICONVIEW_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems, int NumExtraBytes);
97 ICONVIEW_Handle ICONVIEW_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
98 
99 int ICONVIEW_AddBitmapItem (ICONVIEW_Handle hObj, const GUI_BITMAP * pBitmap, const char * pText);
100 int ICONVIEW_AddStreamedBitmapItem (ICONVIEW_Handle hObj, const void * pStreamedBitmap, const char * pText);
101 void ICONVIEW_DeleteItem (ICONVIEW_Handle hObj, unsigned Index);
102 void ICONVIEW_EnableStreamAuto (void);
103 U32 ICONVIEW_GetItemUserData (ICONVIEW_Handle hObj, int Index);
104 int ICONVIEW_GetNumItems (ICONVIEW_Handle hObj);
105 int ICONVIEW_GetItemText (ICONVIEW_Handle hObj, int Index, char * pBuffer, int MaxSize);
106 int ICONVIEW_GetSel (ICONVIEW_Handle hObj);
107 int ICONVIEW_GetUserData (ICONVIEW_Handle hObj, void * pDest, int NumBytes);
108 int ICONVIEW_InsertBitmapItem (ICONVIEW_Handle hObj, const GUI_BITMAP * pBitmap, const char * pText, int Index);
109 int ICONVIEW_InsertStreamedBitmapItem(ICONVIEW_Handle hObj, const void * pStreamedBitmap, const char * pText, int Index);
110 int ICONVIEW_SetBitmapItem (ICONVIEW_Handle hObj, int Index, const GUI_BITMAP * pBitmap);
111 void ICONVIEW_SetBkColor (ICONVIEW_Handle hObj, int Index, GUI_COLOR Color);
112 void ICONVIEW_SetFont (ICONVIEW_Handle hObj, const GUI_FONT * pFont);
113 void ICONVIEW_SetFrame (ICONVIEW_Handle hObj, int Coord, int Value);
114 void ICONVIEW_SetItemText (ICONVIEW_Handle hObj, int Index, const char * pText);
115 void ICONVIEW_SetItemUserData (ICONVIEW_Handle hObj, int Index, U32 UserData);
116 void ICONVIEW_SetSel (ICONVIEW_Handle hObj, int Sel);
117 void ICONVIEW_SetSpace (ICONVIEW_Handle hObj, int Coord, int Value);
118 int ICONVIEW_SetStreamedBitmapItem (ICONVIEW_Handle hObj, int Index, const void * pStreamedBitmap);
119 void ICONVIEW_SetIconAlign (ICONVIEW_Handle hObj, int IconAlign);
120 void ICONVIEW_SetTextAlign (ICONVIEW_Handle hObj, int TextAlign);
121 void ICONVIEW_SetTextColor (ICONVIEW_Handle hObj, int Index, GUI_COLOR Color);
122 int ICONVIEW_SetUserData (ICONVIEW_Handle hObj, const void * pSrc, int NumBytes);
123 void ICONVIEW_SetWrapMode (ICONVIEW_Handle hObj, GUI_WRAPMODE WrapMode);
124 
125 void ICONVIEW_Callback(WM_MESSAGE * pMsg);
126 
127 #if defined(__cplusplus)
128  }
129 #endif
130 
131 #endif // GUI_WINSUPPORT
132 #endif // ICONVIEW_H
133 
134 /*************************** End of file ****************************/
#define U32
Definition: Global.h:50
LCD_COLOR GUI_COLOR
Definition: GUI_Type.h:50
GUI_WRAPMODE
Definition: GUI.h:696