X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cddee2d0ec042b15e633944a0c30dae77357175..e6bf1a0f9e54d2112d01582f898db5e2e25b9c7b:/interface/wx/ribbon/art.h diff --git a/interface/wx/ribbon/art.h b/interface/wx/ribbon/art.h index d33de73479..2caacc97ce 100644 --- a/interface/wx/ribbon/art.h +++ b/interface/wx/ribbon/art.h @@ -776,7 +776,24 @@ public: const wxRibbonPanel* wnd, wxSize size, wxPoint* client_offset) = 0; - + + /** + Calculate the position and size of the panel extension button. + + @param dc + A device context to use if one is required for size calculations. + @param wnd + The ribbon panel in question. + @param rect + The panel rectangle from which calculate extension button rectangle. + + @since 2.9.4 + */ + virtual wxRect GetPanelExtButtonArea( + wxDC& dc, + const wxRibbonPanel* wnd, + wxRect rect) = 0; + /** Calculate the size of a wxRibbonGallery control for a given client size. This should increment the given size by enough to fit the gallery