STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
IMAGE.h
Go to the documentation of this file.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * Solutions for real time microcontroller applications *
4 **********************************************************************
5 * *
6 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * Internet: www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 
12 ** emWin V5.28 - Graphical user interface for embedded applications **
13 All Intellectual Property rights in the Software belongs to SEGGER.
14 emWin is protected by international copyright laws. Knowledge of the
15 source code may not be used to write a similar product. This file may
16 only be used in accordance with the following terms:
17 
18 The software has been licensed to STMicroelectronics International
19 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
20 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
21 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
22 troller products commercialized by Licensee only, sublicensed and dis_
23 tributed under the terms and conditions of the End User License Agree_
24 ment supplied by STMicroelectronics International N.V.
25 Full source code is available at: www.segger.com
26 
27 We appreciate your understanding and fairness.
28 ----------------------------------------------------------------------
29 File : IMAGE.h
30 Purpose : Image include
31 --------------------END-OF-HEADER-------------------------------------
32 */
33 
34 #ifndef IMAGE_H
35 #define IMAGE_H
36 
37 #include "WM.h"
38 #include "DIALOG_Intern.h"
39 #include "WIDGET.h"
40 
41 #if GUI_WINSUPPORT
42 
43 #if defined(__cplusplus)
44  extern "C" { // Make sure we have C-declarations in C++ programs
45 #endif
46 
47 /*********************************************************************
48 *
49 * Defines
50 *
51 **********************************************************************
52 */
53 #define IMAGE_CF_MEMDEV (1 << 0) // Widget uses an internal memory device which speeds up use of compressed images (GIF, JPEG, PNG)
54 #define IMAGE_CF_TILE (1 << 1) // Uses tiling to fill up the whole area of the widget
55 #define IMAGE_CF_ALPHA (1 << 2) // Needs to be set if alpha blending is required (PNG)
56 #define IMAGE_CF_ATTACHED (1 << 3) // Widget size is fixed to the parent border
57 #define IMAGE_CF_AUTOSIZE (1 << 4) // Widget size is taken from the attached image
58 
59 /*********************************************************************
60 *
61 * Types
62 *
63 **********************************************************************
64 */
65 typedef WM_HMEM IMAGE_Handle;
66 
67 /*********************************************************************
68 *
69 * Public functions
70 *
71 **********************************************************************
72 */
73 IMAGE_Handle IMAGE_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id);
74 IMAGE_Handle IMAGE_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumExtraBytes);
75 IMAGE_Handle IMAGE_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
76 
77 void IMAGE_Callback(WM_MESSAGE * pMsg);
78 
79 /*********************************************************************
80 *
81 * Member functions
82 *
83 **********************************************************************
84 */
85 void IMAGE_SetBitmap(IMAGE_Handle hWin, const GUI_BITMAP * pBitmap);
86 void IMAGE_SetBMP (IMAGE_Handle hObj, const void * pData, U32 FileSize);
87 void IMAGE_SetBMPEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
88 void IMAGE_SetDTA (IMAGE_Handle hObj, const void * pData, U32 FileSize);
89 void IMAGE_SetDTAEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
90 void IMAGE_SetGIF (IMAGE_Handle hObj, const void * pData, U32 FileSize);
91 void IMAGE_SetGIFEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
92 void IMAGE_SetJPEG (IMAGE_Handle hObj, const void * pData, U32 FileSize);
93 void IMAGE_SetJPEGEx(IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
94 void IMAGE_SetPNG (IMAGE_Handle hObj, const void * pData, U32 FileSize);
95 void IMAGE_SetPNGEx (IMAGE_Handle hObj, GUI_GET_DATA_FUNC * pfGetData, void * pVoid);
96 
97 #if defined(__cplusplus)
98  }
99 #endif
100 
101 #endif // GUI_WINSUPPORT
102 #endif // IMAGE_H
103 
104 /*************************** End of file ****************************/
#define U32
Definition: Global.h:50
int GUI_GET_DATA_FUNC(void *p, const U8 **ppData, unsigned NumBytes, U32 Off)
Definition: GUI.h:497