check.h 1.0 KB

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