Select one of the symbols to view example projects that use it.
 
Outline
#define __ST_GUI_ADDONS_H
Includes
#include "GUI.h"
#include "WM.h"
#include "DIALOG.h"
#include "CHOOSEFILE.h"
#define GUI_CONST_STORAGE
#define GUI_FLASH
Exported types
ST_ANIMATED_ICONVIEW_Handle
Exported variables
GUI_FontAvantGarde16;
GUI_FontAvantGarde16B;
GUI_FontAvantGarde20;
GUI_FontAvantGarde20B;
GUI_FontAvantGarde24;
GUI_FontAvantGarde24B;
GUI_FontAvantGarde32;
GUI_FontAvantGarde32B;
GUI_FontLubalGraph16;
GUI_FontLubalGraph16B;
GUI_FontLubalGraph20;
GUI_FontLubalGraph20B;
GUI_FontLubalGraph24;
GUI_FontLubalGraph24B;
GUI_FontLubalGraph32;
GUI_FontLubalGraph32B;
Exported constants
#define GUI_STCOLOR_LIGHTBLUE
#define GUI_STCOLOR_DARKBLUE
SLIDER_SetSTSkin(long);
SCROLLBAR_SetSTSkin(long);
HEADER_SetSTSkin(long);
SLIDER_SetDefaultSTSkin();
SCROLLBAR_SetDefaultSTSkin();
HEADER_SetDefaultSTSkin();
ST_AnimatedIconView_CreateEx(int, int, int, int, GUI_HWIN, int, int, int, int, int, int, int);
ST_AnimatedIconView_CreateUser(int, int, int, int, GUI_HWIN, int, int, int, int, int, int, int, int);
ST_AnimatedIconView_CreateIndirect(const GUI_WIDGET_CREATE_INFO *, GUI_HWIN, int, int, WM_CALLBACK *, int, int);
ST_AnimatedIconView_DeleteItem(ST_ANIMATED_ICONVIEW_Handle, unsigned int);
ST_AnimatedIconView_GetItemUserData(ST_ANIMATED_ICONVIEW_Handle, int);
ST_AnimatedIconView_GetNumItems(ST_ANIMATED_ICONVIEW_Handle);
ST_AnimatedIconView_GetItemText(ST_ANIMATED_ICONVIEW_Handle, int, char *, int);
ST_AnimatedIconView_GetSel(ST_ANIMATED_ICONVIEW_Handle);
ST_AnimatedIconView_GetUserData(ST_ANIMATED_ICONVIEW_Handle, void *, int);
ST_AnimatedIconView_SetBkColor(ST_ANIMATED_ICONVIEW_Handle, int, GUI_COLOR);
ST_AnimatedIconView_SetFont(ST_ANIMATED_ICONVIEW_Handle, const GUI_FONT *);
ST_AnimatedIconView_SetDualFont(ST_ANIMATED_ICONVIEW_Handle, const GUI_FONT *, const GUI_FONT *);
ST_AnimatedIconView_SetFrame(ST_ANIMATED_ICONVIEW_Handle, int, int);
ST_AnimatedIconView_SetItemText(ST_ANIMATED_ICONVIEW_Handle, int, const char *);
ST_AnimatedIconView_SetDualItemText(ST_ANIMATED_ICONVIEW_Handle, int, const char *, char *);
ST_AnimatedIconView_SetItemUserData(ST_ANIMATED_ICONVIEW_Handle, int, unsigned long);
ST_AnimatedIconView_SetSel(ST_ANIMATED_ICONVIEW_Handle, int);
ST_AnimatedIconView_SetSpace(ST_ANIMATED_ICONVIEW_Handle, int, int);
ST_AnimatedIconView_SetIconAlign(ST_ANIMATED_ICONVIEW_Handle, int);
ST_AnimatedIconView_SetTextAlign(ST_ANIMATED_ICONVIEW_Handle, int);
ST_AnimatedIconView_SetTextColor(ST_ANIMATED_ICONVIEW_Handle, int, GUI_COLOR);
ST_AnimatedIconView_SetDualTextColor(ST_ANIMATED_ICONVIEW_Handle, int, GUI_COLOR, GUI_COLOR);
ST_AnimatedIconView_SetUserData(ST_ANIMATED_ICONVIEW_Handle, const void *, int);
ICONVIEW_SetWrapMode_ST(ST_ANIMATED_ICONVIEW_Handle, GUI_WRAPMODE);
ST_AnimatedIconView_SetIcon(ST_ANIMATED_ICONVIEW_Handle, int, const GUI_BITMAP **, const GUI_BITMAP **, int, int);
ST_AnimatedIconView_AddIcon(ST_ANIMATED_ICONVIEW_Handle, const GUI_BITMAP **, const GUI_BITMAP **, const char *);
ST_AnimatedIconView_SetNextButton(ST_ANIMATED_ICONVIEW_Handle);
ST_CHOOSEFILE_Create(GUI_HWIN, int, int, int, int, const char **, int, int, const char *, int, CHOOSEFILE_INFO *);
ST_CHOOSEFILE_Callback(WM_MESSAGE *);
ST_CHOOSEFILE_EnableToolTips();
ST_CHOOSEFILE_SetButtonText(GUI_HWIN, unsigned int, const char *);
ST_CHOOSEFILE_SetDefaultButtonText(unsigned int, const char *);
ST_CHOOSEFILE_SetDelim(char);
ST_CHOOSEFILE_SetToolTips(const TOOLTIP_INFO *, int);
ST_CHOOSEFILE_SetTopMode(unsigned int);
ST_CHOOSEFILE_SetButtonSize(int, int);
ST_CHOOSEFILE_SetButtonBitmaps(int, const GUI_BITMAP *, const GUI_BITMAP *);
DrawRect3D(int, int, int, int);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWinGui/STemWin_Addons/ST_GUI_Addons.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file ST_Addons.h * @author MCD Application Team * @brief ST Graphical addons : Extension for STemWin ****************************************************************************** * @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. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __ST_GUI_ADDONS_H #define __ST_GUI_ADDONS_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "GUI.h" #include "WM.h" #include "DIALOG.h" #include "CHOOSEFILE.h" #ifndef GUI_CONST_STORAGE #define GUI_CONST_STORAGE const #endif #ifndef GUI_FLASH #define GUI_FLASH #endif Includes /* Exported types ------------------------------------------------------------*/ typedef WM_HMEM ST_ANIMATED_ICONVIEW_Handle; Exported types /* Exported variables ------------------------------------------------------------*/ /*** ST Fonts ****/ extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde16; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde16B; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde20; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde20B; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde24; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde24B; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde32; extern GUI_FLASH const GUI_FONT GUI_FontAvantGarde32B; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph16; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph16B; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph20; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph20B; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph24; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph24B; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph32; extern GUI_FLASH const GUI_FONT GUI_FontLubalGraph32B; Exported variables /* Exported constants --------------------------------------------------------*/ #define GUI_STCOLOR_LIGHTBLUE 0x00DCA939 #define GUI_STCOLOR_DARKBLUE 0x00522000 Exported constants /* Exported macros -----------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ /** ST Skins ***/ void SLIDER_SetSTSkin(WM_HMEM hObj); void SCROLLBAR_SetSTSkin(WM_HMEM hObj); void HEADER_SetSTSkin(WM_HMEM hObj); void SLIDER_SetDefaultSTSkin(void); void SCROLLBAR_SetDefaultSTSkin(void); void HEADER_SetDefaultSTSkin(void); /** ST Widgets ***/ ST_ANIMATED_ICONVIEW_Handle ST_AnimatedIconView_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems, int delay, int FrameNbr); ST_ANIMATED_ICONVIEW_Handle ST_AnimatedIconView_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems, int NumExtraBytes, int delay, int FrameNbr); ST_ANIMATED_ICONVIEW_Handle ST_AnimatedIconView_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb, int delay, int FrameNbr); void ST_AnimatedIconView_DeleteItem (ST_ANIMATED_ICONVIEW_Handle hObj, unsigned Index); U32 ST_AnimatedIconView_GetItemUserData (ST_ANIMATED_ICONVIEW_Handle hObj, int Index); int ST_AnimatedIconView_GetNumItems (ST_ANIMATED_ICONVIEW_Handle hObj); int ST_AnimatedIconView_GetItemText (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, char * pBuffer, int MaxSize); int ST_AnimatedIconView_GetSel (ST_ANIMATED_ICONVIEW_Handle hObj); int ST_AnimatedIconView_GetUserData (ST_ANIMATED_ICONVIEW_Handle hObj, void * pDest, int NumBytes); void ST_AnimatedIconView_SetBkColor (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, GUI_COLOR Color); void ST_AnimatedIconView_SetFont (ST_ANIMATED_ICONVIEW_Handle hObj, const GUI_FONT * pFont); void ST_AnimatedIconView_SetDualFont (ST_ANIMATED_ICONVIEW_Handle hObj, const GUI_FONT * pFont1, const GUI_FONT * pFont2); void ST_AnimatedIconView_SetFrame (ST_ANIMATED_ICONVIEW_Handle hObj, int Coord, int Value); void ST_AnimatedIconView_SetItemText (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, const char * pText); void ST_AnimatedIconView_SetDualItemText (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, const char * pText, char * pText1); void ST_AnimatedIconView_SetItemUserData (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, U32 UserData); void ST_AnimatedIconView_SetSel (ST_ANIMATED_ICONVIEW_Handle hObj, int Sel); void ST_AnimatedIconView_SetSpace (ST_ANIMATED_ICONVIEW_Handle hObj, int Coord, int Value); void ST_AnimatedIconView_SetIconAlign (ST_ANIMATED_ICONVIEW_Handle hObj, int IconAlign); void ST_AnimatedIconView_SetTextAlign (ST_ANIMATED_ICONVIEW_Handle hObj, int TextAlign); void ST_AnimatedIconView_SetTextColor (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, GUI_COLOR Color); void ST_AnimatedIconView_SetDualTextColor (ST_ANIMATED_ICONVIEW_Handle hObj, int Index, GUI_COLOR Color, GUI_COLOR Color1); int ST_AnimatedIconView_SetUserData (ST_ANIMATED_ICONVIEW_Handle hObj, const void * pSrc, int NumBytes); void ICONVIEW_SetWrapMode_ST (ST_ANIMATED_ICONVIEW_Handle hObj, GUI_WRAPMODE WrapMode); int ST_AnimatedIconView_SetIcon(ST_ANIMATED_ICONVIEW_Handle hObj, int Index, const GUI_BITMAP ** pOpenBitmap, const GUI_BITMAP ** pCloseBitmap, int size, int index); int ST_AnimatedIconView_AddIcon(ST_ANIMATED_ICONVIEW_Handle hObj, const GUI_BITMAP ** pOpenBitmap, const GUI_BITMAP ** pCloseBitmap, const char * pText); void ST_AnimatedIconView_SetNextButton(ST_ANIMATED_ICONVIEW_Handle hObj); WM_HWIN ST_CHOOSEFILE_Create(WM_HWIN hParent, int xPos, int yPos, int xSize, int ySize, const char * apRoot[], int NumRoot, int SelRoot, const char * sCaption, int Flags, CHOOSEFILE_INFO * pInfo ); void ST_CHOOSEFILE_Callback (WM_MESSAGE * pMsg); void ST_CHOOSEFILE_EnableToolTips (void); void ST_CHOOSEFILE_SetButtonText (WM_HWIN hWin, unsigned ButtonIndex, const char * pText); void ST_CHOOSEFILE_SetDefaultButtonText(unsigned ButtonIndex, const char * pText); void ST_CHOOSEFILE_SetDelim (char Delim); void ST_CHOOSEFILE_SetToolTips (const TOOLTIP_INFO * pInfo, int NumItems); void ST_CHOOSEFILE_SetTopMode (unsigned OnOff); void ST_CHOOSEFILE_SetButtonSize (int XSize, int YSize) ; void ST_CHOOSEFILE_SetButtonBitmaps (int index, const GUI_BITMAP * EnabledBMP, const GUI_BITMAP * DisabledBMP) ; /** ST 2D Drawing methods ***/ void DrawRect3D(int x0, int y0, int width, int height); #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /*__ST_GUI_ADDONS_H */