Add a comment documenting wxRenderer drawing functions behaviour

Now that all ports behave consistently and preserve wxDC attributes,
document this behaviour.
This commit is contained in:
Vadim Zeitlin
2021-07-06 13:49:14 +02:00
parent 4bab6fe64f
commit 3f3ea4d266

View File

@@ -178,6 +178,13 @@ public:
// drawing functions // 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 // draw the header control button (used by wxListCtrl) Returns optimal
// width for the label contents. // width for the label contents.
virtual int DrawHeaderButton(wxWindow *win, virtual int DrawHeaderButton(wxWindow *win,