aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/image.h
blob: 1626b15c9eab033ae0ea86c969a70a36fbd82568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * This file is subject to the terms of the GFX License. If a copy of
 * the license was not distributed with this file, you can obtain one at:
 *
 *              http://chibios-gfx.com/license.html
 */

/**
 * @file	include/gwin/image.h
 * @brief	GWIN image widget header file.
 *
 * @defgroup Image Image
 * @ingroup GWIN
 *
 * @details		GWIN allos it to create an image widget. The widget
 *				takes no user input.
 *
 * @pre			GFX_USE_GWIN must be set to TRUE in your gfxconf.h
 * @pre			GWIN_NEED_IMAGE must be set to TRUE in your gfxconf.h
 *
 * @{
 */

#ifndef _GWIN_IMAGE_H
#define _GWIN_IMAGE_H

// This file is included within "gwin/gwin.h"

// An image window
typedef struct GImageWidget_t {
	GWindowObject	g;
} GImageWidget;

#ifdef __cplusplus
extern "C" {
#endif

GHandle gwinImageCreate(GImageWidget *widget, GWindowInit *pInit);
void gwinImageDisplay(GImageWidget *widget, gdispImage *image);

#ifdef __cplusplus
}
#endif

#endif // _GWIN_IMAGE_H
/** @} */