check.h 1.0 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 C_BOOL 0x0001
  8. #define C_CHANGE 0x0002
  9. /*** enums ***************************************************************************************/
  10. /*** structures declarations (and typedefs of structures)*****************************************/
  11. typedef struct WCheck
  12. {
  13. Widget widget;
  14. unsigned int state; /* check button state */
  15. hotkey_t text; /* text of check button */
  16. } WCheck;
  17. /*** global variables defined in .c file *********************************************************/
  18. /*** declarations of public functions ************************************************************/
  19. WCheck *check_new (int y, int x, int state, const char *text);
  20. /*** inline functions ****************************************************************************/
  21. #endif /* MC__WIDGET_CHECK_H */