NXP
/
rt1050_emwin_gui_demo
RT1050 GUI demo using emWin library
Embed:
(wiki syntax)
Show/hide line numbers
ICONVIEW_Private.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 : ICONVIEW_Private.h 00040 Purpose : ICONVIEW private header file 00041 --------------------END-OF-HEADER------------------------------------- 00042 */ 00043 00044 #ifndef ICONVIEW_PRIVATE_H 00045 #define ICONVIEW_PRIVATE_H 00046 00047 #include "WM.h" 00048 #include "GUI_ARRAY.h" 00049 #include "ICONVIEW.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 * Types 00060 * 00061 ********************************************************************** 00062 */ 00063 typedef struct { 00064 const GUI_FONT * pFont; 00065 GUI_COLOR aBkColor[3]; 00066 GUI_COLOR aTextColor[3]; 00067 int FrameX, FrameY; 00068 int SpaceX, SpaceY; 00069 int TextAlign; 00070 int IconAlign; 00071 GUI_WRAPMODE WrapMode; 00072 } ICONVIEW_PROPS; 00073 00074 typedef struct { 00075 WIDGET Widget; 00076 WM_SCROLL_STATE ScrollStateV; 00077 WM_SCROLL_STATE ScrollStateH; 00078 ICONVIEW_PROPS Props; 00079 GUI_ARRAY ItemArray; 00080 int xSizeItems; 00081 int ySizeItems; 00082 int Sel; 00083 U16 Flags; 00084 } ICONVIEW_OBJ; 00085 00086 typedef void tDrawImage (const void * pData, GUI_GET_DATA_FUNC * pfGetData, int xPos, int yPos); 00087 typedef void tDrawText (ICONVIEW_OBJ * pObj, GUI_RECT * pRect, const char * s); 00088 typedef void tGetImageSizes(const void * pData, GUI_GET_DATA_FUNC * pfGetData, int * xSize, int * ySize); 00089 00090 typedef struct { 00091 tDrawImage * pfDrawImage; 00092 tDrawText * pfDrawText; 00093 tGetImageSizes * pfGetImageSizes; 00094 GUI_GET_DATA_FUNC * pfGetData; 00095 const void * pData; 00096 U32 UserData; 00097 int SizeOfData; 00098 char acText[1]; 00099 } ICONVIEW_ITEM; 00100 00101 /********************************************************************* 00102 * 00103 * Function pointer(s) 00104 * 00105 ********************************************************************** 00106 */ 00107 extern void (* ICONVIEW__pfDrawStreamedBitmap)(const void * p, int x, int y); 00108 00109 /********************************************************************* 00110 * 00111 * Macros for internal use 00112 * 00113 ********************************************************************** 00114 */ 00115 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 00116 #define ICONVIEW_INIT_ID(p) (p->Widget.DebugId = ICONVIEW_ID) 00117 #else 00118 #define ICONVIEW_INIT_ID(p) 00119 #endif 00120 00121 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 00122 ICONVIEW_OBJ * ICONVIEW_LockH(ICONVIEW_Handle h); 00123 #define ICONVIEW_LOCK_H(h) ICONVIEW_LockH(h) 00124 #else 00125 #define ICONVIEW_LOCK_H(h) (ICONVIEW_OBJ *)GUI_LOCK_H(h) 00126 #endif 00127 00128 /********************************************************************* 00129 * 00130 * Private functions 00131 * 00132 ********************************************************************** 00133 */ 00134 void ICONVIEW__DrawText (ICONVIEW_OBJ * pObj, GUI_RECT * pRect, const char * pText); 00135 void ICONVIEW__ManageAutoScroll(ICONVIEW_Handle hObj); 00136 00137 #if defined(__cplusplus) 00138 } 00139 #endif 00140 00141 #endif // GUI_WINSUPPORT 00142 #endif // ICONVIEW_H 00143 00144 /*************************** End of file ****************************/
Generated on Tue Jul 12 2022 19:43:36 by 1.7.2