|
C++ DevKit
C++ set of OOP library
|
the Model used by Bargraph GraphicWidget More...
#include <widget_bargraph.h>


Public Member Functions | |
| std::vector< int > | get_values () |
| get internal values of the bargraph model | |
| void | update_values (std::vector< int > values) |
| update internal values of the bargraph and set_change_flag | |
| ModelBargraph (size_t number_of_bar, int min_value, int max_value) | |
| conctructor of ModelBargraph | |
| ~ModelBargraph () | |
| Destroy the Model Bargraph object. | |
Public Member Functions inherited from Model | |
| Model () | |
| Construct the Model object. | |
| ~Model () | |
| Destroy the Model object. | |
| void | update_attached_widgets (Widget *new_widget) |
| add a new widget to the set of attached_widgets | |
| int | get_number_of_attached_widget () |
| get the number of attached widgets | |
| bool | has_changed () |
| get the change flag status | |
| void | set_change_flag () |
| Set the change flag object to true. | |
| void | draw_widget_done () |
| Set the change flag object to false. | |
| uint32_t | get_time_since_last_change () |
| compute time since the last status change | |
| virtual void | draw_refresh_all_attached_widgets () |
| update drawing for each attached widgets | |
Protected Attributes | |
| std::vector< int > | values |
| the vector of values displayed by the bargraph | |
Protected Attributes inherited from Model | |
| std::set< Widget * > | attached_widgets |
| the set of widgets that are in charge of viewing this model. | |
the Model used by Bargraph GraphicWidget
| ModelBargraph::ModelBargraph | ( | size_t | number_of_bar, |
| int | min_value, | ||
| int | max_value ) |
conctructor of ModelBargraph
| number_of_bar | the number of bar in the bargraph |
| min_value | the min value of the range of values |
| max_value | the max value of the range of values |

| std::vector< int > ModelBargraph::get_values | ( | ) |
get internal values of the bargraph model
| void ModelBargraph::update_values | ( | std::vector< int > | values | ) |
update internal values of the bargraph and set_change_flag
| values |
