aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_checkbox.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2016-02-17 20:00:23 +1000
committerinmarket <andrewh@inmarket.com.au>2016-02-17 20:00:23 +1000
commitaddbf47bdbc0c0ca9b217c9001b31e747c57ff95 (patch)
tree09d3ce25c79352a025857133258e33e3ac6e62db /src/gwin/gwin_checkbox.h
parent0f0964da99e5774504f6f9ee570813075194303d (diff)
downloaduGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.tar.gz
uGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.tar.bz2
uGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.zip
Move GWIN widget internal flags into the public header so that all the state flags are available for custom draw routines.
Diffstat (limited to 'src/gwin/gwin_checkbox.h')
-rw-r--r--src/gwin/gwin_checkbox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gwin/gwin_checkbox.h b/src/gwin/gwin_checkbox.h
index 10401624..48807239 100644
--- a/src/gwin/gwin_checkbox.h
+++ b/src/gwin/gwin_checkbox.h
@@ -45,6 +45,14 @@ typedef struct GEventGWinCheckbox {
bool_t isChecked; // Is the checkbox currently checked or unchecked?
} GEventGWinCheckbox;
+/**
+ * @brief The internal checkbox flags
+ * @note Used only for writing a custom draw routine.
+ * @{
+ */
+#define GCHECKBOX_FLG_CHECKED (GWIN_FIRST_CONTROL_FLAG<<0)
+/** @} */
+
/* A Checkbox window */
typedef struct GCheckboxObject {
GWidgetObject w;