Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : TEXT.h
redbird 0:1bf8f02b0770 29 Purpose : TEXT include
redbird 0:1bf8f02b0770 30 --------------------END-OF-HEADER-------------------------------------
redbird 0:1bf8f02b0770 31 */
redbird 0:1bf8f02b0770 32
redbird 0:1bf8f02b0770 33 #ifndef TEXT_H
redbird 0:1bf8f02b0770 34 #define TEXT_H
redbird 0:1bf8f02b0770 35
redbird 0:1bf8f02b0770 36 #include "WM.h"
redbird 0:1bf8f02b0770 37 #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */
redbird 0:1bf8f02b0770 38 #include "WIDGET.h"
redbird 0:1bf8f02b0770 39 #include "GUI_Debug.h"
redbird 0:1bf8f02b0770 40
redbird 0:1bf8f02b0770 41 #if GUI_WINSUPPORT
redbird 0:1bf8f02b0770 42
redbird 0:1bf8f02b0770 43 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 44 extern "C" { /* Make sure we have C-declarations in C++ programs */
redbird 0:1bf8f02b0770 45 #endif
redbird 0:1bf8f02b0770 46
redbird 0:1bf8f02b0770 47 /************************************************************
redbird 0:1bf8f02b0770 48 *
redbird 0:1bf8f02b0770 49 * #defines
redbird 0:1bf8f02b0770 50 *
redbird 0:1bf8f02b0770 51 *************************************************************
redbird 0:1bf8f02b0770 52 */
redbird 0:1bf8f02b0770 53
redbird 0:1bf8f02b0770 54 /************************************************************
redbird 0:1bf8f02b0770 55 *
redbird 0:1bf8f02b0770 56 * Create / Status flags
redbird 0:1bf8f02b0770 57 */
redbird 0:1bf8f02b0770 58 #define TEXT_CF_LEFT GUI_TA_LEFT
redbird 0:1bf8f02b0770 59 #define TEXT_CF_RIGHT GUI_TA_RIGHT
redbird 0:1bf8f02b0770 60 #define TEXT_CF_HCENTER GUI_TA_HCENTER
redbird 0:1bf8f02b0770 61
redbird 0:1bf8f02b0770 62 #define TEXT_CF_VCENTER GUI_TA_VCENTER
redbird 0:1bf8f02b0770 63 #define TEXT_CF_TOP GUI_TA_TOP
redbird 0:1bf8f02b0770 64 #define TEXT_CF_BOTTOM GUI_TA_BOTTOM
redbird 0:1bf8f02b0770 65
redbird 0:1bf8f02b0770 66
redbird 0:1bf8f02b0770 67 /*********************************************************************
redbird 0:1bf8f02b0770 68 *
redbird 0:1bf8f02b0770 69 * Public Types
redbird 0:1bf8f02b0770 70 *
redbird 0:1bf8f02b0770 71 **********************************************************************
redbird 0:1bf8f02b0770 72
redbird 0:1bf8f02b0770 73 */
redbird 0:1bf8f02b0770 74 typedef WM_HMEM TEXT_Handle;
redbird 0:1bf8f02b0770 75
redbird 0:1bf8f02b0770 76 /*********************************************************************
redbird 0:1bf8f02b0770 77 *
redbird 0:1bf8f02b0770 78 * Standard member functions
redbird 0:1bf8f02b0770 79 *
redbird 0:1bf8f02b0770 80 **********************************************************************
redbird 0:1bf8f02b0770 81 */
redbird 0:1bf8f02b0770 82
redbird 0:1bf8f02b0770 83 #define TEXT_EnableMemdev(hObj) WM_EnableMemdev(hObj)
redbird 0:1bf8f02b0770 84 #define TEXT_DisableMemdev(hObj) WM_DisableMemdev(hObj)
redbird 0:1bf8f02b0770 85 #define TEXT_Delete(hObj) WM_DeleteWindow(hObj)
redbird 0:1bf8f02b0770 86 #define TEXT_Paint(hObj) WM_Paint(hObj)
redbird 0:1bf8f02b0770 87 #define TEXT_Invalidate(hObj) WM_InvalidateWindow(hObj)
redbird 0:1bf8f02b0770 88
redbird 0:1bf8f02b0770 89 /*********************************************************************
redbird 0:1bf8f02b0770 90 *
redbird 0:1bf8f02b0770 91 * Create functions
redbird 0:1bf8f02b0770 92 *
redbird 0:1bf8f02b0770 93 **********************************************************************
redbird 0:1bf8f02b0770 94 */
redbird 0:1bf8f02b0770 95 TEXT_Handle TEXT_Create (int x0, int y0, int xSize, int ySize, int Id, int Flags, const char * s, int Align);
redbird 0:1bf8f02b0770 96 TEXT_Handle TEXT_CreateAsChild (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int Id, int Flags, const char * s, int Align);
redbird 0:1bf8f02b0770 97 TEXT_Handle TEXT_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const char * pText);
redbird 0:1bf8f02b0770 98 TEXT_Handle TEXT_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const char * pText, int NumExtraBytes);
redbird 0:1bf8f02b0770 99 TEXT_Handle TEXT_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
redbird 0:1bf8f02b0770 100
redbird 0:1bf8f02b0770 101 /*********************************************************************
redbird 0:1bf8f02b0770 102 *
redbird 0:1bf8f02b0770 103 * The callback ...
redbird 0:1bf8f02b0770 104 *
redbird 0:1bf8f02b0770 105 * Do not call it directly ! It is only to be used from within an
redbird 0:1bf8f02b0770 106 * overwritten callback.
redbird 0:1bf8f02b0770 107 */
redbird 0:1bf8f02b0770 108 void TEXT_Callback(WM_MESSAGE * pMsg);
redbird 0:1bf8f02b0770 109
redbird 0:1bf8f02b0770 110 /*********************************************************************
redbird 0:1bf8f02b0770 111 *
redbird 0:1bf8f02b0770 112 * Member functions
redbird 0:1bf8f02b0770 113 *
redbird 0:1bf8f02b0770 114 **********************************************************************
redbird 0:1bf8f02b0770 115 */
redbird 0:1bf8f02b0770 116
redbird 0:1bf8f02b0770 117 /* Methods changing properties */
redbird 0:1bf8f02b0770 118
redbird 0:1bf8f02b0770 119 int TEXT_GetNumLines (TEXT_Handle hObj);
redbird 0:1bf8f02b0770 120 int TEXT_GetText (TEXT_Handle hObj, char * pDest, U32 BufferSize);
redbird 0:1bf8f02b0770 121 int TEXT_GetUserData (TEXT_Handle hObj, void * pDest, int NumBytes);
redbird 0:1bf8f02b0770 122 void TEXT_SetBkColor (TEXT_Handle hObj, GUI_COLOR Color); /* Obsolete. Left in GUI for compatibility to older versions */
redbird 0:1bf8f02b0770 123 void TEXT_SetFont (TEXT_Handle hObj, const GUI_FONT * pFont);
redbird 0:1bf8f02b0770 124 int TEXT_SetText (TEXT_Handle hObj, const char * s);
redbird 0:1bf8f02b0770 125 void TEXT_SetTextAlign(TEXT_Handle hObj, int Align);
redbird 0:1bf8f02b0770 126 void TEXT_SetTextColor(TEXT_Handle hObj, GUI_COLOR Color);
redbird 0:1bf8f02b0770 127 int TEXT_SetUserData (TEXT_Handle hObj, const void * pSrc, int NumBytes);
redbird 0:1bf8f02b0770 128 void TEXT_SetWrapMode (TEXT_Handle hObj, GUI_WRAPMODE WrapMode);
redbird 0:1bf8f02b0770 129
redbird 0:1bf8f02b0770 130 /*********************************************************************
redbird 0:1bf8f02b0770 131 *
redbird 0:1bf8f02b0770 132 * Global functions
redbird 0:1bf8f02b0770 133 *
redbird 0:1bf8f02b0770 134 **********************************************************************
redbird 0:1bf8f02b0770 135 */
redbird 0:1bf8f02b0770 136
redbird 0:1bf8f02b0770 137 void TEXT_SetDefaultFont (const GUI_FONT * pFont);
redbird 0:1bf8f02b0770 138 const GUI_FONT * TEXT_GetDefaultFont (void);
redbird 0:1bf8f02b0770 139 void TEXT_SetDefaultTextColor(GUI_COLOR Color);
redbird 0:1bf8f02b0770 140 GUI_WRAPMODE TEXT_SetDefaultWrapMode (GUI_WRAPMODE WrapMode);
redbird 0:1bf8f02b0770 141
redbird 0:1bf8f02b0770 142 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 143 }
redbird 0:1bf8f02b0770 144 #endif
redbird 0:1bf8f02b0770 145
redbird 0:1bf8f02b0770 146 #endif // GUI_WINSUPPORT
redbird 0:1bf8f02b0770 147 #endif // TEXT_H
redbird 0:1bf8f02b0770 148
redbird 0:1bf8f02b0770 149 /*************************** End of file ****************************/