mc/lib/widget/check.h
Andrew Borodin 5e2f4a8069 WCheck: change type of 'state' from int to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00

33 lines
1023 B
C

/** \file check.h
* \brief Header: WCheck widget
*/
#ifndef MC__WIDGET_CHECK_H
#define MC__WIDGET_CHECK_H
/*** typedefs(not structures) and defined constants **********************************************/
#define CHECK(x) ((WCheck *)(x))
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
typedef struct WCheck
{
Widget widget;
gboolean state; /* check button state */
hotkey_t text; /* text of check button */
} WCheck;
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
WCheck *check_new (int y, int x, gboolean state, const char *text);
/*** inline functions ****************************************************************************/
#endif /* MC__WIDGET_CHECK_H */