aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gcontainer.h
diff options
context:
space:
mode:
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
}