Display demo widget application.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | widget_context |
Widget application context. More... | |
Enumerations | |
enum | command_id { DUMMY_ID, ICON_BUTTON_1_ID, ICON_BUTTON_2_ID, ICON_BUTTON_3_ID, BUTTON_PREV_ID, BUTTON_NEXT_ID, BUTTON_SELECT_ID, DUMMY_ID, SLIDER_ID, BUTTON_ID, DUMMY_ID, SLIDER_ID, CHECK_BOX_ID, RADIO_BUTTON_1_ID, RADIO_BUTTON_2_ID, BUTTON_ID } |
Command event IDs. More... | |
Functions | |
bool | app_widget_launch (void) |
Setup widget demo. More... | |
static bool | widget_frame_command_handler (struct wtk_basic_frame *frame, win_command_t command_data) |
Frame handler for the application. More... | |
Variables | |
static struct widget_context * | widget_ctx |
Statically allocated context pointer. More... | |
|
static |
Frame handler for the application.
Handles all command events from the widgets in the application frame.
frame | Pointer to the application frame |
command_data | Command event ID |
References BUTTON_ID, widget_context::plot, widget_context::slider, win_redraw(), wtk_basic_frame_get_custom_data(), wtk_plot_add_value(), wtk_plot_as_child(), and wtk_slider_get_value().