radio.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. typedef struct WRadio
  10. {
  11. Widget widget;
  12. unsigned int state; /* radio button state */
  13. int pos, sel;
  14. int count; /* number of members */
  15. hotkey_t *texts; /* texts of labels */
  16. } WRadio;
  17. /*** global variables defined in .c file *********************************************************/
  18. /*** declarations of public functions ************************************************************/
  19. WRadio *radio_new (int y, int x, int count, const char **text);
  20. /*** inline functions ****************************************************************************/
  21. #endif /* MC__WIDGET_RADIO_H */