aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/gwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gwin/gwin.h')
-rw-r--r--include/gwin/gwin.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h
index e6b42b31..3d994d0a 100644
--- a/include/gwin/gwin.h
+++ b/include/gwin/gwin.h
@@ -166,6 +166,16 @@ void gwinDestroyWindow(GHandle gh);
/* Drawing Functions */
/**
+ * @brief Draw the window
+ * @note Redraws the Window if the GWIN object has a draw routine
+ *
+ * @param[in] gh The window handle
+ *
+ * @api
+ */
+void gwinDraw(GHandle gh);
+
+/**
* @brief Clear the window
* @note Uses the current background color to clear the window
*
@@ -488,6 +498,29 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
void gwinFillConvexPoly(GHandle gh, coord_t tx, coord_t ty, const point *pntarray, unsigned cnt);
#endif
+#if GDISP_NEED_IMAGE || defined(__DOXYGEN__)
+ /**
+ * @brief Draw the image
+ * @return GDISP_IMAGE_ERR_OK (0) on success or an error code.
+ *
+ * @param[in] gh The window handle
+ * @param[in] img The image structure
+ * @param[in] x,y The window location to draw the image
+ * @param[in] cx,cy The area on the screen to draw
+ * @param[in] sx,sy The image position to start drawing at
+ *
+ * @pre gdispImageOpen() must have returned successfully.
+ *
+ * @note If sx,sy + cx,cy is outside the image boundaries the area outside the image
+ * is simply not drawn.
+ * @note If @p gdispImageCache() has been called first for this frame, this routine will draw using a
+ * fast blit from the cached frame. If not, it reads the input and decodes it as it
+ * is drawing. This may be significantly slower than if the image has been cached (but
+ * uses a lot less RAM)
+ */
+ gdispImageError gwinImageDraw(GHandle gh, gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy);
+#endif
+
#ifdef __cplusplus
}
#endif
@@ -496,6 +529,7 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
#include "gwin/console.h"
#include "gwin/button.h"
#include "gwin/graph.h"
+#include "gwin/slider.h"
#endif /* GFX_USE_GWIN */