Public Member Functions

YBarGraphMultiUpdate Class Reference

#include <YBarGraph.h>

List of all members.

Public Member Functions

 YBarGraphMultiUpdate (YBarGraph *barGraph)
 ~YBarGraphMultiUpdate ()

Detailed Description

Helper class for multiple updates to a YBarGraph widget: This will hold back display updates until this object goes out of scope.

Constructor & Destructor Documentation

YBarGraphMultiUpdate::YBarGraphMultiUpdate ( YBarGraph barGraph)


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.


{ 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

YBarGraphMultiUpdate::~YBarGraphMultiUpdate ( )


This will trigger display updates of the corresponding YBarGraph widget if any are necessary.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends