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 : IMAGE.h
redbird 0:1bf8f02b0770 29 Purpose : Image include
redbird 0:1bf8f02b0770 30 --------------------END-OF-HEADER-------------------------------------
redbird 0:1bf8f02b0770 31 */
redbird 0:1bf8f02b0770 32
redbird 0:1bf8f02b0770 33 #ifndef IMAGE_H
redbird 0:1bf8f02b0770 34 #define IMAGE_H
redbird 0:1bf8f02b0770 35
redbird 0:1bf8f02b0770 36 #include "WM.h"
redbird 0:1bf8f02b0770 37 #include "DIALOG_Intern.h"
redbird 0:1bf8f02b0770 38 #include "WIDGET.h"
redbird 0:1bf8f02b0770 39
redbird 0:1bf8f02b0770 40 #if GUI_WINSUPPORT
redbird 0:1bf8f02b0770 41
redbird 0:1bf8f02b0770 42 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 43 extern "C" { // Make sure we have C-declarations in C++ programs
redbird 0:1bf8f02b0770 44 #endif
redbird 0:1bf8f02b0770 45
redbird 0:1bf8f02b0770 46 /*********************************************************************
redbird 0:1bf8f02b0770 47 *
redbird 0:1bf8f02b0770 48 * Defines
redbird 0:1bf8f02b0770 49 *
redbird 0:1bf8f02b0770 50 **********************************************************************
redbird 0:1bf8f02b0770 51 */
redbird 0:1bf8f02b0770 52 #define IMAGE_CF_MEMDEV (1 << 0) // Widget uses an internally memory device which speeds up use of compressed images (GIF, JPEG, PNG)
redbird 0:1bf8f02b0770 53 #define IMAGE_CF_TILE (1 << 1) // Uses tiling to fill up the whole area of the widget
redbird 0:1bf8f02b0770 54 #define IMAGE_CF_ALPHA (1 << 2) // Needs to be set if alpha blending is required (PNG)
redbird 0:1bf8f02b0770 55 #define IMAGE_CF_ATTACHED (1 << 3) // Widget size is fixed to the parent border
redbird 0:1bf8f02b0770 56 #define IMAGE_CF_AUTOSIZE (1 << 4) // Widget size is taken from the attached image
redbird 0:1bf8f02b0770 57
redbird 0:1bf8f02b0770 58 /*********************************************************************
redbird 0:1bf8f02b0770 59 *
redbird 0:1bf8f02b0770 60 * Types
redbird 0:1bf8f02b0770 61 *
redbird 0:1bf8f02b0770 62 **********************************************************************
redbird 0:1bf8f02b0770 63 */
redbird 0:1bf8f02b0770 64 typedef WM_HMEM IMAGE_Handle;
redbird 0:1bf8f02b0770 65
redbird 0:1bf8f02b0770 66 /*********************************************************************
redbird 0:1bf8f02b0770 67 *
redbird 0:1bf8f02b0770 68 * Public functions
redbird 0:1bf8f02b0770 69 *
redbird 0:1bf8f02b0770 70 **********************************************************************
redbird 0:1bf8f02b0770 71 */
redbird 0:1bf8f02b0770 72 IMAGE_Handle IMAGE_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id);
redbird 0:1bf8f02b0770 73 IMAGE_Handle IMAGE_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes);
redbird 0:1bf8f02b0770 74 IMAGE_Handle IMAGE_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
redbird 0:1bf8f02b0770 75
redbird 0:1bf8f02b0770 76 void IMAGE_Callback(WM_MESSAGE * pMsg);
redbird 0:1bf8f02b0770 77
redbird 0:1bf8f02b0770 78 /*********************************************************************
redbird 0:1bf8f02b0770 79 *
redbird 0:1bf8f02b0770 80 * Member functions
redbird 0:1bf8f02b0770 81 *
redbird 0:1bf8f02b0770 82 **********************************************************************
redbird 0:1bf8f02b0770 83 */
redbird 0:1bf8f02b0770 84 void IMAGE_SetBitmap(IMAGE_Handle hWin, const GUI_BITMAP * pBitmap);
redbird 0:1bf8f02b0770 85 void IMAGE_SetBMP (IMAGE_Handle hObj, const void * pData, U32 FileSize);
redbird 0:1bf8f02b0770 86 void IMAGE_SetBMPEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
redbird 0:1bf8f02b0770 87 void IMAGE_SetDTA (IMAGE_Handle hObj, const void * pData, U32 FileSize);
redbird 0:1bf8f02b0770 88 void IMAGE_SetDTAEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
redbird 0:1bf8f02b0770 89 void IMAGE_SetGIF (IMAGE_Handle hObj, const void * pData, U32 FileSize);
redbird 0:1bf8f02b0770 90 void IMAGE_SetGIFEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
redbird 0:1bf8f02b0770 91 void IMAGE_SetJPEG (IMAGE_Handle hObj, const void * pData, U32 FileSize);
redbird 0:1bf8f02b0770 92 void IMAGE_SetJPEGEx(IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
redbird 0:1bf8f02b0770 93 void IMAGE_SetPNG (IMAGE_Handle hObj, const void * pData, U32 FileSize);
redbird 0:1bf8f02b0770 94 void IMAGE_SetPNGEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
redbird 0:1bf8f02b0770 95
redbird 0:1bf8f02b0770 96 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 97 }
redbird 0:1bf8f02b0770 98 #endif
redbird 0:1bf8f02b0770 99
redbird 0:1bf8f02b0770 100 #endif // GUI_WINSUPPORT
redbird 0:1bf8f02b0770 101 #endif // IMAGE_H
redbird 0:1bf8f02b0770 102
redbird 0:1bf8f02b0770 103 /*************************** End of file ****************************/