tar: avoid need for base64_init and extra table.
[midnight-commander.git] / lib / widget / radio.h
blob5b52382cbfe62148387bb436b3461512192b4e5f
2 /** \file radio.h
3 * \brief Header: WRadio widget
4 */
6 #ifndef MC__WIDGET_RADIO_H
7 #define MC__WIDGET_RADIO_H
9 #include "lib/keybind.h" /* global_keymap_t */
11 /*** typedefs(not structures) and defined constants **********************************************/
13 #define RADIO(x) ((WRadio *)(x))
15 /*** enums ***************************************************************************************/
17 /*** structures declarations (and typedefs of structures)*****************************************/
19 typedef struct WRadio
21 Widget widget;
22 int pos;
23 int sel;
24 int count; /* number of members */
25 hotkey_t *texts; /* texts of labels */
26 } WRadio;
28 /*** global variables defined in .c file *********************************************************/
30 extern const global_keymap_t *radio_map;
32 /*** declarations of public functions ************************************************************/
34 WRadio *radio_new (int y, int x, int count, const char **text);
36 /*** inline functions ****************************************************************************/
38 #endif /* MC__WIDGET_RADIO_H */