- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UTabBar Class Reference

A tab bar provides a box of tabs which may be used to select tab panels of a tab widgets. More...

#include <utabbar.hpp>

Inheritance diagram for ufo::UTabBar:

ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

void addTab (const std::string &label)
void removeTab (int index)
void setSelectedIndex (int index)
int getSelectedIndex () const
std::string getTabText (int index) const
int getTabIndex (const std::string &label) const
int getTabCount () const
USignal1< UTabBar * > & sigSelectionChanged ()

Detailed Description

A tab bar provides a box of tabs which may be used to select tab panels of a tab widgets.

Author:
Johannes Schmidt


Member Function Documentation

int ufo::UTabBar::getTabIndex const std::string &  label  )  const
 

Returns the index of the tab bar tab with the given label or -1 if no tab has this label.

std::string ufo::UTabBar::getTabText int  index  )  const
 

Returns the label of the tab bar tab with the given index or "" if the index is out of range.

void ufo::UTabBar::removeTab int  index  ) 
 

Removes the tab at the given index and eventually resets the selected index.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt