From 3f3ea4d266ea18de86888fa726f8002b26576ad3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Jul 2021 13:49:14 +0200 Subject: [PATCH] Add a comment documenting wxRenderer drawing functions behaviour Now that all ports behave consistently and preserve wxDC attributes, document this behaviour. --- include/wx/renderer.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/renderer.h b/include/wx/renderer.h index da22e391cb..b51af32176 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -178,6 +178,13 @@ public: // drawing functions // ----------------- + /* + Note that all these functions don't, and shouldn't, change any + parameters of wxDC passed to them, i.e. pens, brushes or colours. + Their implementation must use wxDCXXXChanger classes instead of + calling wxDC::SetXXX() directly to ensure this. + */ + // draw the header control button (used by wxListCtrl) Returns optimal // width for the label contents. virtual int DrawHeaderButton(wxWindow *win,