Andrew Reed / Mbed OS CITY1082-i2c_master_wifi_mqtt
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HEADER_Private.h Source File

HEADER_Private.h

00001 /*********************************************************************
00002 *                SEGGER Microcontroller 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 to  Cypress Semiconductor Corporation,
00019 whose registered  office is situated  at 198 Champion Ct. San Jose, CA 
00020 95134 USA  solely for the  purposes of creating  libraries for Cypress
00021 PSoC3 and  PSoC5 processor-based devices,  sublicensed and distributed
00022 under  the  terms  and  conditions  of  the  Cypress  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 Licensor:                 SEGGER Microcontroller Systems LLC
00030 Licensed to:              Cypress Semiconductor Corp, 198 Champion Ct., San Jose, CA 95134, USA
00031 Licensed SEGGER software: emWin
00032 License number:           GUI-00319
00033 License model:            Services and License Agreement, signed June 10th, 2009
00034 Licensed platform:        Any Cypress platform (Initial targets are: PSoC3, PSoC5)
00035 ----------------------------------------------------------------------
00036 Support and Update Agreement (SUA)
00037 SUA period:               2009-06-12 - 2022-07-27
00038 Contact to extend SUA:    sales@segger.com
00039 ----------------------------------------------------------------------
00040 File        : HEADER_Private.h
00041 Purpose     : Private HEADER include
00042 --------------------END-OF-HEADER-------------------------------------
00043 */
00044 
00045 #ifndef HEADER_PRIVATE_H
00046 #define HEADER_PRIVATE_H
00047 
00048 
00049 #include "HEADER.h"
00050 #include "WIDGET.h"
00051 #include "WM.h"
00052 #include "GUI_ARRAY.h"
00053 
00054 #if GUI_WINSUPPORT
00055 
00056 /*********************************************************************
00057 *
00058 *       Object definition
00059 *
00060 **********************************************************************
00061 */
00062 typedef struct {
00063   int     Width;
00064   I16     Align;
00065   WM_HMEM hDrawObj;
00066   char    acText[1];
00067 } HEADER_COLUMN;
00068 
00069 typedef struct {
00070   WIDGET_DRAW_ITEM_FUNC * pfDrawSkin;
00071 } HEADER_SKIN_PRIVATE;
00072 
00073 typedef struct {
00074   const GUI_FONT    * pFont;
00075   GUI_COLOR           BkColor;
00076   GUI_COLOR           TextColor;
00077   GUI_COLOR           ArrowColor;
00078   HEADER_SKIN_PRIVATE SkinPrivate;
00079 } HEADER_PROPS;
00080 
00081 typedef struct {
00082   WIDGET              Widget;
00083   HEADER_PROPS        Props;
00084   WIDGET_SKIN const * pWidgetSkin;
00085   GUI_ARRAY           Columns;
00086   int                 CapturePosX;
00087   int                 CaptureItem;
00088   int                 ScrollPos;
00089   int                 Sel;
00090   int                 DirIndicatorColumn;
00091   int                 DirIndicatorReverse;
00092   unsigned            Fixed;
00093   U8                  DragLimit;
00094 } HEADER_Obj;
00095 
00096 /*********************************************************************
00097 *
00098 *       Private (module internal) data
00099 *
00100 **********************************************************************
00101 */
00102 
00103 extern HEADER_PROPS        HEADER__DefaultProps;
00104 extern const GUI_CURSOR  * HEADER__pDefaultCursor;
00105 extern int                 HEADER__DefaultBorderH;
00106 extern int                 HEADER__DefaultBorderV;
00107 
00108 extern const WIDGET_SKIN   HEADER__SkinClassic;
00109 extern       WIDGET_SKIN   HEADER__Skin;
00110 
00111 extern WIDGET_SKIN const * HEADER__pSkinDefault;
00112 
00113 /*********************************************************************
00114 *
00115 *       Macros for internal use
00116 *
00117 **********************************************************************
00118 */
00119 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
00120   #define HEADER_INIT_ID(p)  (p->Widget.DebugId = HEADER_ID)
00121 #else
00122   #define HEADER_INIT_ID(p)
00123 #endif
00124 
00125 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
00126   HEADER_Obj * HEADER_LockH(HEADER_Handle h);
00127   #define HEADER_LOCK_H(h)   HEADER_LockH(h)
00128 #else
00129   #define HEADER_LOCK_H(h)   (HEADER_Obj *)GUI_LOCK_H(h)
00130 #endif
00131 
00132 void HEADER__SetDrawObj(HEADER_Handle hObj, unsigned Index, GUI_DRAW_HANDLE hDrawObj);
00133 
00134 
00135 #endif // GUI_WINSUPPORT
00136 #endif // Avoid multiple inclusion
00137 
00138 /*************************** End of file ****************************/