80 uint8_t convert_level_value_to_px(
int level);
83 void draw_bar(uint8_t bin_index);
110 uint8_t bar_spacing = 1);
136 uint8_t convert_level_value_to_py(
int level);
139 void draw_bar(uint8_t bin_index);
CanvasFormat
the format of the canvas
Definition canvas.h:60
This is the abstract class to handle all generic behavior of physical graphic display devices (e....
Definition display_device.h:30
the Model used by Bargraph GraphicWidget
Definition widget_bargraph.h:23
void update_values(std::vector< int > values)
update internal values of the bargraph and set_change_flag
Definition widget_bargraph.cpp:89
size_t number_of_bar
the number of bar in the bargraph (and the number of values)
Definition widget_bargraph.h:38
~ModelBargraph()
Destroy the Model Bargraph object.
Definition widget_bargraph.cpp:105
ModelBargraph(size_t number_of_bar, int min_value, int max_value)
conctructor of ModelBargraph
Definition widget_bargraph.cpp:95
std::vector< int > values
the vector of values displayed by the bargraph
Definition widget_bargraph.h:27
std::vector< int > get_values()
get internal values of the bargraph model
Definition widget_bargraph.cpp:84
int min_value
the min value of the range of values
Definition widget_bargraph.h:40
int max_value
the max value of the range of values
Definition widget_bargraph.h:42
Model()
Construct the Model object.
Definition ui_core.cpp:3