Button widget implementation.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | wtk_button |
This is the button control struct. More... | |
enum | wtk_button_state { WTK_BUTTON_NORMAL, WTK_BUTTON_PRESSED } |
Valid states for button, relevant to pointer and keyboard operations. More... | |
struct win_window * | wtk_button_as_child (struct wtk_button *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_button_get_command (struct wtk_button *button) |
This function returns the window command of the specified button, as set when the widget was created. More... | |
static bool | wtk_button_handler (struct win_window *win, enum win_event_type type, void const *data) |
This function is the window event handler for button widgets. More... | |
void | wtk_button_size_hint (struct win_point *size, const char *caption) |
Get minimum widget size. More... | |
struct wtk_button * | wtk_button_create (struct win_window *parent, struct win_area const *area, char const *caption, win_command_t command_data) |
This function creates a new button widget. More... | |