STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
DIALOG_Intern.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 : Dialog.h
30 Purpose : Dialog box include
31 --------------------END-OF-HEADER-------------------------------------
32 */
33 
34 #ifndef DIALOG_INTERN_H
35 #define DIALOG_INTERN_H
36 
37 #include "WM.h"
38 
39 #if GUI_WINSUPPORT
40 
41 #if defined(__cplusplus)
42  extern "C" { // Make sure we have C-declarations in C++ programs
43 #endif
44 
45 /*********************************************************************
46 *
47 * Types
48 *
49 **********************************************************************
50 */
51 typedef struct GUI_WIDGET_CREATE_INFO_struct GUI_WIDGET_CREATE_INFO;
52 typedef WM_HWIN GUI_WIDGET_CREATE_FUNC (const GUI_WIDGET_CREATE_INFO * pCreate, WM_HWIN hWin, int x0, int y0, WM_CALLBACK * cb);
53 
54 /*********************************************************************
55 *
56 * Structures
57 *
58 **********************************************************************
59 */
60 struct GUI_WIDGET_CREATE_INFO_struct {
61  GUI_WIDGET_CREATE_FUNC * pfCreateIndirect;
62  const char * pName; // Text ... Not used on all widgets
63  I16 Id; // ID ... should be unique in a dialog
64  I16 x0; // x position
65  I16 y0; // y position
66  I16 xSize; // x size
67  I16 ySize; // y size
68  U16 Flags; // Widget specific create flags (opt.)
69  I32 Para; // Widget specific parameter (opt.)
70  U32 NumExtraBytes; // Number of extra bytes usable with <WIDGET>_SetUserData & <WIDGET>_GetUserData
71 };
72 
73 /*********************************************************************
74 *
75 * Public API functions
76 *
77 **********************************************************************
78 */
79 WM_HWIN GUI_CreateDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0);
80 void GUI_EndDialog (WM_HWIN hWin, int r);
81 int GUI_ExecDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0);
82 int GUI_ExecCreatedDialog (WM_HWIN hDialog);
83 WM_DIALOG_STATUS * GUI_GetDialogStatusPtr(WM_HWIN hDialog); // Not to be documented
84 void GUI_SetDialogStatusPtr(WM_HWIN hDialog, WM_DIALOG_STATUS * pDialogStatus); // Not to be documented
85 
86 /*********************************************************************
87 *
88 * Obsolete
89 */
90 LCD_COLOR DIALOG_GetBkColor(void);
91 LCD_COLOR DIALOG_SetBkColor(LCD_COLOR BkColor);
92 
93 #if defined(__cplusplus)
94  }
95 #endif
96 
97 #endif // GUI_WINSUPPORT
98 #endif // DIALOG_INTERN_H
99 
100 /*************************** End of file ****************************/
#define U32
Definition: Global.h:50
#define I16
Definition: Global.h:56
U32 LCD_COLOR
Definition: LCD.h:95
#define U16
Definition: Global.h:47
#define I32
Definition: Global.h:59