NXP
/
rt1050_emwin_gui_demo
RT1050 GUI demo using emWin library
Embed:
(wiki syntax)
Show/hide line numbers
LISTWHEEL.h
00001 /********************************************************************* 00002 * SEGGER Microcontroller GmbH & Co. KG * 00003 * Solutions for real time microcontroller applications * 00004 ********************************************************************** 00005 * * 00006 * (c) 1996 - 2016 SEGGER Microcontroller GmbH & Co. KG * 00007 * * 00008 * Internet: www.segger.com Support: support@segger.com * 00009 * * 00010 ********************************************************************** 00011 00012 ** emWin V5.38 - Graphical user interface for embedded applications ** 00013 All Intellectual Property rights in the Software belongs to SEGGER. 00014 emWin is protected by international copyright laws. Knowledge of the 00015 source code may not be used to write a similar product. This file may 00016 only be used in accordance with the following terms: 00017 00018 The software has been licensed to NXP Semiconductors USA, Inc. whose 00019 registered office is situated at 411 E. Plumeria Drive, San Jose, 00020 CA 95134, USA solely for the purposes of creating libraries for 00021 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and 00022 distributed under the terms and conditions of the NXP End User License 00023 Agreement. 00024 Full source code is available at: www.segger.com 00025 00026 We appreciate your understanding and fairness. 00027 ---------------------------------------------------------------------- 00028 Licensing information 00029 00030 Licensor: SEGGER Microcontroller Systems LLC 00031 Licensed to: NXP Semiconductors, 1109 McKay Dr, M/S 76, San Jose, CA 95131, USA 00032 Licensed SEGGER software: emWin 00033 License number: GUI-00186 00034 License model: emWin License Agreement, dated August 20th 2011 00035 Licensed product: - 00036 Licensed platform: NXP's ARM 7/9, Cortex-M0,M3,M4 00037 Licensed number of seats: - 00038 ---------------------------------------------------------------------- 00039 File : LISTWHEEL.h 00040 Purpose : LISTWHEEL widget include 00041 --------------------END-OF-HEADER------------------------------------- 00042 */ 00043 00044 #ifndef LISTWHEEL_H 00045 #define LISTWHEEL_H 00046 00047 #include "WM.h" 00048 #include "DIALOG_Intern.h" 00049 #include "WIDGET.h" 00050 00051 #if GUI_WINSUPPORT 00052 00053 #if defined(__cplusplus) 00054 extern "C" { // Make sure we have C-declarations in C++ programs 00055 #endif 00056 00057 /********************************************************************* 00058 * 00059 * Defines 00060 * 00061 ********************************************************************** 00062 */ 00063 #define LISTWHEEL_CI_UNSEL 0 00064 #define LISTWHEEL_CI_SEL 1 00065 00066 /********************************************************************* 00067 * 00068 * Types 00069 * 00070 ********************************************************************** 00071 */ 00072 typedef WM_HMEM LISTWHEEL_Handle; 00073 00074 /********************************************************************* 00075 * 00076 * Standard member functions 00077 * 00078 ********************************************************************** 00079 */ 00080 /********************************************************************* 00081 * 00082 * Create functions 00083 * 00084 ********************************************************************** 00085 */ 00086 LISTWHEEL_Handle LISTWHEEL_Create (const GUI_ConstString * ppText, int x0, int y0, int xSize, int ySize, int Flags); 00087 LISTWHEEL_Handle LISTWHEEL_CreateAsChild (const GUI_ConstString * ppText, WM_HWIN hWinParent, int x0, int y0, int xSize, int ySize, int Flags); 00088 LISTWHEEL_Handle LISTWHEEL_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); 00089 LISTWHEEL_Handle LISTWHEEL_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, 00090 int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText); 00091 LISTWHEEL_Handle LISTWHEEL_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, 00092 int WinFlags, int ExFlags, int Id, const GUI_ConstString * ppText, int NumExtraBytes); 00093 00094 /********************************************************************* 00095 * 00096 * The callback ... 00097 * 00098 * Do not call it directly ! It is only to be used from within an 00099 * overwritten callback. 00100 */ 00101 void LISTWHEEL_Callback(WM_MESSAGE * pMsg); 00102 00103 /********************************************************************* 00104 * 00105 * Member functions 00106 * 00107 ********************************************************************** 00108 */ 00109 void LISTWHEEL_AddString (LISTWHEEL_Handle hObj, const char * s); 00110 void * LISTWHEEL_GetItemData (LISTWHEEL_Handle hObj, unsigned Index); /* not to be documented */ 00111 void LISTWHEEL_GetItemText (LISTWHEEL_Handle hObj, unsigned Index, char * pBuffer, int MaxSize); 00112 int LISTWHEEL_GetItemFromPos (LISTWHEEL_Handle hObj, int yPos); 00113 int LISTWHEEL_GetLBorder (LISTWHEEL_Handle hObj); 00114 unsigned LISTWHEEL_GetLineHeight (LISTWHEEL_Handle hObj); 00115 int LISTWHEEL_GetNumItems (LISTWHEEL_Handle hObj); 00116 int LISTWHEEL_GetPos (LISTWHEEL_Handle hObj); 00117 int LISTWHEEL_GetRBorder (LISTWHEEL_Handle hObj); 00118 int LISTWHEEL_GetSel (LISTWHEEL_Handle hObj); 00119 int LISTWHEEL_GetSnapPosition(LISTWHEEL_Handle hObj); 00120 int LISTWHEEL_GetTextAlign (LISTWHEEL_Handle hObj); 00121 int LISTWHEEL_GetUserData (LISTWHEEL_Handle hObj, void * pDest, int NumBytes); 00122 int LISTWHEEL_IsMoving (LISTWHEEL_Handle hObj); 00123 void LISTWHEEL_MoveToPos (LISTWHEEL_Handle hObj, unsigned int Index); 00124 int LISTWHEEL_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); 00125 void LISTWHEEL_SetBkColor (LISTWHEEL_Handle hObj, unsigned int Index, GUI_COLOR Color); 00126 void LISTWHEEL_SetDeceleration(LISTWHEEL_Handle hObj, unsigned Deceleration); 00127 void LISTWHEEL_SetFont (LISTWHEEL_Handle hObj, const GUI_FONT * pFont); 00128 void LISTWHEEL_SetItemData (LISTWHEEL_Handle hObj, unsigned Index, void * pData); /* not to be documented */ 00129 void LISTWHEEL_SetLBorder (LISTWHEEL_Handle hObj, unsigned BorderSize); 00130 void LISTWHEEL_SetLineHeight (LISTWHEEL_Handle hObj, unsigned LineHeight); 00131 void LISTWHEEL_SetOwnerDraw (LISTWHEEL_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfOwnerDraw); 00132 void LISTWHEEL_SetPos (LISTWHEEL_Handle hObj, unsigned int Index); 00133 void LISTWHEEL_SetRBorder (LISTWHEEL_Handle hObj, unsigned BorderSize); 00134 void LISTWHEEL_SetSel (LISTWHEEL_Handle hObj, int Sel); 00135 void LISTWHEEL_SetSnapPosition(LISTWHEEL_Handle hObj, int SnapPosition); 00136 void LISTWHEEL_SetText (LISTWHEEL_Handle hObj, const GUI_ConstString * ppText); 00137 void LISTWHEEL_SetTextAlign (LISTWHEEL_Handle hObj, int Align); 00138 void LISTWHEEL_SetTextColor (LISTWHEEL_Handle hObj, unsigned int Index, GUI_COLOR Color); 00139 void LISTWHEEL_SetTimerPeriod (LISTWHEEL_Handle hObj, GUI_TIMER_TIME TimerPeriod); 00140 int LISTWHEEL_SetUserData (LISTWHEEL_Handle hObj, const void * pSrc, int NumBytes); 00141 void LISTWHEEL_SetVelocity (LISTWHEEL_Handle hObj, int Velocity); 00142 00143 const GUI_FONT * LISTWHEEL_GetFont(LISTWHEEL_Handle hObj); 00144 00145 #if defined(__cplusplus) 00146 } 00147 #endif 00148 00149 #endif // GUI_WINSUPPORT 00150 #endif // LISTWHEEL_H 00151 00152 /*************************** End of file ****************************/
Generated on Tue Jul 12 2022 19:43:37 by 1.7.2