X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a65b84f43417c8d0d156d63ae12474b29d1a739c..dab0a95babc406b3784c4365aa14cd38dac4fa4c:/interface/wx/ribbon/bar.h diff --git a/interface/wx/ribbon/bar.h b/interface/wx/ribbon/bar.h index e7ef600e7c..00a53cb199 100644 --- a/interface/wx/ribbon/bar.h +++ b/interface/wx/ribbon/bar.h @@ -164,7 +164,7 @@ public: Note that unlike most other ribbon controls, the ribbon bar creates a default art provider when initialised, so an explicit call to SetArtProvider() is not required if the default art provider is - sufficient. Alos unlike other ribbon controls, the ribbon bar takes + sufficient. Also, unlike other ribbon controls, the ribbon bar takes ownership of the given pointer, and will delete it when the art provider is changed or the bar is destroyed. If this behaviour is not desired, then clone the art provider before setting it. @@ -213,6 +213,35 @@ public: for the currently active page, or @false if there is no active page. */ bool DismissExpandedPanel(); + + /** + Shows or hides the panel area of the ribbon bar. + + If the panel area is hidden, then only the tab of the ribbon bar will + be shown. This is useful for giving the user more screen space to work + with when he/she doesn't need to see the ribbon's options. + + @since 2.9.2 + */ + void ShowPanels(bool show = true); + + /** + Hides the panel area of the ribbon bar. + + This method simply calls ShowPanels() with @false argument. + + @since 2.9.2 + */ + void HidePanels(); + + /** + Indicates whether the panel area of the ribbon bar is shown. + + @see ShowPanels() + + @since 2.9.2 + */ + bool ArePanelsShown() const; /** Perform initial layout and size calculations of the bar and its