Merge branch '4600_filter_segfault'
[midnight-commander.git] / lib / widget / check.h
blob9840a2401e396c75e41e52e2add0a57fca8d8f23
2 /** \file check.h
3 * \brief Header: WCheck widget
4 */
6 #ifndef MC__WIDGET_CHECK_H
7 #define MC__WIDGET_CHECK_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 #define CHECK(x) ((WCheck *)(x))
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 typedef struct WCheck
19 Widget widget;
20 gboolean state; /* check button state */
21 hotkey_t text; /* text of check button */
22 } WCheck;
24 /*** global variables defined in .c file *********************************************************/
26 /*** declarations of public functions ************************************************************/
28 WCheck *check_new (int y, int x, gboolean state, const char *text);
29 void check_set_text (WCheck * check, const char *text);
31 /*** inline functions ****************************************************************************/
33 #endif /* MC__WIDGET_CHECK_H */