Microchip® Advanced Software Framework

wtk_plot Struct Reference

Plot control struct.

Contains a pointer to the plot's containing window, and non-window information necessary for its operation. Structs of this type are created with wtk_plot_create().

Note
Structure fields are only internally accessible. Only pointers to these structures are needed externally.

Data Fields

gfx_color_t axis_color
 Color for the tick marks and grid lines. More...
 
uint8_t axis_offset_x
 Grid/axis offset along the x-axis. More...
 
uint8_t axis_offset_y
 Grid/axis offset along the y-axis. More...
 
uint8_t axis_option
 Configuration of axis, grid and zero-line behaviour. More...
 
uint8_t axis_spacing_x
 Space between x-axis grid lines/tick marks. More...
 
uint8_t axis_spacing_y
 Space between y-axis grid lines/tick marks. More...
 
gfx_color_t axis_zero_color
 Color for the zero line. More...
 
struct gfx_bitmapbackground
 Pointer to plot background bitmap. More...
 
uint8_t buffer_start
 Ring buffer start-point displacement. More...
 
struct win_windowcontainer
 Container window of plot. More...
 
gfx_color_t draw_color
 Color for plot. More...
 
uint8_t maximum
 Maximum value of plot. More...
 
uint8_t num_datapoints
 Number of datapoints in plot. More...
 
uint8_t option
 Configuration of orientation and behavior. More...
 
uint8_t * plot_buffer
 Pointer to ring buffer containing values to plot. More...
 
uint8_t spacing
 Space between datapoints. More...
 
uint8_t spacing_error
 Error in spacing between datapoints. More...
 

gfx_color_t wtk_plot::axis_color

Color for the tick marks and grid lines.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

uint8_t wtk_plot::axis_offset_x

Grid/axis offset along the x-axis.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

uint8_t wtk_plot::axis_offset_y

Grid/axis offset along the y-axis.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

uint8_t wtk_plot::axis_option

Configuration of axis, grid and zero-line behaviour.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

uint8_t wtk_plot::axis_spacing_x

Space between x-axis grid lines/tick marks.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

uint8_t wtk_plot::axis_spacing_y

Space between y-axis grid lines/tick marks.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

gfx_color_t wtk_plot::axis_zero_color

Color for the zero line.

Referenced by wtk_plot_create(), wtk_plot_grid_draw(), and wtk_plot_set_grid().

struct gfx_bitmap* wtk_plot::background

Pointer to plot background bitmap.

Referenced by wtk_plot_create(), wtk_plot_handler(), and wtk_plot_set_colors().

uint8_t wtk_plot::buffer_start

Ring buffer start-point displacement.

Referenced by wtk_plot_add_value(), wtk_plot_create(), and wtk_plot_draw().

struct win_window* wtk_plot::container
gfx_color_t wtk_plot::draw_color

Color for plot.

Referenced by wtk_plot_create(), wtk_plot_draw(), and wtk_plot_set_colors().

uint8_t wtk_plot::maximum

Maximum value of plot.

Referenced by wtk_plot_add_value(), wtk_plot_create(), and wtk_plot_set_grid().

uint8_t wtk_plot::num_datapoints

Number of datapoints in plot.

Referenced by wtk_plot_add_value(), wtk_plot_create(), and wtk_plot_draw().

uint8_t wtk_plot::option

Configuration of orientation and behavior.

Referenced by wtk_plot_create(), and wtk_plot_draw().

uint8_t* wtk_plot::plot_buffer

Pointer to ring buffer containing values to plot.

Referenced by wtk_plot_add_value(), wtk_plot_create(), wtk_plot_draw(), and wtk_plot_handler().

uint8_t wtk_plot::spacing

Space between datapoints.

Referenced by wtk_plot_create(), and wtk_plot_draw().

uint8_t wtk_plot::spacing_error

Error in spacing between datapoints.

Referenced by wtk_plot_create(), and wtk_plot_draw().