2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/** \file check.h
|
|
|
|
* \brief Header: WCheck widget
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MC__WIDGET_CHECK_H
|
|
|
|
#define MC__WIDGET_CHECK_H
|
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
2012-10-11 12:25:07 +04:00
|
|
|
#define CHECK(x) ((WCheck *)(x))
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
typedef struct WCheck
|
|
|
|
{
|
|
|
|
Widget widget;
|
2016-11-25 09:32:04 +03:00
|
|
|
gboolean state; /* check button state */
|
2010-11-22 17:15:28 +03:00
|
|
|
hotkey_t text; /* text of check button */
|
2010-11-12 11:03:57 +03:00
|
|
|
} WCheck;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2016-11-25 09:32:04 +03:00
|
|
|
WCheck *check_new (int y, int x, gboolean state, const char *text);
|
2019-12-14 16:53:11 +03:00
|
|
|
void check_set_text (WCheck * check, const char *text);
|
2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* MC__WIDGET_CHECK_H */
|