From f9eed6036d7f28ef1ab8f8d3feec6a05e0572405 Mon Sep 17 00:00:00 2001 From: inmarket Date: Thu, 4 Jul 2013 00:59:12 +1000 Subject: Make the enabled state available to all GWIN's - not just widgets. --- include/gwin/gwidget.h | 13 ------------- include/gwin/gwin.h | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/gwin/gwidget.h b/include/gwin/gwidget.h index 817f2b0d..a2cf7337 100644 --- a/include/gwin/gwidget.h +++ b/include/gwin/gwidget.h @@ -83,19 +83,6 @@ typedef struct GWidgetInit { extern "C" { #endif -/** - * @brief Enable or disable a widget - * - * @param[in] gh The widget handle - * @param[in] enabled Enable or disable the widget - * - * @note The widget is automatically redrawn. - * @note Non-widgets will ignore this call. - * - * @api - */ -void gwinSetEnabled(GHandle gh, bool_t enabled); - /** * @brief Set the text of a widget. * diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index ba9e1e1a..dd8abb0f 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -297,6 +297,29 @@ extern "C" { */ bool_t gwinGetVisible(GHandle gh); + /** + * @brief Enable or disable a window + * + * @param[in] gh The window handle + * @param[in] enabled Enable or disable the window + * + * @note The window is automatically redrawn if it + * supports self-redrawing. + * + * @api + */ + void gwinSetEnabled(GHandle gh, bool_t enabled); + + /** + * @brief Gets the enabled state of a window + * @return TRUE if enabled + * + * @param[in] gh The window + * + * @api + */ + bool_t gwinGetEnabled(GHandle gh); + /** * @brief Move a window * -- cgit v1.2.3