Headers for emWin lib
Dependents: DISCO-F746NG_rtos_test
emWin_header/ICONVIEW.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 : ICONVIEW.h |
redbird | 0:1bf8f02b0770 | 29 | Purpose : ICONVIEW include |
redbird | 0:1bf8f02b0770 | 30 | --------------------END-OF-HEADER------------------------------------- |
redbird | 0:1bf8f02b0770 | 31 | */ |
redbird | 0:1bf8f02b0770 | 32 | |
redbird | 0:1bf8f02b0770 | 33 | #ifndef ICONVIEW_H |
redbird | 0:1bf8f02b0770 | 34 | #define ICONVIEW_H |
redbird | 0:1bf8f02b0770 | 35 | |
redbird | 0:1bf8f02b0770 | 36 | #include "WM.h" |
redbird | 0:1bf8f02b0770 | 37 | #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ |
redbird | 0:1bf8f02b0770 | 38 | #include "WIDGET.h" |
redbird | 0:1bf8f02b0770 | 39 | |
redbird | 0:1bf8f02b0770 | 40 | #if GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 41 | |
redbird | 0:1bf8f02b0770 | 42 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 43 | extern "C" { /* Make sure we have C-declarations in C++ programs */ |
redbird | 0:1bf8f02b0770 | 44 | #endif |
redbird | 0:1bf8f02b0770 | 45 | |
redbird | 0:1bf8f02b0770 | 46 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 47 | * |
redbird | 0:1bf8f02b0770 | 48 | * Defines |
redbird | 0:1bf8f02b0770 | 49 | * |
redbird | 0:1bf8f02b0770 | 50 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 51 | */ |
redbird | 0:1bf8f02b0770 | 52 | // |
redbird | 0:1bf8f02b0770 | 53 | // Status- and create flags |
redbird | 0:1bf8f02b0770 | 54 | // |
redbird | 0:1bf8f02b0770 | 55 | #define ICONVIEW_CF_AUTOSCROLLBAR_V (1 << 1) |
redbird | 0:1bf8f02b0770 | 56 | #define ICONVIEW_SF_AUTOSCROLLBAR_V ICONVIEW_CF_AUTOSCROLLBAR_V |
redbird | 0:1bf8f02b0770 | 57 | |
redbird | 0:1bf8f02b0770 | 58 | // |
redbird | 0:1bf8f02b0770 | 59 | // Color indices |
redbird | 0:1bf8f02b0770 | 60 | // |
redbird | 0:1bf8f02b0770 | 61 | #define ICONVIEW_CI_BK 0 |
redbird | 0:1bf8f02b0770 | 62 | #define ICONVIEW_CI_UNSEL 0 |
redbird | 0:1bf8f02b0770 | 63 | #define ICONVIEW_CI_SEL 1 |
redbird | 0:1bf8f02b0770 | 64 | #define ICONVIEW_CI_DISABLED 2 |
redbird | 0:1bf8f02b0770 | 65 | |
redbird | 0:1bf8f02b0770 | 66 | // |
redbird | 0:1bf8f02b0770 | 67 | // Icon alignment flags, horizontal |
redbird | 0:1bf8f02b0770 | 68 | // |
redbird | 0:1bf8f02b0770 | 69 | #define ICONVIEW_IA_HCENTER (0 << 0) |
redbird | 0:1bf8f02b0770 | 70 | #define ICONVIEW_IA_LEFT (1 << 0) |
redbird | 0:1bf8f02b0770 | 71 | #define ICONVIEW_IA_RIGHT (2 << 0) |
redbird | 0:1bf8f02b0770 | 72 | |
redbird | 0:1bf8f02b0770 | 73 | // |
redbird | 0:1bf8f02b0770 | 74 | // Icon alignment flags, vertical |
redbird | 0:1bf8f02b0770 | 75 | // |
redbird | 0:1bf8f02b0770 | 76 | #define ICONVIEW_IA_VCENTER (0 << 2) |
redbird | 0:1bf8f02b0770 | 77 | #define ICONVIEW_IA_BOTTOM (1 << 2) |
redbird | 0:1bf8f02b0770 | 78 | #define ICONVIEW_IA_TOP (2 << 2) |
redbird | 0:1bf8f02b0770 | 79 | |
redbird | 0:1bf8f02b0770 | 80 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 81 | * |
redbird | 0:1bf8f02b0770 | 82 | * Types |
redbird | 0:1bf8f02b0770 | 83 | * |
redbird | 0:1bf8f02b0770 | 84 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 85 | */ |
redbird | 0:1bf8f02b0770 | 86 | typedef WM_HMEM ICONVIEW_Handle; |
redbird | 0:1bf8f02b0770 | 87 | |
redbird | 0:1bf8f02b0770 | 88 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 89 | * |
redbird | 0:1bf8f02b0770 | 90 | * Public functions |
redbird | 0:1bf8f02b0770 | 91 | * |
redbird | 0:1bf8f02b0770 | 92 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 93 | */ |
redbird | 0:1bf8f02b0770 | 94 | ICONVIEW_Handle ICONVIEW_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems); |
redbird | 0:1bf8f02b0770 | 95 | ICONVIEW_Handle ICONVIEW_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int xSizeItems, int ySizeItems, int NumExtraBytes); |
redbird | 0:1bf8f02b0770 | 96 | ICONVIEW_Handle ICONVIEW_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 97 | |
redbird | 0:1bf8f02b0770 | 98 | int ICONVIEW_AddBitmapItem (ICONVIEW_Handle hObj, const GUI_BITMAP * pBitmap, const char * pText); |
redbird | 0:1bf8f02b0770 | 99 | int ICONVIEW_AddStreamedBitmapItem (ICONVIEW_Handle hObj, const void * pStreamedBitmap, const char * pText); |
redbird | 0:1bf8f02b0770 | 100 | void ICONVIEW_DeleteItem (ICONVIEW_Handle hObj, unsigned Index); |
redbird | 0:1bf8f02b0770 | 101 | void ICONVIEW_EnableStreamAuto (void); |
redbird | 0:1bf8f02b0770 | 102 | U32 ICONVIEW_GetItemUserData (ICONVIEW_Handle hObj, int Index); |
redbird | 0:1bf8f02b0770 | 103 | int ICONVIEW_GetNumItems (ICONVIEW_Handle hObj); |
redbird | 0:1bf8f02b0770 | 104 | int ICONVIEW_GetItemText (ICONVIEW_Handle hObj, int Index, char * pBuffer, int MaxSize); |
redbird | 0:1bf8f02b0770 | 105 | int ICONVIEW_GetSel (ICONVIEW_Handle hObj); |
redbird | 0:1bf8f02b0770 | 106 | int ICONVIEW_GetUserData (ICONVIEW_Handle hObj, void * pDest, int NumBytes); |
redbird | 0:1bf8f02b0770 | 107 | int ICONVIEW_InsertBitmapItem (ICONVIEW_Handle hObj, const GUI_BITMAP * pBitmap, const char * pText, int Index); |
redbird | 0:1bf8f02b0770 | 108 | int ICONVIEW_InsertStreamedBitmapItem(ICONVIEW_Handle hObj, const void * pStreamedBitmap, const char * pText, int Index); |
redbird | 0:1bf8f02b0770 | 109 | int ICONVIEW_SetBitmapItem (ICONVIEW_Handle hObj, int Index, const GUI_BITMAP * pBitmap); |
redbird | 0:1bf8f02b0770 | 110 | void ICONVIEW_SetBkColor (ICONVIEW_Handle hObj, int Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 111 | void ICONVIEW_SetFont (ICONVIEW_Handle hObj, const GUI_FONT * pFont); |
redbird | 0:1bf8f02b0770 | 112 | void ICONVIEW_SetFrame (ICONVIEW_Handle hObj, int Coord, int Value); |
redbird | 0:1bf8f02b0770 | 113 | void ICONVIEW_SetItemText (ICONVIEW_Handle hObj, int Index, const char * pText); |
redbird | 0:1bf8f02b0770 | 114 | void ICONVIEW_SetItemUserData (ICONVIEW_Handle hObj, int Index, U32 UserData); |
redbird | 0:1bf8f02b0770 | 115 | void ICONVIEW_SetSel (ICONVIEW_Handle hObj, int Sel); |
redbird | 0:1bf8f02b0770 | 116 | void ICONVIEW_SetSpace (ICONVIEW_Handle hObj, int Coord, int Value); |
redbird | 0:1bf8f02b0770 | 117 | int ICONVIEW_SetStreamedBitmapItem (ICONVIEW_Handle hObj, int Index, const void * pStreamedBitmap); |
redbird | 0:1bf8f02b0770 | 118 | void ICONVIEW_SetIconAlign (ICONVIEW_Handle hObj, int IconAlign); |
redbird | 0:1bf8f02b0770 | 119 | void ICONVIEW_SetTextAlign (ICONVIEW_Handle hObj, int TextAlign); |
redbird | 0:1bf8f02b0770 | 120 | void ICONVIEW_SetTextColor (ICONVIEW_Handle hObj, int Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 121 | int ICONVIEW_SetUserData (ICONVIEW_Handle hObj, const void * pSrc, int NumBytes); |
redbird | 0:1bf8f02b0770 | 122 | void ICONVIEW_SetWrapMode (ICONVIEW_Handle hObj, GUI_WRAPMODE WrapMode); |
redbird | 0:1bf8f02b0770 | 123 | |
redbird | 0:1bf8f02b0770 | 124 | void ICONVIEW_Callback(WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 125 | |
redbird | 0:1bf8f02b0770 | 126 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 127 | } |
redbird | 0:1bf8f02b0770 | 128 | #endif |
redbird | 0:1bf8f02b0770 | 129 | |
redbird | 0:1bf8f02b0770 | 130 | #endif // GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 131 | #endif // ICONVIEW_H |
redbird | 0:1bf8f02b0770 | 132 | |
redbird | 0:1bf8f02b0770 | 133 | /*************************** End of file ****************************/ |