X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adbf2d732fe5f254f45ab27530e4f9c044cb385f..d5cd19b45cb8ed187238a64fd6a672a2d8c98b4d:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 804c618dbd..f1dbcdf465 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -26,9 +26,9 @@ // classes //--------------------------------------------------------------------------- -class wxSizerItem; -class wxSizer; -class wxBoxSizer; +class WXDLLEXPORT wxSizerItem; +class WXDLLEXPORT wxSizer; +class WXDLLEXPORT wxBoxSizer; //--------------------------------------------------------------------------- // wxSizerItem @@ -74,10 +74,11 @@ public: wxSize GetMinSize() const { return m_minSize; } + wxSize GetMinSizeWithBorder() const; + void SetMinSize(const wxSize& size) { - if (IsWindow() && !(m_flag & wxFIXED_MINSIZE)) - m_window->SetSizeHints(size); + if (IsWindow()) m_window->SetMinSize(size); m_minSize = size; } void SetMinSize( int x, int y ) @@ -451,6 +452,9 @@ protected: int m_flexDirection; wxFlexSizerGrowMode m_growMode; + // saves CalcMin result to optimize RecalcSizes + wxSize m_calculatedMinSize; + private: DECLARE_CLASS(wxFlexGridSizer) DECLARE_NO_COPY_CLASS(wxFlexGridSizer)