22 #ifndef GUI_WIDGETS_TAB_H 23 #define GUI_WIDGETS_TAB_H 25 #include "gui/widget.h" 26 #include "common/str.h" 27 #include "common/array.h" 56 int _bodyRP, _bodyTP, _bodyLP, _bodyBP;
61 int _butRP, _butTP, _butW, _butH;
64 bool _navButtonsVisible;
105 assert(0 <= tabID && tabID < (
int)_tabs.
size());
106 _tabs[tabID].title = title;
109 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
110 void handleMouseMoved(
int x,
int y,
int button)
override;
111 void handleMouseLeft(
int button)
override { _lastRead = -1; };
113 void handleMouseWheel(
int x,
int y,
int direction)
override;
114 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
115 virtual int getFirstVisible()
const;
116 virtual void setFirstVisible(
int tabID,
bool adjustIfRoom =
false);
118 bool containsWidget(
Widget *)
const override;
120 void reflowLayout()
override;
122 void draw()
override;
128 int16 getChildY()
const override;
129 uint16 getHeight()
const override;
131 void drawWidget()
override;
133 Widget *findWidget(
int x,
int y)
override;
135 virtual void adjustTabs(
int value);
137 virtual void computeLastVisibleTab(
bool adjustFirstIfRoom);
TextAlignVertical
Vertical alignment of the text.
Definition: ThemeEngine.h:218
DialogBackground
Dialog background type.
Definition: ThemeEngine.h:239
size_type size() const
Definition: array.h:315
Definition: keyboard.h:294