diff libui/ui/checkbox.h @ 151:b19d076856d2

ui: cleanup theme module, closes #2498
author David Demelier <markand@malikania.fr>
date Thu, 15 Oct 2020 14:01:24 +0200
parents c577c15df07f
children 1008a796a9e7
line wrap: on
line diff
--- a/libui/ui/checkbox.h	Thu Oct 15 13:13:38 2020 +0200
+++ b/libui/ui/checkbox.h	Thu Oct 15 14:01:24 2020 +0200
@@ -36,12 +36,22 @@
 	int y;                  /*!< (+) Position in y. */
 	unsigned int w;         /*!< (+) Width. */
 	unsigned int h;         /*!< (+) Height. */
-	const char *label;      /*!< (+&) Text to show. */
 	bool checked;           /*!< (+) Is activated? */
 	struct theme *theme;    /*!< (+&?) Theme to use. */
 };
 
 /**
+ * Default drawing function.
+ *
+ * \pre t != NULL
+ * \pre cb != NULL
+ * \param t the theme
+ * \param cb the checkbox
+ */
+void
+checkbox_draw_default(struct theme *t, const struct checkbox *cb);
+
+/**
  * Draw the checkbox.
  *
  * \pre cb != NULL