X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cff9681b857589f9328541762da1111fc4958689..017dc06b502c041c112a3948e6c5f65000a86d94:/include/wx/ribbon/panel.h diff --git a/include/wx/ribbon/panel.h b/include/wx/ribbon/panel.h index 1b2e20eb74..51d49c7964 100644 --- a/include/wx/ribbon/panel.h +++ b/include/wx/ribbon/panel.h @@ -20,11 +20,13 @@ enum wxRibbonPanelOption { - wxRIBBON_PANEL_NO_AUTO_MINIMISE = 1 << 0, - wxRIBBON_PANEL_EXT_BUTTON = 1 << 3, - wxRIBBON_PANEL_MINIMISE_BUTTON = 1 << 4, - - wxRIBBON_PANEL_DEFAULT_STYLE = 0, + wxRIBBON_PANEL_NO_AUTO_MINIMISE = 1 << 0, + wxRIBBON_PANEL_EXT_BUTTON = 1 << 3, + wxRIBBON_PANEL_MINIMISE_BUTTON = 1 << 4, + wxRIBBON_PANEL_STRETCH = 1 << 5, + wxRIBBON_PANEL_FLEXIBLE = 1 << 6, + + wxRIBBON_PANEL_DEFAULT_STYLE = 0 }; class WXDLLIMPEXP_RIBBON wxRibbonPanel : public wxRibbonControl @@ -74,8 +76,15 @@ public: wxRibbonPanel* GetExpandedDummy(); wxRibbonPanel* GetExpandedPanel(); + // Finds the best width and height given the parent's width and height + virtual wxSize GetBestSizeForParentSize(const wxSize& parentSize) const; + + long GetFlags() { return m_flags; } + protected: virtual wxSize DoGetBestSize() const; + virtual wxSize GetPanelSizerBestSize() const; + wxSize GetPanelSizerMinSize() const; wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } wxSize GetMinNotMinimisedSize() const;