mirror of
https://github.com/MidnightCommander/mc-old.git
synced 2026-02-02 11:11:36 -08:00
* Reformat tests with magic comma * Remove macro guards causing unstable formatting ``` find . -type file -name '*.[ch]' | xargs sed -i '' -E 's|# *endif.+//.+$|#endif|g' ``` Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
34 lines
1.0 KiB
C
34 lines
1.0 KiB
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);
|
|
void check_set_text (WCheck *check, const char *text);
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
#endif
|