RT1050 GUI demo using emWin library

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WM_GUI.h Source File

WM_GUI.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        : WM_GUI.h
00040 Purpose     : Windows manager include for low level GUI routines
00041 ----------------------------------------------------------------------
00042 */
00043 
00044 #ifndef WM_GUI_H            /* Make sure we only include it once */
00045 #define WM_GUI_H
00046 
00047 #if defined(__cplusplus)
00048 extern "C" {     /* Make sure we have C-declarations in C++ programs */
00049 #endif
00050 
00051 int       WM__InitIVRSearch(const GUI_RECT* pMaxRect);
00052 int       WM__GetNextIVR   (void);
00053 int       WM__GetOrgX_AA(void);
00054 int       WM__GetOrgY_AA(void);
00055 
00056 #define WM_ITERATE_START(pRect)                   \
00057   {                                               \
00058     if (WM__InitIVRSearch(pRect))                 \
00059       do {
00060 
00061 #define WM_ITERATE_END()                          \
00062     } while (WM__GetNextIVR());                   \
00063   }
00064 
00065 #define WM_ADDORGX(x)       (x += GUI_pContext->xOff)
00066 #define WM_ADDORGY(y)       (y += GUI_pContext->yOff)
00067 #define WM_ADDORG(x0,y0)    WM_ADDORGX(x0); WM_ADDORGY(y0)
00068 #define WM_ADDORGX_AA(x)    (x += WM__GetOrgX_AA())
00069 #define WM_ADDORGY_AA(y)    (y += WM__GetOrgY_AA())
00070 #define WM_ADDORG_AA(x0,y0) WM_ADDORGX_AA(x0); WM_ADDORGY_AA(y0)
00071 #define WM_SUBORGX(x)       (x -= GUI_pContext->xOff)
00072 #define WM_SUBORGY(y)       (y -= GUI_pContext->yOff)
00073 #define WM_SUBORG(x0,y0)    WM_SUBORGX(x0); WM_SUBORGY(y0)
00074 
00075 #if defined(__cplusplus)
00076   }
00077 #endif
00078 
00079 
00080 #endif   /* Avoid multiple inclusion */
00081 
00082 /*************************** End of file ****************************/