1 2 /** \file radio.h 3 * \brief Header: WRadio widget 4 */ 5 6 #ifndef MC__WIDGET_RADIO_H 7 #define MC__WIDGET_RADIO_H 8 9 #include "lib/keybind.h" /* global_keymap_t */ 10 11 /*** typedefs(not structures) and defined constants **********************************************/ 12 13 #define RADIO(x) ((WRadio *)(x)) 14 15 /*** enums ***************************************************************************************/ 16 17 /*** structures declarations (and typedefs of structures)*****************************************/ 18 19 typedef struct WRadio 20 { 21 Widget widget; 22 int pos; 23 int sel; 24 int count; /* number of members */ 25 hotkey_t *texts; /* texts of labels */ 26 } WRadio; 27 28 /*** global variables defined in .c file *********************************************************/ 29 30 extern const global_keymap_t *radio_map; 31 32 /*** declarations of public functions ************************************************************/ 33 34 WRadio *radio_new (int y, int x, int count, const char **text); 35 36 /*** inline functions ****************************************************************************/ 37 38 #endif /* MC__WIDGET_RADIO_H */