Nuvoton
/
NuMaker-mbed-emWin-example
NuMaker emWin HMI
Embed:
(wiki syntax)
Show/hide line numbers
BUTTON_Private.h
00001 /********************************************************************* 00002 * SEGGER Software GmbH * 00003 * Solutions for real time microcontroller applications * 00004 ********************************************************************** 00005 * * 00006 * (c) 1996 - 2018 SEGGER Microcontroller GmbH * 00007 * * 00008 * Internet: www.segger.com Support: support@segger.com * 00009 * * 00010 ********************************************************************** 00011 00012 ** emWin V5.48 - 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 by SEGGER Software GmbH to Nuvoton Technology Corporationat the address: No. 4, Creation Rd. III, Hsinchu Science Park, Taiwan 00019 for the purposes of creating libraries for its 00020 Arm Cortex-M and Arm9 32-bit microcontrollers, commercialized and distributed by Nuvoton Technology Corporation 00021 under the terms and conditions of an End User 00022 License Agreement supplied with the libraries. 00023 Full source code is available at: www.segger.com 00024 00025 We appreciate your understanding and fairness. 00026 ---------------------------------------------------------------------- 00027 Licensing information 00028 Licensor: SEGGER Software GmbH 00029 Licensed to: Nuvoton Technology Corporation, No. 4, Creation Rd. III, Hsinchu Science Park, 30077 Hsinchu City, Taiwan 00030 Licensed SEGGER software: emWin 00031 License number: GUI-00735 00032 License model: emWin License Agreement, signed February 27, 2018 00033 Licensed platform: Cortex-M and ARM9 32-bit series microcontroller designed and manufactured by or for Nuvoton Technology Corporation 00034 ---------------------------------------------------------------------- 00035 Support and Update Agreement (SUA) 00036 SUA period: 2018-03-26 - 2019-03-27 00037 Contact to extend SUA: sales@segger.com 00038 ---------------------------------------------------------------------- 00039 File : BUTTON_Private.h 00040 Purpose : BUTTON private header file 00041 --------------------END-OF-HEADER------------------------------------- 00042 */ 00043 00044 #ifndef BUTTON_PRIVATE_H 00045 #define BUTTON_PRIVATE_H 00046 00047 #include "WM.h" 00048 #include "BUTTON.h" 00049 00050 #if GUI_WINSUPPORT 00051 00052 /********************************************************************* 00053 * 00054 * Defines 00055 * 00056 ********************************************************************** 00057 */ 00058 #ifndef BUTTON_3D_MOVE_X 00059 #define BUTTON_3D_MOVE_X 1 00060 #endif 00061 #ifndef BUTTON_3D_MOVE_Y 00062 #define BUTTON_3D_MOVE_Y 1 00063 #endif 00064 00065 /********************************************************************* 00066 * 00067 * Object definition 00068 * 00069 ********************************************************************** 00070 */ 00071 typedef struct { 00072 WIDGET_DRAW_ITEM_FUNC * pfDrawSkin; 00073 } BUTTON_SKIN_PRIVATE; 00074 00075 typedef struct { 00076 GUI_COLOR aBkColor[3]; 00077 GUI_COLOR aTextColor[3]; 00078 GUI_COLOR FocusColor; 00079 GUI_COLOR FrameColor; 00080 const GUI_FONT * pFont; 00081 BUTTON_SKIN_PRIVATE SkinPrivate; 00082 I16 Align; 00083 I16 xPosText, yPosText; 00084 } BUTTON_PROPS; 00085 00086 typedef struct { 00087 WIDGET Widget; 00088 BUTTON_PROPS Props; 00089 WIDGET_SKIN const * pWidgetSkin; 00090 WM_HMEM hpText; 00091 WM_HMEM ahDrawObj[3]; 00092 } BUTTON_Obj; 00093 00094 /********************************************************************* 00095 * 00096 * Macros for internal use 00097 * 00098 ********************************************************************** 00099 */ 00100 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 00101 #define BUTTON_INIT_ID(p) (p->Widget.DebugId = BUTTON_ID) 00102 #else 00103 #define BUTTON_INIT_ID(p) 00104 #endif 00105 00106 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL 00107 BUTTON_Obj * BUTTON_LockH(BUTTON_Handle h); 00108 #define BUTTON_LOCK_H(h) BUTTON_LockH(h) 00109 #else 00110 #define BUTTON_LOCK_H(h) (BUTTON_Obj *)GUI_LOCK_H(h) 00111 #endif 00112 00113 /********************************************************************* 00114 * 00115 * Public data (internal defaults) 00116 * 00117 ********************************************************************** 00118 */ 00119 extern BUTTON_PROPS BUTTON__DefaultProps; 00120 00121 extern const WIDGET_SKIN BUTTON__SkinClassic; 00122 extern WIDGET_SKIN BUTTON__Skin; 00123 00124 extern WIDGET_SKIN const * BUTTON__pSkinDefault; 00125 00126 /********************************************************************* 00127 * 00128 * Private functions 00129 * 00130 ********************************************************************** 00131 */ 00132 void BUTTON__SetDrawObj(BUTTON_Handle hObj, int Index, GUI_DRAW_HANDLE hDrawObj); 00133 00134 00135 #endif /* GUI_WINSUPPORT */ 00136 #endif /* BUTTON_H */ 00137 00138 /*************************** End of file ****************************/
Generated on Mon Mar 4 2024 07:48:13 by 1.7.2