\r
void scrollLeft();\r
void scrollRight();\r
- bool needScrollControl( s32 startIndex=0, bool withScrollControl=false );\r
- s32 calcTabWidth(s32 pos, IGUIFont* font, const wchar_t* text, bool withScrollControl ) const;\r
+ //! Indicates whether the tabs overflow in X direction\r
+ bool needScrollControl( s32 startIndex=0, bool withScrollControl=false, s32 *pos_rightmost=nullptr );\r
+ //! Left index calculation based on the selected tab\r
+ s32 calculateScrollIndexFromActive();\r
+ s32 calcTabWidth(IGUIFont* font, const wchar_t* text) const;\r
core::rect<s32> calcTabPos();\r
void setVisibleTab(s32 idx);\r
void removeTabButNotChild(s32 idx);\r