Check box widget implementation.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | wtk_check_box |
This is the check box control struct. More... | |
enum | wtk_check_box_state { WTK_CHECKBOX_NORMAL, WTK_CHECKBOX_PRESSED } |
Valid states for check box, relevant to pointer and keyboard operations. More... | |
struct win_window * | wtk_check_box_as_child (struct wtk_check_box *check_box) |
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_check_box_get_command (struct wtk_check_box *check_box) |
This function returns the window command of the specified check box, as set when the widget was created. More... | |
void | wtk_check_box_toggle (struct wtk_check_box *check_box) |
This function toggles the value of a check box. More... | |
void | wtk_check_box_set (struct wtk_check_box *check_box, bool selected) |
This function sets the value of the check box according to the "selected" parameter. More... | |
bool | wtk_check_box_is_selected (struct wtk_check_box const *check_box) |
This function returns true if the check box is selected. More... | |
static bool | wtk_check_box_handler (struct win_window *win, enum win_event_type type, void const *data) |
This function is the window event handler for check box widgets. More... | |
void | wtk_check_box_size_hint (struct win_point *size, const char *caption) |
Get minimum widget size. More... | |
struct wtk_check_box * | wtk_check_box_create (struct win_window *parent, struct win_area const *area, char const *caption, bool selected, win_command_t command) |
This function creates a new check box widget. More... | |