X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc735b4085a71ba204bca6a61bd35e99d1e13ea6..e29bf4b0567856d5a40d6b47ce31762ca1960bc9:/interface/wx/ribbon/bar.h diff --git a/interface/wx/ribbon/bar.h b/interface/wx/ribbon/bar.h index 34d3a258be..4b520cc5b9 100644 --- a/interface/wx/ribbon/bar.h +++ b/interface/wx/ribbon/bar.h @@ -101,6 +101,8 @@ public: Triggered when the right mouse button is pressed on a tab. @event{EVT_RIBBONBAR_TAB_RIGHT_UP(id, func)} Triggered when the right mouse button is released on a tab. + @event{EVT_RIBBONBAR_TAB_LEFT_DCLICK(id, func)} + Triggered when the left mouse button is double clicked on a tab. @endEventTable @library{wxribbon} @@ -211,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