Fix wxAuiDefaultToolBarArt::Get{Label,Tool}Size "dc" params type

They are now wxReadOnlyDC and not wxDC.

Closes #26122.
This commit is contained in:
Scott Talbert
2026-01-28 01:11:40 +01:00
committed by Vadim Zeitlin
parent e3c25deebb
commit de3f658ca4
+16 -2
View File
@@ -874,13 +874,27 @@ public:
const wxRect& rect,
int state);
/**
Return the size of the label for the given item.
Note that the type of @a dc was wxDC until wxWidgets 3.3.0, where it
was changed to wxReadOnlyDC as this function doesn't modify the DC
contents.
*/
virtual wxSize GetLabelSize(
wxDC& dc,
wxReadOnlyDC& dc,
wxWindow* wnd,
const wxAuiToolBarItem& item);
/**
Return the size of the given item.
Note that the type of @a dc was wxDC until wxWidgets 3.3.0, where it
was changed to wxReadOnlyDC as this function doesn't modify the DC
contents.
*/
virtual wxSize GetToolSize(
wxDC& dc,
wxReadOnlyDC& dc,
wxWindow* wnd,
const wxAuiToolBarItem& item);