Radio button widget implementation.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | wtk_radio_button |
This is the radio button control struct. More... | |
struct | wtk_radio_group |
This is the radio button group control struct. More... | |
enum | wtk_radio_button_state { WTK_RADIOBUTTON_NORMAL, WTK_RADIOBUTTON_PRESSED } |
Valid states for radio button, relevant to pointer and keyboard operations. More... | |
struct win_window * | wtk_radio_button_as_child (struct wtk_radio_button *radio_button) |
This function returns a reference to the window that should be used when managing the widget, such as move, resize, destroy and reparenting. More... | |
win_command_t | wtk_radio_button_get_command (struct wtk_radio_button *radio_button) |
This function returns the window command of the specified radio button, as set when the widget was created. More... | |
void | wtk_radio_button_select (struct wtk_radio_button *radio_button) |
This function sets this radio button to be the single radio button selected within its group. More... | |
bool | wtk_radio_button_is_selected (struct wtk_radio_button const *radio_button) |
This function returns true if the radio button is the one currently selected within its radio button group. More... | |
static bool | wtk_radio_button_handler (struct win_window *win, enum win_event_type type, void const *data) |
This function is the window event handler for radio button widgets. More... | |
void | wtk_radio_button_size_hint (struct win_point *size, const char *caption) |
Get minimum widget size. More... | |
struct wtk_radio_button * | wtk_radio_button_create (struct win_window *parent, struct win_area const *area, char const *caption, bool selected, struct wtk_radio_group *group, win_command_t command) |
This function creates a new radio button widget. More... | |
struct wtk_radio_button * | wtk_radio_group_get_selected (struct wtk_radio_group *group) |
This function retrieves a pointer to the currently selected radio button in a radio group. More... | |
struct wtk_radio_group * | wtk_radio_group_create (void) |
This function creates a new radio button group, allocating required memory and properly initializing the object. More... | |