Plot widget implementation.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | wtk_plot |
Plot control struct. More... | |
Functions | |
struct win_window * | wtk_plot_as_child (struct wtk_plot *plot) |
Get pointer to plot window. More... | |
bool | wtk_plot_add_value (struct wtk_plot *plot, uint8_t value) |
Add a value to the end of the plot. More... | |
void | wtk_plot_set_grid (struct wtk_plot *plot, uint8_t axis_option, uint8_t axis_spacing_x, uint8_t axis_offset_x, uint8_t axis_spacing_y, uint8_t axis_offset_y, gfx_color_t axis_color, gfx_color_t axis_zero_color) |
Set grid/axis parameters. More... | |
void | wtk_plot_set_colors (struct wtk_plot *plot, gfx_color_t draw_color, struct gfx_bitmap *background) |
Set new plot colors. More... | |
static void | wtk_plot_grid_draw (struct wtk_plot *plot, struct win_area const *area, struct win_clip_region const *clip) |
Grid draw function. More... | |
static void | wtk_plot_draw (struct wtk_plot *plot, struct win_area const *area, struct win_clip_region const *clip) |
Plot draw function. More... | |
static bool | wtk_plot_handler (struct win_window *win, enum win_event_type type, void const *data) |
plot event handler. More... | |
struct wtk_plot * | wtk_plot_create (struct win_window *parent, struct win_area const *area, uint8_t maximum, uint8_t num_datapoints, gfx_color_t draw_color, struct gfx_bitmap *background, uint8_t option) |
Create a new plot widget. More... | |