aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/image.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-04 00:20:32 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-04 00:20:32 +1000
commit09a359813f0abe8f99c32dadfa1ac2c68356ddfd (patch)
treece6bfc9861baac4ed2de9e84995f307b8fd7cffa /include/gwin/image.h
parent3f80e1f89dbeec06dd97a914d6851ad4596b1743 (diff)
downloaduGFX-09a359813f0abe8f99c32dadfa1ac2c68356ddfd.tar.gz
uGFX-09a359813f0abe8f99c32dadfa1ac2c68356ddfd.tar.bz2
uGFX-09a359813f0abe8f99c32dadfa1ac2c68356ddfd.zip
Label, Image and Window Manager changes
Diffstat (limited to 'include/gwin/image.h')
-rw-r--r--include/gwin/image.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/include/gwin/image.h b/include/gwin/image.h
index 95a26687..d32e9a0c 100644
--- a/include/gwin/image.h
+++ b/include/gwin/image.h
@@ -32,9 +32,7 @@
// An image window
typedef struct GImageWidget_t {
GWindowObject g;
-
- gdispImage *image;
- color_t bgColor;
+ gdispImage image;
} GImageWidget;
#ifdef __cplusplus
@@ -50,11 +48,10 @@ extern "C" {
* @param[in] pInit The initialization parameters to use.
*
* @note The default background color gets set to the current default one.
- * @note An image widget does not save the current drawing state. It is not automatically redrawn if the window
- * is moved or its visibility state is changed.
+ * @note An image window knows how to redraw.
*
* @api
- */
+ */
GHandle gwinImageCreate(GImageWidget *widget, GWindowInit *pInit);
/**
@@ -98,7 +95,7 @@ bool_t gwinImageOpenMemory(GHandle gh, const void* memory);
#endif
/**
- * @brief Cache an image.
+ * @brief Cache the image.
* @details Decodes and caches the current frame into RAM.
*
* param[in] gh The widget (must be an image widget)
@@ -109,20 +106,6 @@ bool_t gwinImageOpenMemory(GHandle gh, const void* memory);
*/
gdispImageError gwinImageCache(GHandle gh);
-/**
- * @brief Set the background color of an image widget.
- * @details Transparent images need a background color. If no background color has been set, the current default
- * on is used.
- *
- * @param[in] gh The widget (must be an image widget)
- * @param[in] bgColor The background color to be set
- *
- * @api
- */
-void gwinImageSetBgColor(GHandle gh, color_t bgColor);
-
-void gwinImageDraw(GHandle gh);
-
#ifdef __cplusplus
}
#endif