Om  1.0.0
A universal framework for multimedia simulation
Public Attributes | List of all members
om::graphics::gui::objects::Meter::Delegate Class Reference

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...
 

Detailed Description

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file: