libyui
3.3.2
|
Helper class for multiple updates to a YBarGraph widget: This will hold back display updates until this object goes out of scope. More...
#include <YBarGraph.h>
Public Member Functions | |
YBarGraphMultiUpdate (YBarGraph *barGraph) | |
Constructor. More... | |
~YBarGraphMultiUpdate () | |
Destructor. More... | |
Helper class for multiple updates to a YBarGraph widget: This will hold back display updates until this object goes out of scope.
Definition at line 285 of file YBarGraph.h.
YBarGraphMultiUpdate::YBarGraphMultiUpdate | ( | YBarGraph * | barGraph | ) |
Constructor.
This will make the corresponding YBarGraph widget hold back any pending display updates (due to changed values, labels, or colors) until this object is destroyed (goes out of scope).
Create objects of this class on the stack (as local variables) and simply let them go out of scope.
Example:
{ YBarGraphMultiUpdate multiUpdate( myBarGraph ); myBarGraph->setValue( 0, 42 ); // No display update yet myBarGraph->setValue( 1, 84 ); // No display update yet myBarGraph->setValue( 2, 21 ); // No display update yet
} // multiUpdate goes out of scope, will trigger display update now
Definition at line 226 of file YBarGraph.cc.
YBarGraphMultiUpdate::~YBarGraphMultiUpdate | ( | ) |
Destructor.
This will trigger display updates of the corresponding YBarGraph widget if any are necessary.
Definition at line 235 of file YBarGraph.cc.