#include <Pt/Forms/TabView.h>
Item used by a tab view. More...
Public Member Functions | |
| TabViewItem () | |
| Constructs an empty item. | |
| ~TabViewItem () | |
| Destroys the item. | |
| const String & | text () const |
| Returns the tab title. | |
| void | setText (const String &s) |
| Sets the tab title to s. | |
| const Gfx::RectF & | geometry () const |
| Returns the tab rectangle. | |
| void | setGeometry (const Gfx::RectF &r) |
| Sets the tab rectangle to r. | |
| const Gfx::SizeF & | measuredSize () const |
| Returns the measured size of the tab label. | |
| void | setMeasuredSize (const Gfx::SizeF &s) |
| Sets the measured size of the tab label to s. | |
| const Gfx::PointF & | textPos () const |
| Returns the position of the tab title. | |
| void | setTextPos (const Gfx::PointF &p) |
| Sets the position of the tab title to p. | |
| bool | isPressed () const |
| Returns true if the tab is the current tab. | |
| void | setPressed (bool b) |
| Sets whether the tab is the current tab. | |
A TabViewItem stores the title and geometry of one tab. It is not a Control. Applications do not construct or place it. TabView creates tab labels from addTab titles.