X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3185abc27836dab3e27221ec60e52fddc984e76b..95fbecf646470893c0d643757c118a8803a7786c:/include/wx/window.h?ds=inline diff --git a/include/wx/window.h b/include/wx/window.h index b481080beb..d85c077433 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -377,7 +377,7 @@ public: // acceptable size using which it will still look "nice" in // most situations) wxSize GetBestSize() const; - + void GetBestSize(int *w, int *h) const { wxSize s = GetBestSize(); @@ -1160,13 +1160,16 @@ public: // scrollbars // ---------- - // does the window have the scrollbar for this orientation? - bool HasScrollbar(int orient) const + // can the window have the scrollbar in this orientation? + bool CanScroll(int orient) const { return (m_windowStyle & (orient == wxHORIZONTAL ? wxHSCROLL : wxVSCROLL)) != 0; } + // does the window have the scrollbar in this orientation? + bool HasScrollbar(int orient) const; + // configure the window scrollbars virtual void SetScrollbar( int orient, int pos, @@ -1658,8 +1661,8 @@ protected: // of the left and the right border in the x component of the returned size // and the sum of the heights of the top and bottom borders in the y one // - // NB: this is new/temporary API only implemented by wxMSW so far and - // subject to change, don't use + // NB: this is new/temporary API only implemented by wxMSW and wxUniv so + // far and subject to change, don't use virtual wxSize DoGetBorderSize() const { wxFAIL_MSG( "must be overridden if called" );