X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c61c5b04b0b023eb9592bde5633c2111f1940fb..b0edecea489b62db69eb74ca8f7623132cceab54:/interface/wx/window.h diff --git a/interface/wx/window.h b/interface/wx/window.h index 73b300c789..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. @@ -2216,6 +2232,11 @@ public: */ wxToolTip* GetToolTip() const; + /** + Get the text of the associated tooltip or empty string if none. + */ + wxString GetToolTipText() const; + /** Attach a tooltip to the window.