Headers for emWin lib
Dependents: DISCO-F746NG_rtos_test
emWin_header/LISTWHEEL.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 : LISTWHEEL.h |
redbird | 0:1bf8f02b0770 | 29 | Purpose : LISTWHEEL widget include |
redbird | 0:1bf8f02b0770 | 30 | --------------------END-OF-HEADER------------------------------------- |
redbird | 0:1bf8f02b0770 | 31 | */ |
redbird | 0:1bf8f02b0770 | 32 | |
redbird | 0:1bf8f02b0770 | 33 | #ifndef LISTWHEEL_H |
redbird | 0:1bf8f02b0770 | 34 | #define LISTWHEEL_H |
redbird | 0:1bf8f02b0770 | 35 | |
redbird | 0:1bf8f02b0770 | 36 | #include "WM.h" |
redbird | 0:1bf8f02b0770 | 37 | #include "DIALOG_Intern.h" |
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 | #define LISTWHEEL_CI_UNSEL 0 |
redbird | 0:1bf8f02b0770 | 53 | #define LISTWHEEL_CI_SEL 1 |
redbird | 0:1bf8f02b0770 | 54 | |
redbird | 0:1bf8f02b0770 | 55 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 56 | * |
redbird | 0:1bf8f02b0770 | 57 | * Types |
redbird | 0:1bf8f02b0770 | 58 | * |
redbird | 0:1bf8f02b0770 | 59 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 60 | */ |
redbird | 0:1bf8f02b0770 | 61 | typedef WM_HMEM LISTWHEEL_Handle; |
redbird | 0:1bf8f02b0770 | 62 | |
redbird | 0:1bf8f02b0770 | 63 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 64 | * |
redbird | 0:1bf8f02b0770 | 65 | * Standard member functions |
redbird | 0:1bf8f02b0770 | 66 | * |
redbird | 0:1bf8f02b0770 | 67 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 68 | */ |
redbird | 0:1bf8f02b0770 | 69 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 70 | * |
redbird | 0:1bf8f02b0770 | 71 | * Create functions |
redbird | 0:1bf8f02b0770 | 72 | * |
redbird | 0:1bf8f02b0770 | 73 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 74 | */ |
redbird | 0:1bf8f02b0770 | 75 | LISTWHEEL_Handle LISTWHEEL_Create (const GUI_ConstString * ppText, int x0, int y0, int xSize, int ySize, int Flags); |
redbird | 0:1bf8f02b0770 | 76 | LISTWHEEL_Handle LISTWHEEL_CreateAsChild (const GUI_ConstString * ppText, WM_HWIN hWinParent, int x0, int y0, int xSize, int ySize, int Flags); |
redbird | 0:1bf8f02b0770 | 77 | LISTWHEEL_Handle LISTWHEEL_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 78 | LISTWHEEL_Handle LISTWHEEL_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, |
redbird | 0:1bf8f02b0770 | 79 | int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText); |
redbird | 0:1bf8f02b0770 | 80 | LISTWHEEL_Handle LISTWHEEL_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, |
redbird | 0:1bf8f02b0770 | 81 | int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText, int NumExtraBytes); |
redbird | 0:1bf8f02b0770 | 82 | |
redbird | 0:1bf8f02b0770 | 83 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 84 | * |
redbird | 0:1bf8f02b0770 | 85 | * The callback ... |
redbird | 0:1bf8f02b0770 | 86 | * |
redbird | 0:1bf8f02b0770 | 87 | * Do not call it directly ! It is only to be used from within an |
redbird | 0:1bf8f02b0770 | 88 | * overwritten callback. |
redbird | 0:1bf8f02b0770 | 89 | */ |
redbird | 0:1bf8f02b0770 | 90 | void LISTWHEEL_Callback(WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 91 | |
redbird | 0:1bf8f02b0770 | 92 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 93 | * |
redbird | 0:1bf8f02b0770 | 94 | * Member functions |
redbird | 0:1bf8f02b0770 | 95 | * |
redbird | 0:1bf8f02b0770 | 96 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 97 | */ |
redbird | 0:1bf8f02b0770 | 98 | void LISTWHEEL_AddString (LISTWHEEL_Handle hObj, const char * s); |
redbird | 0:1bf8f02b0770 | 99 | void * LISTWHEEL_GetItemData (LISTWHEEL_Handle hObj, unsigned Index); /* not to be documented */ |
redbird | 0:1bf8f02b0770 | 100 | void LISTWHEEL_GetItemText (LISTWHEEL_Handle hObj, unsigned Index, char * pBuffer, int MaxSize); |
redbird | 0:1bf8f02b0770 | 101 | int LISTWHEEL_GetItemFromPos (LISTWHEEL_Handle hObj, int yPos); |
redbird | 0:1bf8f02b0770 | 102 | int LISTWHEEL_GetLBorder (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 103 | unsigned LISTWHEEL_GetLineHeight (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 104 | int LISTWHEEL_GetNumItems (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 105 | int LISTWHEEL_GetPos (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 106 | int LISTWHEEL_GetRBorder (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 107 | int LISTWHEEL_GetSel (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 108 | int LISTWHEEL_GetSnapPosition(LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 109 | int LISTWHEEL_GetTextAlign (LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 110 | int LISTWHEEL_GetUserData (LISTWHEEL_Handle hObj, void * pDest, int NumBytes); |
redbird | 0:1bf8f02b0770 | 111 | void LISTWHEEL_MoveToPos (LISTWHEEL_Handle hObj, unsigned int Index); |
redbird | 0:1bf8f02b0770 | 112 | int LISTWHEEL_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); |
redbird | 0:1bf8f02b0770 | 113 | void LISTWHEEL_SetBkColor (LISTWHEEL_Handle hObj, unsigned int Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 114 | void LISTWHEEL_SetDeceleration(LISTWHEEL_Handle hObj, unsigned Deceleration); |
redbird | 0:1bf8f02b0770 | 115 | void LISTWHEEL_SetFont (LISTWHEEL_Handle hObj, const GUI_FONT * pFont); |
redbird | 0:1bf8f02b0770 | 116 | void LISTWHEEL_SetItemData (LISTWHEEL_Handle hObj, unsigned Index, void * pData); /* not to be documented */ |
redbird | 0:1bf8f02b0770 | 117 | void LISTWHEEL_SetLBorder (LISTWHEEL_Handle hObj, unsigned BorderSize); |
redbird | 0:1bf8f02b0770 | 118 | void LISTWHEEL_SetLineHeight (LISTWHEEL_Handle hObj, unsigned LineHeight); |
redbird | 0:1bf8f02b0770 | 119 | void LISTWHEEL_SetOwnerDraw (LISTWHEEL_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfOwnerDraw); |
redbird | 0:1bf8f02b0770 | 120 | void LISTWHEEL_SetPos (LISTWHEEL_Handle hObj, unsigned int Index); |
redbird | 0:1bf8f02b0770 | 121 | void LISTWHEEL_SetRBorder (LISTWHEEL_Handle hObj, unsigned BorderSize); |
redbird | 0:1bf8f02b0770 | 122 | void LISTWHEEL_SetSel (LISTWHEEL_Handle hObj, int Sel); |
redbird | 0:1bf8f02b0770 | 123 | void LISTWHEEL_SetSnapPosition(LISTWHEEL_Handle hObj, int SnapPosition); |
redbird | 0:1bf8f02b0770 | 124 | void LISTWHEEL_SetText (LISTWHEEL_Handle hObj, const GUI_ConstString * ppText); |
redbird | 0:1bf8f02b0770 | 125 | void LISTWHEEL_SetTextAlign (LISTWHEEL_Handle hObj, int Align); |
redbird | 0:1bf8f02b0770 | 126 | void LISTWHEEL_SetTextColor (LISTWHEEL_Handle hObj, unsigned int Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 127 | void LISTWHEEL_SetTimerPeriod (LISTWHEEL_Handle hObj, GUI_TIMER_TIME TimerPeriod); |
redbird | 0:1bf8f02b0770 | 128 | int LISTWHEEL_SetUserData (LISTWHEEL_Handle hObj, const void * pSrc, int NumBytes); |
redbird | 0:1bf8f02b0770 | 129 | void LISTWHEEL_SetVelocity (LISTWHEEL_Handle hObj, int Velocity); |
redbird | 0:1bf8f02b0770 | 130 | |
redbird | 0:1bf8f02b0770 | 131 | const GUI_FONT * LISTWHEEL_GetFont(LISTWHEEL_Handle hObj); |
redbird | 0:1bf8f02b0770 | 132 | |
redbird | 0:1bf8f02b0770 | 133 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 134 | } |
redbird | 0:1bf8f02b0770 | 135 | #endif |
redbird | 0:1bf8f02b0770 | 136 | |
redbird | 0:1bf8f02b0770 | 137 | #endif // GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 138 | #endif // LISTWHEEL_H |
redbird | 0:1bf8f02b0770 | 139 | |
redbird | 0:1bf8f02b0770 | 140 | /*************************** End of file ****************************/ |