#include <tab.h>
List of all members.
Classes |
struct | Tab |
Public Member Functions |
| TabWidget (GuiObject *boss, int x, int y, int w, int h) |
| TabWidget (GuiObject *boss, const String &name) |
| ~TabWidget () |
void | init () |
int | addTab (const String &title) |
| Add a new tab with the given title.
|
void | removeTab (int tabID) |
| Remove the tab with the given tab ID.
|
int | getActiveTab () |
void | setActiveTab (int tabID) |
| Set the active tab by specifying a valid tab ID.
|
void | setTabTitle (int tabID, const String &title) |
virtual void | handleMouseDown (int x, int y, int button, int clickCount) override |
virtual bool | handleKeyDown (Common::KeyState state) override |
virtual void | handleCommand (CommandSender *sender, uint32 cmd, uint32 data) override |
virtual int | getFirstVisible () const |
virtual void | setFirstVisible (int tabID, bool adjustIfRoom=false) |
virtual bool | containsWidget (Widget *) const override |
virtual void | reflowLayout () override |
void | draw () override |
| Redraw the widget if it was marked as dirty, and recursively proceed with its children.
|
void | markAsDirty () override |
| Mark the widget and its children as dirty so they are redrawn on the next screen update.
|
Protected Member Functions |
virtual int16 | getChildY () const override |
virtual uint16 | getHeight () const override |
virtual void | drawWidget () override |
virtual Widget * | findWidget (int x, int y) override |
virtual void | adjustTabs (int value) |
virtual void | computeLastVisibleTab (bool adjustFirstIfRoom) |
Protected Attributes |
int | _activeTab |
int | _firstVisibleTab |
int | _lastVisibleTab |
TabList | _tabs |
int | _tabHeight |
int | _minTabWidth |
int | _bodyRP |
int | _bodyTP |
int | _bodyLP |
int | _bodyBP |
ThemeEngine::DialogBackground | _bodyBackgroundType |
int | _titleVPad |
int | _butRP |
int | _butTP |
int | _butW |
int | _butH |
ButtonWidget * | _navLeft |
ButtonWidget * | _navRight |
bool | _navButtonsVisible |
Private Types |
typedef Common::String | String |
typedef Common::Array< Tab > | TabList |
Detailed Description
Definition at line 37 of file tab.h.
Member Typedef Documentation
Definition at line 38 of file tab.h.
Definition at line 44 of file tab.h.
Constructor & Destructor Documentation
GUI::TabWidget::TabWidget |
( |
GuiObject * |
boss, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h | |
|
) |
| | |
GUI::TabWidget::~TabWidget |
( |
|
) |
|
Member Function Documentation
int GUI::TabWidget::addTab |
( |
const String & |
title |
) |
|
Add a new tab with the given title.
Returns a unique ID which can be used to identify the tab (to remove it / activate it etc.).
Definition at line 106 of file tab.cpp.
void GUI::TabWidget::adjustTabs |
( |
int |
value |
) |
[protected, virtual] |
void GUI::TabWidget::computeLastVisibleTab |
( |
bool |
adjustFirstIfRoom |
) |
[protected, virtual] |
bool GUI::TabWidget::containsWidget |
( |
Widget * |
w |
) |
const [override, virtual] |
void GUI::TabWidget::draw |
( |
|
) |
[override, virtual] |
Redraw the widget if it was marked as dirty, and recursively proceed with its children.
Reimplemented from GUI::Widget.
Definition at line 331 of file tab.cpp.
void GUI::TabWidget::drawWidget |
( |
|
) |
[override, protected, virtual] |
Widget * GUI::TabWidget::findWidget |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [override, protected, virtual] |
int GUI::TabWidget::getActiveTab |
( |
|
) |
[inline] |
Definition at line 88 of file tab.h.
int16 GUI::TabWidget::getChildY |
( |
|
) |
const [override, protected, virtual] |
int GUI::TabWidget::getFirstVisible |
( |
|
) |
const [virtual] |
uint16 GUI::TabWidget::getHeight |
( |
|
) |
const [override, protected, virtual] |
bool GUI::TabWidget::handleKeyDown |
( |
Common::KeyState |
state |
) |
[override, virtual] |
void GUI::TabWidget::handleMouseDown |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
button, |
|
|
int |
clickCount | |
|
) |
| | [override, virtual] |
void GUI::TabWidget::init |
( |
|
) |
|
void GUI::TabWidget::markAsDirty |
( |
|
) |
[override, virtual] |
Mark the widget and its children as dirty so they are redrawn on the next screen update.
Reimplemented from GUI::Widget.
Definition at line 340 of file tab.cpp.
void GUI::TabWidget::reflowLayout |
( |
|
) |
[override, virtual] |
void GUI::TabWidget::removeTab |
( |
int |
tabID |
) |
|
Remove the tab with the given tab ID.
Disposes all child widgets of that tab. TODO: This code is *unfinished*. In particular, it changes the tabIDs, so that they are not unique anymore! This is bad. If we need to, we could fix this by changing the tab IDs from being an index into the _tabs array to a real "unique" ID, which gets stored in the Tab struct. It won't be difficult to implement this, but since currently no code seems to make use of the feature...
Definition at line 128 of file tab.cpp.
void GUI::TabWidget::setActiveTab |
( |
int |
tabID |
) |
|
Set the active tab by specifying a valid tab ID.
setActiveTab changes the value of _firstWidget. This means new Widgets are always added to the active tab.
Definition at line 160 of file tab.cpp.
void GUI::TabWidget::setFirstVisible |
( |
int |
tabID, |
|
|
bool |
adjustIfRoom = false | |
|
) |
| | [virtual] |
void GUI::TabWidget::setTabTitle |
( |
int |
tabID, |
|
|
const String & |
title | |
|
) |
| | [inline] |
Definition at line 99 of file tab.h.
Member Data Documentation
Definition at line 47 of file tab.h.
Definition at line 55 of file tab.h.
Definition at line 54 of file tab.h.
Definition at line 54 of file tab.h.
Definition at line 54 of file tab.h.
Definition at line 54 of file tab.h.
Definition at line 59 of file tab.h.
Definition at line 59 of file tab.h.
Definition at line 59 of file tab.h.
Definition at line 59 of file tab.h.
Definition at line 48 of file tab.h.
Definition at line 49 of file tab.h.
Definition at line 52 of file tab.h.
Definition at line 62 of file tab.h.
Definition at line 61 of file tab.h.
Definition at line 61 of file tab.h.
Definition at line 51 of file tab.h.
Definition at line 50 of file tab.h.
Definition at line 57 of file tab.h.
The documentation for this class was generated from the following files:
Generated on Sat Dec 7 2019 05:02:42 for ResidualVM by 1.7.1
|
|