check.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /** \file check.h
  2. * \brief Header: WCheck widget
  3. */
  4. #ifndef MC__WIDGET_CHECK_H
  5. #define MC__WIDGET_CHECK_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. #define CHECK(x) ((WCheck *)(x))
  8. /*** enums ***************************************************************************************/
  9. /*** structures declarations (and typedefs of structures)*****************************************/
  10. typedef struct WCheck
  11. {
  12. Widget widget;
  13. gboolean state; /* check button state */
  14. hotkey_t text; /* text of check button */
  15. } WCheck;
  16. /*** global variables defined in .c file *********************************************************/
  17. /*** declarations of public functions ************************************************************/
  18. WCheck *check_new (int y, int x, gboolean state, const char *text);
  19. void check_set_text (WCheck * check, const char *text);
  20. /*** inline functions ****************************************************************************/
  21. #endif /* MC__WIDGET_CHECK_H */