Headers for emWin lib
Dependents: DISCO-F746NG_rtos_test
emWin_header/DIALOG_Intern.h@0:1bf8f02b0770, 2016-03-26 (annotated)
- Committer:
- redbird
- Date:
- Sat Mar 26 22:49:50 2016 +0000
- Revision:
- 0:1bf8f02b0770
new code integration
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
redbird | 0:1bf8f02b0770 | 1 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 2 | * SEGGER Microcontroller GmbH & Co. KG * |
redbird | 0:1bf8f02b0770 | 3 | * Solutions for real time microcontroller applications * |
redbird | 0:1bf8f02b0770 | 4 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 5 | * * |
redbird | 0:1bf8f02b0770 | 6 | * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG * |
redbird | 0:1bf8f02b0770 | 7 | * * |
redbird | 0:1bf8f02b0770 | 8 | * Internet: www.segger.com Support: support@segger.com * |
redbird | 0:1bf8f02b0770 | 9 | * * |
redbird | 0:1bf8f02b0770 | 10 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 11 | |
redbird | 0:1bf8f02b0770 | 12 | ** emWin V5.24 - Graphical user interface for embedded applications ** |
redbird | 0:1bf8f02b0770 | 13 | All Intellectual Property rights in the Software belongs to SEGGER. |
redbird | 0:1bf8f02b0770 | 14 | emWin is protected by international copyright laws. Knowledge of the |
redbird | 0:1bf8f02b0770 | 15 | source code may not be used to write a similar product. This file may |
redbird | 0:1bf8f02b0770 | 16 | only be used in accordance with the following terms: |
redbird | 0:1bf8f02b0770 | 17 | |
redbird | 0:1bf8f02b0770 | 18 | The software has been licensed to NXP Semiconductors USA, Inc. whose |
redbird | 0:1bf8f02b0770 | 19 | registered office is situated at 411 E. Plumeria Drive, San Jose, |
redbird | 0:1bf8f02b0770 | 20 | CA 95134, USA solely for the purposes of creating libraries for |
redbird | 0:1bf8f02b0770 | 21 | NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and |
redbird | 0:1bf8f02b0770 | 22 | distributed under the terms and conditions of the NXP End User License |
redbird | 0:1bf8f02b0770 | 23 | Agreement. |
redbird | 0:1bf8f02b0770 | 24 | Full source code is available at: www.segger.com |
redbird | 0:1bf8f02b0770 | 25 | |
redbird | 0:1bf8f02b0770 | 26 | We appreciate your understanding and fairness. |
redbird | 0:1bf8f02b0770 | 27 | ---------------------------------------------------------------------- |
redbird | 0:1bf8f02b0770 | 28 | File : Dialog.h |
redbird | 0:1bf8f02b0770 | 29 | Purpose : Dialog box include |
redbird | 0:1bf8f02b0770 | 30 | --------------------END-OF-HEADER------------------------------------- |
redbird | 0:1bf8f02b0770 | 31 | */ |
redbird | 0:1bf8f02b0770 | 32 | |
redbird | 0:1bf8f02b0770 | 33 | #ifndef DIALOG_INTERN_H |
redbird | 0:1bf8f02b0770 | 34 | #define DIALOG_INTERN_H |
redbird | 0:1bf8f02b0770 | 35 | |
redbird | 0:1bf8f02b0770 | 36 | #include "WM.h" |
redbird | 0:1bf8f02b0770 | 37 | |
redbird | 0:1bf8f02b0770 | 38 | #if GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 39 | |
redbird | 0:1bf8f02b0770 | 40 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 41 | extern "C" { // Make sure we have C-declarations in C++ programs |
redbird | 0:1bf8f02b0770 | 42 | #endif |
redbird | 0:1bf8f02b0770 | 43 | |
redbird | 0:1bf8f02b0770 | 44 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 45 | * |
redbird | 0:1bf8f02b0770 | 46 | * Types |
redbird | 0:1bf8f02b0770 | 47 | * |
redbird | 0:1bf8f02b0770 | 48 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 49 | */ |
redbird | 0:1bf8f02b0770 | 50 | typedef struct GUI_WIDGET_CREATE_INFO_struct GUI_WIDGET_CREATE_INFO; |
redbird | 0:1bf8f02b0770 | 51 | typedef WM_HWIN GUI_WIDGET_CREATE_FUNC (const GUI_WIDGET_CREATE_INFO * pCreate, WM_HWIN hWin, int x0, int y0, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 52 | |
redbird | 0:1bf8f02b0770 | 53 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 54 | * |
redbird | 0:1bf8f02b0770 | 55 | * Structures |
redbird | 0:1bf8f02b0770 | 56 | * |
redbird | 0:1bf8f02b0770 | 57 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 58 | */ |
redbird | 0:1bf8f02b0770 | 59 | struct GUI_WIDGET_CREATE_INFO_struct { |
redbird | 0:1bf8f02b0770 | 60 | GUI_WIDGET_CREATE_FUNC * pfCreateIndirect; |
redbird | 0:1bf8f02b0770 | 61 | const char * pName; // Text ... Not used on all widgets |
redbird | 0:1bf8f02b0770 | 62 | I16 Id; // ID ... should be unique in a dialog |
redbird | 0:1bf8f02b0770 | 63 | I16 x0; // x position |
redbird | 0:1bf8f02b0770 | 64 | I16 y0; // y position |
redbird | 0:1bf8f02b0770 | 65 | I16 xSize; // x size |
redbird | 0:1bf8f02b0770 | 66 | I16 ySize; // y size |
redbird | 0:1bf8f02b0770 | 67 | U16 Flags; // Widget specific create flags (opt.) |
redbird | 0:1bf8f02b0770 | 68 | I32 Para; // Widget specific parameter (opt.) |
redbird | 0:1bf8f02b0770 | 69 | U32 NumExtraBytes; // Number of extra bytes usable with <WIDGET>_SetUserData & <WIDGET>_GetUserData |
redbird | 0:1bf8f02b0770 | 70 | }; |
redbird | 0:1bf8f02b0770 | 71 | |
redbird | 0:1bf8f02b0770 | 72 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 73 | * |
redbird | 0:1bf8f02b0770 | 74 | * Public API functions |
redbird | 0:1bf8f02b0770 | 75 | * |
redbird | 0:1bf8f02b0770 | 76 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 77 | */ |
redbird | 0:1bf8f02b0770 | 78 | WM_HWIN GUI_CreateDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0); |
redbird | 0:1bf8f02b0770 | 79 | void GUI_EndDialog (WM_HWIN hWin, int r); |
redbird | 0:1bf8f02b0770 | 80 | int GUI_ExecDialogBox (const GUI_WIDGET_CREATE_INFO * paWidget, int NumWidgets, WM_CALLBACK * cb, WM_HWIN hParent, int x0, int y0); |
redbird | 0:1bf8f02b0770 | 81 | int GUI_ExecCreatedDialog (WM_HWIN hDialog); |
redbird | 0:1bf8f02b0770 | 82 | WM_DIALOG_STATUS * GUI_GetDialogStatusPtr(WM_HWIN hDialog); // Not to be documented |
redbird | 0:1bf8f02b0770 | 83 | void GUI_SetDialogStatusPtr(WM_HWIN hDialog, WM_DIALOG_STATUS * pDialogStatus); // Not to be documented |
redbird | 0:1bf8f02b0770 | 84 | |
redbird | 0:1bf8f02b0770 | 85 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 86 | * |
redbird | 0:1bf8f02b0770 | 87 | * Obsolete |
redbird | 0:1bf8f02b0770 | 88 | */ |
redbird | 0:1bf8f02b0770 | 89 | LCD_COLOR DIALOG_GetBkColor(void); |
redbird | 0:1bf8f02b0770 | 90 | LCD_COLOR DIALOG_SetBkColor(LCD_COLOR BkColor); |
redbird | 0:1bf8f02b0770 | 91 | |
redbird | 0:1bf8f02b0770 | 92 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 93 | } |
redbird | 0:1bf8f02b0770 | 94 | #endif |
redbird | 0:1bf8f02b0770 | 95 | |
redbird | 0:1bf8f02b0770 | 96 | #endif // GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 97 | #endif // DIALOG_INTERN_H |
redbird | 0:1bf8f02b0770 | 98 | |
redbird | 0:1bf8f02b0770 | 99 | /*************************** End of file ****************************/ |