radio.h 1.1 KB

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