radio.h 1.1 KB

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