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

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

#include <omGraphicsGUITreeView.h>

Public Attributes

Function< void(TreeView &view) > updateTree
 A function that is used by the tree view to gather a new set of rows after the tree changes. More...
 
Function< Bool(TreeView &view, const Index *rows, Size numSelected) > removeRows
 A function that is called by the tree view when the user wants to remove rows. More...
 
Function< void(TreeView &view) > editSelection
 A function that is called by the tree view when the rows selected by the user change. More...
 
Function< void(TreeView &view, Index row, Index column) > editCell
 A function that is called by the tree view when the user wants to edit an editable cell. More...
 
Function< void(TreeView &view, Index row, Index column) > openCell
 A function that is called by the tree view when the user wants to open an openable cell. More...
 
Function< Bool(TreeView &view, Index rowIndex) > expandRow
 A function that is called by the tree view when the user expands a previously collapsed row. More...
 
Function< Bool(TreeView &view, Index rowIndex) > collapseRow
 A function that is called by the tree view when the user collapses a previously expanded row. More...
 
UserData data
 An object that stores an opaque pointer to delegate data. More...
 

Detailed Description

A class that contains function objects that recieve TreeView events.

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

Member Data Documentation

Function< void ( TreeView& view ) > om::graphics::gui::objects::TreeView::Delegate::updateTree

A function that is used by the tree view to gather a new set of rows after the tree changes.

Function< Bool ( TreeView& view, const Index* rows, Size numSelected ) > om::graphics::gui::objects::TreeView::Delegate::removeRows

A function that is called by the tree view when the user wants to remove rows.

Function< void ( TreeView& view ) > om::graphics::gui::objects::TreeView::Delegate::editSelection

A function that is called by the tree view when the rows selected by the user change.

Function< void ( TreeView& view, Index row, Index column ) > om::graphics::gui::objects::TreeView::Delegate::editCell

A function that is called by the tree view when the user wants to edit an editable cell.

Function< void ( TreeView& view, Index row, Index column ) > om::graphics::gui::objects::TreeView::Delegate::openCell

A function that is called by the tree view when the user wants to open an openable cell.

Function< Bool ( TreeView& view, Index rowIndex ) > om::graphics::gui::objects::TreeView::Delegate::expandRow

A function that is called by the tree view when the user expands a previously collapsed row.

The method should return whether or not the row should be expanded.

Function< Bool ( TreeView& view, Index rowIndex ) > om::graphics::gui::objects::TreeView::Delegate::collapseRow

A function that is called by the tree view when the user collapses a previously expanded row.

The method should return whether or not the row should be collapsed.

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

An object that stores an opaque pointer to delegate data.


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