2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/** \file radio.h
|
|
|
|
* \brief Header: WRadio widget
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MC__WIDGET_RADIO_H
|
|
|
|
#define MC__WIDGET_RADIO_H
|
|
|
|
|
2020-03-14 11:17:58 +03:00
|
|
|
#include "lib/keybind.h" /* global_keymap_t */
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
2012-10-11 12:25:07 +04:00
|
|
|
#define RADIO(x) ((WRadio *)(x))
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
typedef struct WRadio
|
|
|
|
{
|
|
|
|
Widget widget;
|
2016-11-24 11:21:26 +03:00
|
|
|
int pos;
|
|
|
|
int sel;
|
2010-11-12 11:03:57 +03:00
|
|
|
int count; /* number of members */
|
|
|
|
hotkey_t *texts; /* texts of labels */
|
|
|
|
} WRadio;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
2020-03-14 11:17:58 +03:00
|
|
|
extern const global_keymap_t *radio_map;
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
|
|
|
WRadio *radio_new (int y, int x, int count, const char **text);
|
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* MC__WIDGET_RADIO_H */
|