NuMaker emWin HMI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TEXT_Private.h Source File

TEXT_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        : TEXT.h
00040 Purpose     : TEXT include
00041 --------------------END-OF-HEADER-------------------------------------
00042 */
00043 
00044 #ifndef TEXT_PRIVATE_H
00045 #define TEXT_PRIVATE_H
00046 
00047 #include "TEXT.h"
00048 #include "GUI_Private.h"
00049 
00050 #if GUI_WINSUPPORT
00051 
00052 /*********************************************************************
00053 *
00054 *       Object definition
00055 *
00056 **********************************************************************
00057 */
00058 typedef struct {
00059   const GUI_FONT * pFont;
00060   GUI_COLOR TextColor;
00061   GUI_COLOR BkColor;
00062   GUI_WRAPMODE WrapMode;
00063 } TEXT_PROPS;
00064 
00065 typedef struct {
00066   WIDGET Widget;
00067   TEXT_PROPS Props;
00068   WM_HMEM hpText;
00069   I16 Align;
00070 } TEXT_OBJ;
00071 
00072 /*********************************************************************
00073 *
00074 *       Macros for internal use
00075 *
00076 **********************************************************************
00077 */
00078 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
00079   #define TEXT_INIT_ID(p) p->Widget.DebugId = TEXT_ID
00080 #else
00081   #define TEXT_INIT_ID(p)
00082 #endif
00083 
00084 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
00085   TEXT_OBJ * TEXT_LockH(TEXT_Handle h);
00086   #define TEXT_LOCK_H(h)   TEXT_LockH(h)
00087 #else
00088   #define TEXT_LOCK_H(h)   (TEXT_OBJ *)GUI_LOCK_H(h)
00089 #endif
00090 
00091 /*********************************************************************
00092 *
00093 *       Module internal data
00094 *
00095 **********************************************************************
00096 */
00097 extern TEXT_PROPS TEXT__DefaultProps;
00098 
00099 #endif   /* if GUI_WINSUPPORT */
00100 #endif   /* TEXT_PRIVATE_H */
00101 
00102 /*************************** End of file ****************************/