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

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

#include <omGUITabView.h>

Public Attributes

Function< Bool(TabView &, const Size2D &)> resize
 A function object that is called whenever an attached TabView is resized. More...
 
Function< Bool(TabView &, const Vector2i &)> move
 A function object that is called whenever an attached TabView is moved. More...
 
Function< Bool(TabView &, Index)> selectTab
 A function object that is called whenever the selected tab of a TabView is changed. More...
 
Function< void(TabView &, Index)> deselectTab
 A function object that is called whenever a tab of a TabView is deselected. More...
 
UserData data
 An object that stores an opaque pointer to delegate data. More...
 

Detailed Description

A class that contains function objects that recieve TabView events.

Member Data Documentation

Function<Bool ( TabView&, const Size2D& )> om::gui::objects::TabView::Delegate::resize

A function object that is called whenever an attached TabView is resized.

The delegate function may choose to return either a value of TRUE, indicating that the change in size is allowed, or a value of FALSE, indicating that the change in size should be ignored.

The TabView provides the desired new size of the view as a (width, height) pair.

Function<Bool ( TabView&, const Vector2i& )> om::gui::objects::TabView::Delegate::move

A function object that is called whenever an attached TabView is moved.

The delegate function may choose to return either a value of TRUE, indicating that the change in position is allowed, or a value of FALSE, indicating that the change in position should be ignored.

The TabView provides the desired new position of the view as a 2D vector.

Function<Bool ( TabView&, Index )> om::gui::objects::TabView::Delegate::selectTab

A function object that is called whenever the selected tab of a TabView is changed.

The delegate function may choose to return either a value of TRUE, indicating that the change in tab is allowed, or a value of FALSE, indicating that the tab change should be ignored.

The TabView provides the index of the tab that was selected.

Function<void ( TabView&, Index )> om::gui::objects::TabView::Delegate::deselectTab

A function object that is called whenever a tab of a TabView is deselected.

The TabView provides the index of the tab that was deselected.

UserData om::gui::objects::TabView::Delegate::data

An object that stores an opaque pointer to delegate data.


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