Atmel Software Framework

wtk_plot.h File Reference

Graphical Widget toolkit.

Copyright (c) 2012 Atmel Corporation. All rights reserved.

Macros

Plot orientation configuration options.

For use with the option parameter of wtk_plot_create

#define WTK_PLOT_LEFT_TO_RIGHT   (0 << 0)
 Plot draws values from left to right. More...
 
#define WTK_PLOT_RIGHT_TO_LEFT   (1 << 0)
 Plot draws values from right to left. More...
 
Plot widget invert configuration options.

For use with the option parameter of wtk_plot_create

#define WTK_PLOT_INVERT   (1 << 1)
 Plot is inverted along y-axis. More...
 
Redraw parent disable options.

For use with the option parameter of wtk_plot_create

#define WTK_PLOT_DONT_REDRAW_PARENT   (1 << 2)
 Parent is not redrawn if background is transparent. More...
 
grid orientation options.

For use with the option parameter of wtk_plot_set_grid

#define WTK_PLOT_GRID_VERTICAL   (1 << 0)
 Draw horizontal grid lines along the vertical axis. More...
 
#define WTK_PLOT_GRID_HORIZONTAL   (1 << 1)
 Draw vertical grid lines along the horizontal axis. More...
 
axis orientation options.

For use with the option parameter of wtk_plot_set_grid

#define WTK_PLOT_TICKS_VERTICAL   (1 << 2)
 Draw tick marks along the vertical axis. More...
 
#define WTK_PLOT_TICKS_HORIZONTAL   (1 << 3)
 Draw tick marks along the horizontal axis. More...
 
zero line options.

For use with the option parameter of wtk_plot_set_grid

#define WTK_PLOT_ZERO   (1 << 4)
 Draw the zero line. More...
 

Functions

bool wtk_plot_add_value (struct wtk_plot *plot, uint8_t value)
 Add a value to the end of the plot. More...
 
struct win_windowwtk_plot_as_child (struct wtk_plot *plot)
 Get pointer to plot window. More...
 
struct wtk_plotwtk_plot_create (struct win_window *parent, struct win_area const *area, uint8_t maximum, uint8_t datapoints, gfx_color_t draw_color, struct gfx_bitmap *background, uint8_t option)
 Create a new plot widget. More...
 
void wtk_plot_set_colors (struct wtk_plot *plot, gfx_color_t draw_color, struct gfx_bitmap *background)
 Set new plot colors. 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...