diff libui/ui/theme.h @ 156:c3a40062acc2

misc: create more generic startup function, closes #2500
author David Demelier <markand@malikania.fr>
date Fri, 16 Oct 2020 13:54:31 +0200
parents 1008a796a9e7
children 6992085d47fd
line wrap: on
line diff
--- a/libui/ui/theme.h	Fri Oct 16 13:15:04 2020 +0200
+++ b/libui/ui/theme.h	Fri Oct 16 13:54:31 2020 +0200
@@ -107,8 +107,10 @@
 /**
  * Initialize the theming system.
  *
- * \return false on errors
- * \warning This function must be called before any other theme functions.
+ * This function is automatically called from \ref ui_init and thus not
+ * necessary from user.
+ *
+ * \return False on error.
  */
 bool
 theme_init(void);
@@ -178,7 +180,8 @@
 theme_draw_checkbox(struct theme *t, const struct checkbox *cb);
 
 /**
- * Close associated resources.
+ * This function is automatically called from \ref ui_finish and thus not
+ * necessary from user.
  */
 void
 theme_finish(void);