#ifndef __C_GUI_TAB_CONTROL_H_INCLUDED__\r
#define __C_GUI_TAB_CONTROL_H_INCLUDED__\r
\r
-#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
#include "IGUITabControl.h"\r
#include "irrArray.h"\r
#include "IGUISkin.h"\r
\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
} // end namespace gui\r
} // end namespace irr\r
\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
#endif\r
-\r