Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

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?

UserRevisionLine numberNew 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 : TREEVIEW.h
NirT 0:c00e6c923941 30 Purpose : TREEVIEW include
NirT 0:c00e6c923941 31 --------------------END-OF-HEADER-------------------------------------
NirT 0:c00e6c923941 32 */
NirT 0:c00e6c923941 33
NirT 0:c00e6c923941 34 #ifndef TREEVIEW_H
NirT 0:c00e6c923941 35 #define TREEVIEW_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 /* Status- and create flags */
NirT 0:c00e6c923941 54 #define TREEVIEW_CF_HIDELINES (1 << 0)
NirT 0:c00e6c923941 55 #define TREEVIEW_CF_ROWSELECT (1 << 1)
NirT 0:c00e6c923941 56 #define TREEVIEW_CF_AUTOSCROLLBAR_H (1 << 2)
NirT 0:c00e6c923941 57 #define TREEVIEW_CF_AUTOSCROLLBAR_V (1 << 3)
NirT 0:c00e6c923941 58 #define TREEVIEW_SF_HIDELINES TREEVIEW_CF_HIDELINES
NirT 0:c00e6c923941 59 #define TREEVIEW_SF_ROWSELECT TREEVIEW_CF_ROWSELECT
NirT 0:c00e6c923941 60 #define TREEVIEW_SF_AUTOSCROLLBAR_H TREEVIEW_CF_AUTOSCROLLBAR_H
NirT 0:c00e6c923941 61 #define TREEVIEW_SF_AUTOSCROLLBAR_V TREEVIEW_CF_AUTOSCROLLBAR_V
NirT 0:c00e6c923941 62
NirT 0:c00e6c923941 63 /* Bitmap indices */
NirT 0:c00e6c923941 64 #define TREEVIEW_BI_CLOSED 0
NirT 0:c00e6c923941 65 #define TREEVIEW_BI_OPEN 1
NirT 0:c00e6c923941 66 #define TREEVIEW_BI_LEAF 2
NirT 0:c00e6c923941 67 #define TREEVIEW_BI_PLUS 3
NirT 0:c00e6c923941 68 #define TREEVIEW_BI_MINUS 4
NirT 0:c00e6c923941 69 #define TREEVIEW_BI_PM 5
NirT 0:c00e6c923941 70
NirT 0:c00e6c923941 71 /* Color indices */
NirT 0:c00e6c923941 72 #define TREEVIEW_CI_UNSEL 0
NirT 0:c00e6c923941 73 #define TREEVIEW_CI_SEL 1
NirT 0:c00e6c923941 74 #define TREEVIEW_CI_DISABLED 2
NirT 0:c00e6c923941 75
NirT 0:c00e6c923941 76 /* Relative positions (create) */
NirT 0:c00e6c923941 77 #define TREEVIEW_INSERT_ABOVE 0
NirT 0:c00e6c923941 78 #define TREEVIEW_INSERT_BELOW 1
NirT 0:c00e6c923941 79 #define TREEVIEW_INSERT_FIRST_CHILD 2
NirT 0:c00e6c923941 80
NirT 0:c00e6c923941 81 /* Relative positions (retrieve) */
NirT 0:c00e6c923941 82 #define TREEVIEW_GET_FIRST 0
NirT 0:c00e6c923941 83 #define TREEVIEW_GET_LAST 1
NirT 0:c00e6c923941 84 #define TREEVIEW_GET_NEXT_SIBLING 2
NirT 0:c00e6c923941 85 #define TREEVIEW_GET_PREV_SIBLING 3
NirT 0:c00e6c923941 86 #define TREEVIEW_GET_FIRST_CHILD 4
NirT 0:c00e6c923941 87 #define TREEVIEW_GET_PARENT 5
NirT 0:c00e6c923941 88
NirT 0:c00e6c923941 89 /* Item flags */
NirT 0:c00e6c923941 90 #define TREEVIEW_ITEM_TYPE_LEAF (0 << 0)
NirT 0:c00e6c923941 91 #define TREEVIEW_ITEM_TYPE_NODE (1 << 0)
NirT 0:c00e6c923941 92
NirT 0:c00e6c923941 93 /* Selection mode */
NirT 0:c00e6c923941 94 #define TREEVIEW_SELMODE_ROW 1
NirT 0:c00e6c923941 95 #define TREEVIEW_SELMODE_TEXT 0
NirT 0:c00e6c923941 96
NirT 0:c00e6c923941 97 /************************************************************
NirT 0:c00e6c923941 98 *
NirT 0:c00e6c923941 99 * Types
NirT 0:c00e6c923941 100 *
NirT 0:c00e6c923941 101 *************************************************************
NirT 0:c00e6c923941 102 */
NirT 0:c00e6c923941 103 typedef WM_HMEM TREEVIEW_Handle;
NirT 0:c00e6c923941 104 typedef WM_HMEM TREEVIEW_ITEM_Handle;
NirT 0:c00e6c923941 105
NirT 0:c00e6c923941 106 typedef struct {
NirT 0:c00e6c923941 107 int IsNode;
NirT 0:c00e6c923941 108 int IsExpanded;
NirT 0:c00e6c923941 109 int HasLines;
NirT 0:c00e6c923941 110 int HasRowSelect;
NirT 0:c00e6c923941 111 int Level;
NirT 0:c00e6c923941 112 } TREEVIEW_ITEM_INFO;
NirT 0:c00e6c923941 113
NirT 0:c00e6c923941 114 typedef struct {
NirT 0:c00e6c923941 115 GUI_COLOR ColorBk;
NirT 0:c00e6c923941 116 GUI_COLOR ColorText;
NirT 0:c00e6c923941 117 GUI_COLOR ColorTextBk;
NirT 0:c00e6c923941 118 GUI_COLOR ColorLines;
NirT 0:c00e6c923941 119 GUI_RECT rText;
NirT 0:c00e6c923941 120 TREEVIEW_ITEM_Handle hItem;
NirT 0:c00e6c923941 121 const GUI_FONT * pFont;
NirT 0:c00e6c923941 122 char * pText;
NirT 0:c00e6c923941 123 U8 NumLines;
NirT 0:c00e6c923941 124 I16 ax0[3];
NirT 0:c00e6c923941 125 I16 ay0[3];
NirT 0:c00e6c923941 126 I16 ax1[3];
NirT 0:c00e6c923941 127 I16 ay1[3];
NirT 0:c00e6c923941 128 U8 NumConnectors;
NirT 0:c00e6c923941 129 I16 axc[16];
NirT 0:c00e6c923941 130 const GUI_BITMAP * pBmPM;
NirT 0:c00e6c923941 131 const GUI_BITMAP * pBmOCL;
NirT 0:c00e6c923941 132 I16 xPosPM, xPosOCL;
NirT 0:c00e6c923941 133 U8 IndexPM;
NirT 0:c00e6c923941 134 U8 IndexOCL;
NirT 0:c00e6c923941 135 } TREEVIEW_ITEM_DRAW_INFO;
NirT 0:c00e6c923941 136
NirT 0:c00e6c923941 137 /*********************************************************************
NirT 0:c00e6c923941 138 *
NirT 0:c00e6c923941 139 * Create functions
NirT 0:c00e6c923941 140 *
NirT 0:c00e6c923941 141 **********************************************************************
NirT 0:c00e6c923941 142 */
NirT 0:c00e6c923941 143 TREEVIEW_Handle TREEVIEW_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id);
NirT 0:c00e6c923941 144 TREEVIEW_Handle TREEVIEW_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes);
NirT 0:c00e6c923941 145 TREEVIEW_Handle TREEVIEW_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
NirT 0:c00e6c923941 146
NirT 0:c00e6c923941 147 /*********************************************************************
NirT 0:c00e6c923941 148 *
NirT 0:c00e6c923941 149 * The callback ...
NirT 0:c00e6c923941 150 *
NirT 0:c00e6c923941 151 * Do not call it directly ! It is only to be used from within an
NirT 0:c00e6c923941 152 * overwritten callback.
NirT 0:c00e6c923941 153 */
NirT 0:c00e6c923941 154 void TREEVIEW_Callback(WM_MESSAGE * pMsg);
NirT 0:c00e6c923941 155
NirT 0:c00e6c923941 156 /*********************************************************************
NirT 0:c00e6c923941 157 *
NirT 0:c00e6c923941 158 * Common functions
NirT 0:c00e6c923941 159 *
NirT 0:c00e6c923941 160 **********************************************************************
NirT 0:c00e6c923941 161 */
NirT 0:c00e6c923941 162 int TREEVIEW_AttachItem (TREEVIEW_Handle hObj, TREEVIEW_ITEM_Handle hItem, TREEVIEW_ITEM_Handle hItemAt, int Position);
NirT 0:c00e6c923941 163 void TREEVIEW_DecSel (TREEVIEW_Handle hObj);
NirT 0:c00e6c923941 164 TREEVIEW_ITEM_Handle TREEVIEW_GetItem (TREEVIEW_Handle hObj, TREEVIEW_ITEM_Handle hItem, int Flags);
NirT 0:c00e6c923941 165 TREEVIEW_ITEM_Handle TREEVIEW_GetSel (TREEVIEW_Handle hObj);
NirT 0:c00e6c923941 166 int TREEVIEW_GetUserData (TREEVIEW_Handle hObj, void * pDest, int NumBytes);
NirT 0:c00e6c923941 167 void TREEVIEW_IncSel (TREEVIEW_Handle hObj);
NirT 0:c00e6c923941 168 TREEVIEW_ITEM_Handle TREEVIEW_InsertItem (TREEVIEW_Handle hObj, int IsNode, TREEVIEW_ITEM_Handle hItemPrev, int Position, const char * s);
NirT 0:c00e6c923941 169 int TREEVIEW_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo);
NirT 0:c00e6c923941 170 void TREEVIEW_ScrollToSel (TREEVIEW_Handle hObj);
NirT 0:c00e6c923941 171 void TREEVIEW_SetAutoScrollH (TREEVIEW_Handle hObj, int State);
NirT 0:c00e6c923941 172 void TREEVIEW_SetAutoScrollV (TREEVIEW_Handle hObj, int State);
NirT 0:c00e6c923941 173 void TREEVIEW_SetBitmapOffset(TREEVIEW_Handle hObj, int Index, int xOff, int yOff);
NirT 0:c00e6c923941 174 void TREEVIEW_SetBkColor (TREEVIEW_Handle hObj, int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 175 void TREEVIEW_SetFont (TREEVIEW_Handle hObj, const GUI_FONT * pFont);
NirT 0:c00e6c923941 176 void TREEVIEW_SetHasLines (TREEVIEW_Handle hObj, int State);
NirT 0:c00e6c923941 177 void TREEVIEW_SetImage (TREEVIEW_Handle hObj, int Index, const GUI_BITMAP * pBitmap);
NirT 0:c00e6c923941 178 int TREEVIEW_SetIndent (TREEVIEW_Handle hObj, int Indent);
NirT 0:c00e6c923941 179 void TREEVIEW_SetLineColor (TREEVIEW_Handle hObj, int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 180 void TREEVIEW_SetOwnerDraw (TREEVIEW_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawItem);
NirT 0:c00e6c923941 181 void TREEVIEW_SetSel (TREEVIEW_Handle hObj, TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 182 void TREEVIEW_SetSelMode (TREEVIEW_Handle hObj, int Mode);
NirT 0:c00e6c923941 183 void TREEVIEW_SetTextColor (TREEVIEW_Handle hObj, int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 184 int TREEVIEW_SetTextIndent (TREEVIEW_Handle hObj, int TextIndent);
NirT 0:c00e6c923941 185 int TREEVIEW_SetUserData (TREEVIEW_Handle hObj, const void * pSrc, int NumBytes);
NirT 0:c00e6c923941 186
NirT 0:c00e6c923941 187
NirT 0:c00e6c923941 188 /*********************************************************************
NirT 0:c00e6c923941 189 *
NirT 0:c00e6c923941 190 * Treeview item related functions
NirT 0:c00e6c923941 191 *
NirT 0:c00e6c923941 192 **********************************************************************
NirT 0:c00e6c923941 193 */
NirT 0:c00e6c923941 194 void TREEVIEW_ITEM_Collapse (TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 195 void TREEVIEW_ITEM_CollapseAll(TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 196 TREEVIEW_ITEM_Handle TREEVIEW_ITEM_Create (int IsNode, const char * s, U32 UserData);
NirT 0:c00e6c923941 197 void TREEVIEW_ITEM_Delete (TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 198 void TREEVIEW_ITEM_Detach (TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 199 void TREEVIEW_ITEM_Expand (TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 200 void TREEVIEW_ITEM_ExpandAll (TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 201 void TREEVIEW_ITEM_GetInfo (TREEVIEW_ITEM_Handle hItem, TREEVIEW_ITEM_INFO * pInfo);
NirT 0:c00e6c923941 202 void TREEVIEW_ITEM_GetText (TREEVIEW_ITEM_Handle hItem, U8 * pBuffer, int MaxNumBytes);
NirT 0:c00e6c923941 203 U32 TREEVIEW_ITEM_GetUserData(TREEVIEW_ITEM_Handle hItem);
NirT 0:c00e6c923941 204 void TREEVIEW_ITEM_SetImage (TREEVIEW_ITEM_Handle hItem, int Index, const GUI_BITMAP * pBitmap);
NirT 0:c00e6c923941 205 TREEVIEW_ITEM_Handle TREEVIEW_ITEM_SetText (TREEVIEW_ITEM_Handle hItem, const char * s);
NirT 0:c00e6c923941 206 void TREEVIEW_ITEM_SetUserData(TREEVIEW_ITEM_Handle hItem, U32 UserData);
NirT 0:c00e6c923941 207
NirT 0:c00e6c923941 208 /*********************************************************************
NirT 0:c00e6c923941 209 *
NirT 0:c00e6c923941 210 * Managing default values
NirT 0:c00e6c923941 211 *
NirT 0:c00e6c923941 212 **********************************************************************
NirT 0:c00e6c923941 213 */
NirT 0:c00e6c923941 214 GUI_COLOR TREEVIEW_GetDefaultBkColor (int Index);
NirT 0:c00e6c923941 215 const GUI_FONT * TREEVIEW_GetDefaultFont (void);
NirT 0:c00e6c923941 216 GUI_COLOR TREEVIEW_GetDefaultLineColor(int Index);
NirT 0:c00e6c923941 217 GUI_COLOR TREEVIEW_GetDefaultTextColor(int Index);
NirT 0:c00e6c923941 218 void TREEVIEW_SetDefaultBkColor (int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 219 void TREEVIEW_SetDefaultFont (const GUI_FONT * pFont);
NirT 0:c00e6c923941 220 void TREEVIEW_SetDefaultLineColor(int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 221 void TREEVIEW_SetDefaultTextColor(int Index, GUI_COLOR Color);
NirT 0:c00e6c923941 222
NirT 0:c00e6c923941 223 #if defined(__cplusplus)
NirT 0:c00e6c923941 224 }
NirT 0:c00e6c923941 225 #endif
NirT 0:c00e6c923941 226
NirT 0:c00e6c923941 227 #endif // GUI_WINSUPPORT
NirT 0:c00e6c923941 228 #endif // TREEVIEW_H
NirT 0:c00e6c923941 229
NirT 0:c00e6c923941 230 /*************************** End of file ****************************/