]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CGUITabControl.h
CGUITabControl: Center selected tab whenever possible
[irrlicht.git] / source / Irrlicht / CGUITabControl.h
index ffc31f216a064cd71513e728e596bc8a61ab7d68..d5e8315f1687c8668d975f3b5834824d4ee45ff5 100644 (file)
@@ -153,8 +153,11 @@ namespace gui
 \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