NXP
/
rt1050_emwin_gui_demo
RT1050 GUI demo using emWin library
Embed:
(wiki syntax)
Show/hide line numbers
DIALOG_Intern.h
00001 /********************************************************************* 00002 * SEGGER Microcontroller GmbH & Co. KG * 00003 * Solutions for real time microcontroller applications * 00004 ********************************************************************** 00005 * * 00006 * (c) 1996 - 2016 SEGGER Microcontroller GmbH & Co. KG * 00007 * * 00008 * Internet: www.segger.com Support: support@segger.com * 00009 * * 00010 ********************************************************************** 00011 00012 ** emWin V5.38 - Graphical user interface for embedded applications ** 00013 All Intellectual Property rights in the Software belongs to SEGGER. 00014 emWin is protected by international copyright laws. Knowledge of the 00015 source code may not be used to write a similar product. This file may 00016 only be used in accordance with the following terms: 00017 00018 The software has been licensed to NXP Semiconductors USA, Inc. whose 00019 registered office is situated at 411 E. Plumeria Drive, San Jose, 00020 CA 95134, USA solely for the purposes of creating libraries for 00021 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and 00022 distributed under the terms and conditions of the NXP End User License 00023 Agreement. 00024 Full source code is available at: www.segger.com 00025 00026 We appreciate your understanding and fairness. 00027 ---------------------------------------------------------------------- 00028 Licensing information 00029 00030 Licensor: SEGGER Microcontroller Systems LLC 00031 Licensed to: NXP Semiconductors, 1109 McKay Dr, M/S 76, San Jose, CA 95131, USA 00032 Licensed SEGGER software: emWin 00033 License number: GUI-00186 00034 License model: emWin License Agreement, dated August 20th 2011 00035 Licensed product: - 00036 Licensed platform: NXP's ARM 7/9, Cortex-M0,M3,M4 00037 Licensed number of seats: - 00038 ---------------------------------------------------------------------- 00039 File : Dialog.h 00040 Purpose : Dialog box include 00041 --------------------END-OF-HEADER------------------------------------- 00042 */ 00043 00044 #ifndef DIALOG_INTERN_H 00045 #define DIALOG_INTERN_H 00046 00047 #include "WM.h" 00048 00049 #if GUI_WINSUPPORT 00050 00051 #if defined(__cplusplus) 00052 extern "C" { // Make sure we have C-declarations in C++ programs 00053 #endif 00054 00055 /********************************************************************* 00056 * 00057 * Types 00058 * 00059 ********************************************************************** 00060 */ 00061 typedef struct GUI_WIDGET_CREATE_INFO_struct GUI_WIDGET_CREATE_INFO; 00062 typedef WM_HWIN GUI_WIDGET_CREATE_FUNC (const GUI_WIDGET_CREATE_INFO * pCreate, WM_HWIN hWin, int x0, int y0, WM_CALLBACK * cb); 00063 00064 /********************************************************************* 00065 * 00066 * Structures 00067 * 00068 ********************************************************************** 00069 */ 00070 struct GUI_WIDGET_CREATE_INFO_struct { 00071 GUI_WIDGET_CREATE_FUNC * pfCreateIndirect; 00072 const char * pName; // Text ... Not used on all widgets 00073 I16 Id; // ID ... should be unique in a dialog 00074 I16 x0; // x position 00075 I16 y0; // y position 00076 I16 xSize; // x size 00077 I16 ySize; // y size 00078 U16 Flags; // Widget specific create flags (opt.) 00079 I32 Para; // Widget specific parameter (opt.) 00080 U32 NumExtraBytes; // Number of extra bytes usable with <WIDGET>_SetUserData & <WIDGET>_GetUserData 00081 }; 00082 00083 /********************************************************************* 00084 * 00085 * Public API functions 00086 * 00087 ********************************************************************** 00088 */ 00089 WM_HWIN GUI_CreateDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0); 00090 void GUI_EndDialog (WM_HWIN hWin, int r); 00091 int GUI_ExecDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0); 00092 int GUI_ExecCreatedDialog (WM_HWIN hDialog); 00093 WM_DIALOG_STATUS * GUI_GetDialogStatusPtr(WM_HWIN hDialog); // Not to be documented 00094 void GUI_SetDialogStatusPtr(WM_HWIN hDialog, WM_DIALOG_STATUS * pDialogStatus); // Not to be documented 00095 00096 /********************************************************************* 00097 * 00098 * Obsolete 00099 */ 00100 LCD_COLOR DIALOG_GetBkColor(void); 00101 LCD_COLOR DIALOG_SetBkColor(LCD_COLOR BkColor); 00102 00103 #if defined(__cplusplus) 00104 } 00105 #endif 00106 00107 #endif // GUI_WINSUPPORT 00108 #endif // DIALOG_INTERN_H 00109 00110 /*************************** End of file ****************************/
Generated on Tue Jul 12 2022 19:43:35 by 1.7.2