diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-01 10:10:45 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-01 10:10:45 +0200 |
commit | de27a6c2db6f5fb97b3a5d07395a629c879abfbc (patch) | |
tree | 64a0d07071b4675bc8017ff43f540fec4b30ede0 /include/gwin | |
parent | b8b149591f3b68d5f925a60e81ebc6c78f190e99 (diff) | |
download | uGFX-de27a6c2db6f5fb97b3a5d07395a629c879abfbc.tar.gz uGFX-de27a6c2db6f5fb97b3a5d07395a629c879abfbc.tar.bz2 uGFX-de27a6c2db6f5fb97b3a5d07395a629c879abfbc.zip |
image widget implementation work in progress
Diffstat (limited to 'include/gwin')
-rw-r--r-- | include/gwin/gwin.h | 5 | ||||
-rw-r--r-- | include/gwin/image.h | 47 |
2 files changed, 52 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index 2a03c125..93cca142 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -746,10 +746,15 @@ extern "C" { #if GWIN_NEED_CONSOLE || defined(__DOXYGEN__) #include "gwin/console.h" #endif + #if GWIN_NEED_GRAPH || defined(__DOXYGEN__) #include "gwin/graph.h" #endif + #if GWIN_NEED_IMAGE || defined(__DOXYGEN__) + #include "gwin/image.h" + #endif + #endif /* GFX_USE_GWIN */ #endif /* _GWIN_H */ diff --git a/include/gwin/image.h b/include/gwin/image.h new file mode 100644 index 00000000..1626b15c --- /dev/null +++ b/include/gwin/image.h @@ -0,0 +1,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 +/** @} */ + |