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

A class that contains function objects that recieve option menu events. More...

#include <omGraphicsGUIOptionMenu.h>

Public Attributes

Function< void(OptionMenu &menu)> open
 A function object that is called whenever an attached option menu is opened by the user. More...
 
Function< void(OptionMenu &menu)> close
 A function object that is called whenever an attached option menu is closed by the user. More...
 
Function< void(OptionMenu &menu, Index itemIndex)> selectItem
 A function object that is called whenever an item with the given index is selected by the user. More...
 
UserData data
 An object that stores an opaque pointer to delegate data. More...
 

Detailed Description

A class that contains function objects that recieve option menu events.

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

Member Data Documentation

Function<void ( OptionMenu& menu )> om::graphics::gui::objects::OptionMenu::Delegate::open

A function object that is called whenever an attached option menu is opened by the user.

Function<void ( OptionMenu& menu )> om::graphics::gui::objects::OptionMenu::Delegate::close

A function object that is called whenever an attached option menu is closed by the user.

Function<void ( OptionMenu& menu, Index itemIndex )> om::graphics::gui::objects::OptionMenu::Delegate::selectItem

A function object that is called whenever an item with the given index is selected by the user.

UserData om::graphics::gui::objects::OptionMenu::Delegate::data

An object that stores an opaque pointer to delegate data.


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