Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
App_widget_group

Data Structures

struct  widget_context
 Widget application context. More...
 

Enumerations

enum  command_id {
  DUMMY_ID,
  SLIDER_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_contextwidget_ctx
 Statically allocated context pointer. More...
 

enum command_id

Command event IDs.

Note
The first entry in this enum is zero-valued, and therefore reserved for widgets that should not issue command events.
See Also
Widget toolkit
Enumerator
DUMMY_ID 

Unused command event ID.

SLIDER_ID 
BUTTON_ID 

static bool widget_frame_command_handler ( struct wtk_basic_frame frame,
win_command_t  command_data 
)
static

Frame handler for the application.

Handles all command events from the widgets in the application frame.

See Also
wtk_basic_frame_command_handler_t
Parameters
framePointer to the application frame
command_dataCommand event ID
Returns
True if exiting, to destroy the window

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().

Referenced by app_widget_launch().

struct widget_context* widget_ctx
static

Statically allocated context pointer.