this repository aim to make the official ST DISCO F746NG demo from STM32Cube_FW_F7_V1.2.0 working on mbed.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
patch/inc/CHECKBOX.h@0:c00e6c923941, 2015-11-02 (annotated)
- Committer:
- NirT
- Date:
- Mon Nov 02 23:38:08 2015 +0000
- Revision:
- 0:c00e6c923941
Error: Incomplete type is not allowed in "patch/LwIP/src/include/lwip/dhcp.h", Line: 83, Col: 4; ; and more like this.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NirT | 0:c00e6c923941 | 1 | /********************************************************************* |
NirT | 0:c00e6c923941 | 2 | * SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 3 | * Solutions for real time microcontroller applications * |
NirT | 0:c00e6c923941 | 4 | ********************************************************************** |
NirT | 0:c00e6c923941 | 5 | * * |
NirT | 0:c00e6c923941 | 6 | * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 7 | * * |
NirT | 0:c00e6c923941 | 8 | * Internet: www.segger.com Support: support@segger.com * |
NirT | 0:c00e6c923941 | 9 | * * |
NirT | 0:c00e6c923941 | 10 | ********************************************************************** |
NirT | 0:c00e6c923941 | 11 | |
NirT | 0:c00e6c923941 | 12 | ** emWin V5.28 - Graphical user interface for embedded applications ** |
NirT | 0:c00e6c923941 | 13 | All Intellectual Property rights in the Software belongs to SEGGER. |
NirT | 0:c00e6c923941 | 14 | emWin is protected by international copyright laws. Knowledge of the |
NirT | 0:c00e6c923941 | 15 | source code may not be used to write a similar product. This file may |
NirT | 0:c00e6c923941 | 16 | only be used in accordance with the following terms: |
NirT | 0:c00e6c923941 | 17 | |
NirT | 0:c00e6c923941 | 18 | The software has been licensed to STMicroelectronics International |
NirT | 0:c00e6c923941 | 19 | N.V. a Dutch company with a Swiss branch and its headquarters in Plan- |
NirT | 0:c00e6c923941 | 20 | les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the |
NirT | 0:c00e6c923941 | 21 | purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ |
NirT | 0:c00e6c923941 | 22 | troller products commercialized by Licensee only, sublicensed and dis_ |
NirT | 0:c00e6c923941 | 23 | tributed under the terms and conditions of the End User License Agree_ |
NirT | 0:c00e6c923941 | 24 | ment supplied by STMicroelectronics International N.V. |
NirT | 0:c00e6c923941 | 25 | Full source code is available at: www.segger.com |
NirT | 0:c00e6c923941 | 26 | |
NirT | 0:c00e6c923941 | 27 | We appreciate your understanding and fairness. |
NirT | 0:c00e6c923941 | 28 | ---------------------------------------------------------------------- |
NirT | 0:c00e6c923941 | 29 | File : CHECKBOX.h |
NirT | 0:c00e6c923941 | 30 | Purpose : CHECKBOX include |
NirT | 0:c00e6c923941 | 31 | --------------------END-OF-HEADER------------------------------------- |
NirT | 0:c00e6c923941 | 32 | */ |
NirT | 0:c00e6c923941 | 33 | |
NirT | 0:c00e6c923941 | 34 | #ifndef CHECKBOX_H |
NirT | 0:c00e6c923941 | 35 | #define CHECKBOX_H |
NirT | 0:c00e6c923941 | 36 | |
NirT | 0:c00e6c923941 | 37 | #include "WM.h" |
NirT | 0:c00e6c923941 | 38 | #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ |
NirT | 0:c00e6c923941 | 39 | #include "WIDGET.h" |
NirT | 0:c00e6c923941 | 40 | |
NirT | 0:c00e6c923941 | 41 | #if GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 42 | |
NirT | 0:c00e6c923941 | 43 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 44 | extern "C" { /* Make sure we have C-declarations in C++ programs */ |
NirT | 0:c00e6c923941 | 45 | #endif |
NirT | 0:c00e6c923941 | 46 | |
NirT | 0:c00e6c923941 | 47 | /********************************************************************* |
NirT | 0:c00e6c923941 | 48 | * |
NirT | 0:c00e6c923941 | 49 | * Defines |
NirT | 0:c00e6c923941 | 50 | * |
NirT | 0:c00e6c923941 | 51 | ********************************************************************** |
NirT | 0:c00e6c923941 | 52 | */ |
NirT | 0:c00e6c923941 | 53 | |
NirT | 0:c00e6c923941 | 54 | /********************************************************************* |
NirT | 0:c00e6c923941 | 55 | * |
NirT | 0:c00e6c923941 | 56 | * Color indices |
NirT | 0:c00e6c923941 | 57 | */ |
NirT | 0:c00e6c923941 | 58 | #define CHECKBOX_CI_DISABLED 0 |
NirT | 0:c00e6c923941 | 59 | #define CHECKBOX_CI_ENABLED 1 |
NirT | 0:c00e6c923941 | 60 | |
NirT | 0:c00e6c923941 | 61 | /********************************************************************* |
NirT | 0:c00e6c923941 | 62 | * |
NirT | 0:c00e6c923941 | 63 | * Bitmap indices |
NirT | 0:c00e6c923941 | 64 | */ |
NirT | 0:c00e6c923941 | 65 | #define CHECKBOX_BI_INACTIV_UNCHECKED 0 |
NirT | 0:c00e6c923941 | 66 | #define CHECKBOX_BI_ACTIV_UNCHECKED 1 |
NirT | 0:c00e6c923941 | 67 | #define CHECKBOX_BI_INACTIV_CHECKED 2 |
NirT | 0:c00e6c923941 | 68 | #define CHECKBOX_BI_ACTIV_CHECKED 3 |
NirT | 0:c00e6c923941 | 69 | #define CHECKBOX_BI_INACTIV_3STATE 4 |
NirT | 0:c00e6c923941 | 70 | #define CHECKBOX_BI_ACTIV_3STATE 5 |
NirT | 0:c00e6c923941 | 71 | |
NirT | 0:c00e6c923941 | 72 | /********************************************************************* |
NirT | 0:c00e6c923941 | 73 | * |
NirT | 0:c00e6c923941 | 74 | * Skinning property indices |
NirT | 0:c00e6c923941 | 75 | */ |
NirT | 0:c00e6c923941 | 76 | #define CHECKBOX_SKINFLEX_PI_ENABLED 0 |
NirT | 0:c00e6c923941 | 77 | #define CHECKBOX_SKINFLEX_PI_DISABLED 1 |
NirT | 0:c00e6c923941 | 78 | |
NirT | 0:c00e6c923941 | 79 | /********************************************************************* |
NirT | 0:c00e6c923941 | 80 | * |
NirT | 0:c00e6c923941 | 81 | * Public Types |
NirT | 0:c00e6c923941 | 82 | * |
NirT | 0:c00e6c923941 | 83 | ********************************************************************** |
NirT | 0:c00e6c923941 | 84 | */ |
NirT | 0:c00e6c923941 | 85 | typedef WM_HMEM CHECKBOX_Handle; |
NirT | 0:c00e6c923941 | 86 | |
NirT | 0:c00e6c923941 | 87 | typedef struct { |
NirT | 0:c00e6c923941 | 88 | GUI_COLOR aColorFrame[3]; |
NirT | 0:c00e6c923941 | 89 | GUI_COLOR aColorInner[2]; |
NirT | 0:c00e6c923941 | 90 | GUI_COLOR ColorCheck; |
NirT | 0:c00e6c923941 | 91 | int ButtonSize; |
NirT | 0:c00e6c923941 | 92 | } CHECKBOX_SKINFLEX_PROPS; |
NirT | 0:c00e6c923941 | 93 | |
NirT | 0:c00e6c923941 | 94 | /********************************************************************* |
NirT | 0:c00e6c923941 | 95 | * |
NirT | 0:c00e6c923941 | 96 | * Create functions |
NirT | 0:c00e6c923941 | 97 | * |
NirT | 0:c00e6c923941 | 98 | ********************************************************************** |
NirT | 0:c00e6c923941 | 99 | */ |
NirT | 0:c00e6c923941 | 100 | CHECKBOX_Handle CHECKBOX_Create (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int Id, int Flags); |
NirT | 0:c00e6c923941 | 101 | CHECKBOX_Handle CHECKBOX_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id); |
NirT | 0:c00e6c923941 | 102 | CHECKBOX_Handle CHECKBOX_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes); |
NirT | 0:c00e6c923941 | 103 | CHECKBOX_Handle CHECKBOX_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
NirT | 0:c00e6c923941 | 104 | |
NirT | 0:c00e6c923941 | 105 | /********************************************************************* |
NirT | 0:c00e6c923941 | 106 | * |
NirT | 0:c00e6c923941 | 107 | * The callback ... |
NirT | 0:c00e6c923941 | 108 | * |
NirT | 0:c00e6c923941 | 109 | * Do not call it directly ! It is only to be used from within an |
NirT | 0:c00e6c923941 | 110 | * overwritten callback. |
NirT | 0:c00e6c923941 | 111 | */ |
NirT | 0:c00e6c923941 | 112 | void CHECKBOX_Callback(WM_MESSAGE * pMsg); |
NirT | 0:c00e6c923941 | 113 | |
NirT | 0:c00e6c923941 | 114 | /********************************************************************* |
NirT | 0:c00e6c923941 | 115 | * |
NirT | 0:c00e6c923941 | 116 | * Standard member functions |
NirT | 0:c00e6c923941 | 117 | * |
NirT | 0:c00e6c923941 | 118 | ********************************************************************** |
NirT | 0:c00e6c923941 | 119 | */ |
NirT | 0:c00e6c923941 | 120 | |
NirT | 0:c00e6c923941 | 121 | int CHECKBOX_GetDefaultAlign (void); |
NirT | 0:c00e6c923941 | 122 | GUI_COLOR CHECKBOX_GetDefaultBkColor (void); |
NirT | 0:c00e6c923941 | 123 | const GUI_FONT * CHECKBOX_GetDefaultFont (void); |
NirT | 0:c00e6c923941 | 124 | int CHECKBOX_GetDefaultSpacing (void); |
NirT | 0:c00e6c923941 | 125 | int CHECKBOX_GetDefaultTextAlign (void); |
NirT | 0:c00e6c923941 | 126 | GUI_COLOR CHECKBOX_GetDefaultTextColor (void); |
NirT | 0:c00e6c923941 | 127 | int CHECKBOX_GetUserData (CHECKBOX_Handle hObj, void * pDest, int NumBytes); |
NirT | 0:c00e6c923941 | 128 | void CHECKBOX_SetDefaultAlign (int Align); |
NirT | 0:c00e6c923941 | 129 | void CHECKBOX_SetDefaultBkColor (GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 130 | GUI_COLOR CHECKBOX_SetDefaultFocusColor(GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 131 | void CHECKBOX_SetDefaultFont (const GUI_FONT * pFont); |
NirT | 0:c00e6c923941 | 132 | void CHECKBOX_SetDefaultImage (const GUI_BITMAP * pBitmap, unsigned int Index); |
NirT | 0:c00e6c923941 | 133 | void CHECKBOX_SetDefaultSpacing (int Spacing); |
NirT | 0:c00e6c923941 | 134 | void CHECKBOX_SetDefaultTextAlign (int Align); |
NirT | 0:c00e6c923941 | 135 | void CHECKBOX_SetDefaultTextColor (GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 136 | int CHECKBOX_SetUserData (CHECKBOX_Handle hObj, const void * pSrc, int NumBytes); |
NirT | 0:c00e6c923941 | 137 | |
NirT | 0:c00e6c923941 | 138 | /********************************************************************* |
NirT | 0:c00e6c923941 | 139 | * |
NirT | 0:c00e6c923941 | 140 | * Member functions |
NirT | 0:c00e6c923941 | 141 | * |
NirT | 0:c00e6c923941 | 142 | ********************************************************************** |
NirT | 0:c00e6c923941 | 143 | */ |
NirT | 0:c00e6c923941 | 144 | |
NirT | 0:c00e6c923941 | 145 | int CHECKBOX_GetState (CHECKBOX_Handle hObj); |
NirT | 0:c00e6c923941 | 146 | int CHECKBOX_GetText (CHECKBOX_Handle hObj, char * pBuffer, int MaxLen); |
NirT | 0:c00e6c923941 | 147 | int CHECKBOX_IsChecked (CHECKBOX_Handle hObj); |
NirT | 0:c00e6c923941 | 148 | void CHECKBOX_SetBkColor (CHECKBOX_Handle hObj, GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 149 | GUI_COLOR CHECKBOX_SetBoxBkColor(CHECKBOX_Handle hObj, GUI_COLOR Color, int Index); |
NirT | 0:c00e6c923941 | 150 | GUI_COLOR CHECKBOX_SetFocusColor(CHECKBOX_Handle hObj, GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 151 | void CHECKBOX_SetFont (CHECKBOX_Handle hObj, const GUI_FONT * pFont); |
NirT | 0:c00e6c923941 | 152 | void CHECKBOX_SetImage (CHECKBOX_Handle hObj, const GUI_BITMAP * pBitmap, unsigned int Index); |
NirT | 0:c00e6c923941 | 153 | void CHECKBOX_SetNumStates (CHECKBOX_Handle hObj, unsigned NumStates); |
NirT | 0:c00e6c923941 | 154 | void CHECKBOX_SetSpacing (CHECKBOX_Handle hObj, unsigned Spacing); |
NirT | 0:c00e6c923941 | 155 | void CHECKBOX_SetState (CHECKBOX_Handle hObj, unsigned State); |
NirT | 0:c00e6c923941 | 156 | void CHECKBOX_SetText (CHECKBOX_Handle hObj, const char * pText); |
NirT | 0:c00e6c923941 | 157 | void CHECKBOX_SetTextAlign (CHECKBOX_Handle hObj, int Align); |
NirT | 0:c00e6c923941 | 158 | void CHECKBOX_SetTextColor (CHECKBOX_Handle hObj, GUI_COLOR Color); |
NirT | 0:c00e6c923941 | 159 | |
NirT | 0:c00e6c923941 | 160 | /********************************************************************* |
NirT | 0:c00e6c923941 | 161 | * |
NirT | 0:c00e6c923941 | 162 | * Member functions: Skinning |
NirT | 0:c00e6c923941 | 163 | * |
NirT | 0:c00e6c923941 | 164 | ********************************************************************** |
NirT | 0:c00e6c923941 | 165 | */ |
NirT | 0:c00e6c923941 | 166 | void CHECKBOX_GetSkinFlexProps (CHECKBOX_SKINFLEX_PROPS * pProps, int Index); |
NirT | 0:c00e6c923941 | 167 | void CHECKBOX_SetSkinClassic (CHECKBOX_Handle hObj); |
NirT | 0:c00e6c923941 | 168 | void CHECKBOX_SetSkin (CHECKBOX_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); |
NirT | 0:c00e6c923941 | 169 | int CHECKBOX_DrawSkinFlex (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); |
NirT | 0:c00e6c923941 | 170 | void CHECKBOX_SetSkinFlexProps (const CHECKBOX_SKINFLEX_PROPS * pProps, int Index); |
NirT | 0:c00e6c923941 | 171 | void CHECKBOX_SetDefaultSkinClassic (void); |
NirT | 0:c00e6c923941 | 172 | int CHECKBOX_GetSkinFlexButtonSize (CHECKBOX_Handle hObj); |
NirT | 0:c00e6c923941 | 173 | void CHECKBOX_SetSkinFlexButtonSize (CHECKBOX_Handle hObj, int ButtonSize); |
NirT | 0:c00e6c923941 | 174 | WIDGET_DRAW_ITEM_FUNC * CHECKBOX_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); |
NirT | 0:c00e6c923941 | 175 | |
NirT | 0:c00e6c923941 | 176 | #define CHECKBOX_SKIN_FLEX CHECKBOX_DrawSkinFlex |
NirT | 0:c00e6c923941 | 177 | |
NirT | 0:c00e6c923941 | 178 | /********************************************************************* |
NirT | 0:c00e6c923941 | 179 | * |
NirT | 0:c00e6c923941 | 180 | * Macros for compatibility |
NirT | 0:c00e6c923941 | 181 | * |
NirT | 0:c00e6c923941 | 182 | ********************************************************************** |
NirT | 0:c00e6c923941 | 183 | */ |
NirT | 0:c00e6c923941 | 184 | |
NirT | 0:c00e6c923941 | 185 | #define CHECKBOX_Check(hObj) CHECKBOX_SetState(hObj, 1) |
NirT | 0:c00e6c923941 | 186 | #define CHECKBOX_Uncheck(hObj) CHECKBOX_SetState(hObj, 0) |
NirT | 0:c00e6c923941 | 187 | |
NirT | 0:c00e6c923941 | 188 | #define CHECKBOX_BI_INACTIV CHECKBOX_BI_INACTIV_CHECKED |
NirT | 0:c00e6c923941 | 189 | #define CHECKBOX_BI_ACTIV CHECKBOX_BI_ACTIV_CHECKED |
NirT | 0:c00e6c923941 | 190 | |
NirT | 0:c00e6c923941 | 191 | #if defined(__cplusplus) |
NirT | 0:c00e6c923941 | 192 | } |
NirT | 0:c00e6c923941 | 193 | #endif |
NirT | 0:c00e6c923941 | 194 | |
NirT | 0:c00e6c923941 | 195 | #endif // GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 196 | #endif // CHECKBOX_H |
NirT | 0:c00e6c923941 | 197 | |
NirT | 0:c00e6c923941 | 198 | /*************************** End of file ****************************/ |