aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gcontainer.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-05-11 20:11:16 +1000
committerinmarket <andrewh@inmarket.com.au>2014-05-11 20:11:16 +1000
commit19dc64269c0826f5f552fc59fbf5249444e384f3 (patch)
tree81ef8df28fa6b5852fdf98b0d84622848eaa07e7 /src/gwin/gcontainer.h
parent8c5275583a452e46ddecb82b6ea888feafab926b (diff)
downloaduGFX-19dc64269c0826f5f552fc59fbf5249444e384f3.tar.gz
uGFX-19dc64269c0826f5f552fc59fbf5249444e384f3.tar.bz2
uGFX-19dc64269c0826f5f552fc59fbf5249444e384f3.zip
Container and Frame updates.
New api's gwinGetInnerWidth() and gwinGetInnerHeight()
Diffstat (limited to 'src/gwin/gcontainer.h')
-rw-r--r--src/gwin/gcontainer.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/gwin/gcontainer.h b/src/gwin/gcontainer.h
index 8159797c..4a7b5632 100644
--- a/src/gwin/gcontainer.h
+++ b/src/gwin/gcontainer.h
@@ -81,6 +81,36 @@ extern "C" {
GHandle gwinGetSibling(GHandle gh);
/**
+ * @brief Get the inner width of a container window
+ *
+ * @return The inner width of a container window or zero if this is not a container
+ *
+ * @param[in] gh The window
+ *
+ * @api
+ */
+ coord_t gwinGetInnerWidth(GHandle gh);
+
+ /**
+ * @brief Get the inner height of a container window
+ *
+ * @return The inner height of a container window or zero if this is not a container
+ *
+ * @param[in] gh The window
+ *
+ * @api
+ */
+ coord_t gwinGetInnerHeight(GHandle gh);
+
+
+ /**
+ * @brief Flags for gwinContainerCreate()
+ * @{
+ */
+ #define GWIN_CONTAINER_BORDER 0x00000001
+ /* @} */
+
+ /**
* @brief Create a simple container.
* @return NULL if there is no resultant drawing area, otherwise a window handle.
*
@@ -90,8 +120,8 @@ extern "C" {
*
* @api
*/
- GHandle gwinGContainerCreate(GDisplay *g, GContainerObject *gw, const GWidgetInit *pInit);
- #define gwinContainerCreate(gc, pInit) gwinGContainerCreate(GDISP, gc, pInit)
+ GHandle gwinGContainerCreate(GDisplay *g, GContainerObject *gw, const GWidgetInit *pInit, uint32_t flags);
+ #define gwinContainerCreate(gc, pInit, flags) gwinGContainerCreate(GDISP, gc, pInit, flags)
#ifdef __cplusplus
}