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

A class that contains function objects that recieve ColorPicker events. More...

#include <omGraphicsGUIColorPicker.h>

Public Attributes

Function< Bool(ColorPicker &picker, const Color4f &newColor)> edit
 A function object that is called whenever the color for a color picker is changed by the user. More...
 

Detailed Description

A class that contains function objects that recieve ColorPicker events.

Any color picker-related event that might be processed has an appropriate callback function object. Each callback function is called by the color picker whenever such an event is received. If a callback function in the delegate is not initialized, a color picker ignores it.

Member Data Documentation

Function<Bool ( ColorPicker& picker, const Color4f& newColor )> om::graphics::gui::objects::ColorPicker::Delegate::edit

A function object that is called whenever the color for a color picker is changed by the user.

The delegate function has the option to allow or disallow the change to the color picker's value by returning TRUE to allow or FALSE to not allow the change.


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