Om
1.0.0
A universal framework for multimedia simulation
|
A class that contains function objects that recieve Meter events. More...
#include <omGraphicsGUIMeter.h>
Public Attributes | |
Function< Bool(Meter &meter, Float &newValue)> | update |
A function object that is called whenever a meter's displayed value should update. More... | |
UserData | data |
An object that stores an opaque pointer to delegate data. More... | |
A class that contains function objects that recieve Meter events.
Any meter-related event that might be processed has an appropriate callback function object. Each callback function is called by the button whenever such an event is received. If a callback function in the delegate is not initialized, a meter simply ignores it.
Function<Bool ( Meter& meter, Float& newValue )> om::graphics::gui::objects::Meter::Delegate::update |
A function object that is called whenever a meter's displayed value should update.
The delegate function can provide a new value to the meter by writing the new value to the output parameter and returning TRUE, indicating that the new value should be used.
UserData om::graphics::gui::objects::Meter::Delegate::data |
An object that stores an opaque pointer to delegate data.