X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a16a233822dd1ae4f862e40b077f9407f58c32ed..62960a2c6e9c54720126a7207fa47e9e539f6040:/interface/wx/window.h diff --git a/interface/wx/window.h b/interface/wx/window.h index 7d1f81473c..f14f24f050 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -513,7 +513,23 @@ public: virtual int GetScrollThumb(int orientation) const; /** - Returns @true if this window has a scroll bar for this orientation. + Returns @true if this window can have a scroll bar in this orientation. + + @param orient + Orientation to check, either wxHORIZONTAL or wxVERTICAL. + + @since 2.9.1 + */ + bool CanScroll(int orient) const; + + /** + Returns @true if this window currently has a scroll bar for this + orientation. + + This method may return @false even when CanScroll() for the same + orientation returns @true, but if CanScroll() returns @false, i.e. + scrolling in this direction is not enabled at all, HasScrollbar() + always returns @false as well. @param orient Orientation to check, either wxHORIZONTAL or wxVERTICAL.