aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-01 17:36:47 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-01 17:36:47 +1000
commitdd43a37b9b981bd01bb19d921dafa22d7126f927 (patch)
tree601c892428f9f969b6cef5733674acd406ab1042 /include
parentd45bba45e178940015eb31dc93e97eba9aebc93e (diff)
downloaduGFX-dd43a37b9b981bd01bb19d921dafa22d7126f927.tar.gz
uGFX-dd43a37b9b981bd01bb19d921dafa22d7126f927.tar.bz2
uGFX-dd43a37b9b981bd01bb19d921dafa22d7126f927.zip
Add gdispImageIsOpen() function.
Diffstat (limited to 'include')
-rw-r--r--include/gdisp/image.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/gdisp/image.h b/include/gdisp/image.h
index 696500a6..ea8a02d4 100644
--- a/include/gdisp/image.h
+++ b/include/gdisp/image.h
@@ -185,7 +185,7 @@ extern "C" {
gdispImageError gdispImageOpen(gdispImage *img);
/**
- * @brief Close an image and release any dynamicly allocated working storage.
+ * @brief Close an image and release any dynamically allocated working storage.
*
* @param[in] img The image structure
*
@@ -196,6 +196,19 @@ extern "C" {
void gdispImageClose(gdispImage *img);
/**
+ * @brief Is an image open.
+ * @return TRUE if the image is currently open.
+ *
+ * @param[in] img The image structure
+ *
+ * @note Be careful with calling this on an uninitialized image structure as the image
+ * will contain random data which may be interpreted as meaning the image
+ * is open. Clearing the Image structure to 0's will guarantee the image
+ * is seen as being closed.
+ */
+ bool_t gdispImageIsOpen(gdispImage *img);
+
+ /**
* @brief Set the background color of the image.
*
* @param[in] img The image structure