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
|
|
|
#define C_BOOL 0x0001
|
|
|
|
#define C_CHANGE 0x0002
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
typedef struct WCheck
|
|
|
|
{
|
|
|
|
Widget widget;
|
2010-11-22 17:15:28 +03:00
|
|
|
unsigned int state; /* check button state */
|
|
|
|
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 ************************************************************/
|
|
|
|
|
|
|
|
WCheck *check_new (int y, int x, int state, const char *text);
|
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* MC__WIDGET_CHECK_H */
|