summaryrefslogtreecommitdiffstats
path: root/lib/widget/check.h
blob: 9840a2401e396c75e41e52e2add0a57fca8d8f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** \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);
void check_set_text (WCheck * check, const char *text);

/*** inline functions ****************************************************************************/

#endif /* MC__WIDGET_CHECK_H */