Merge branch 'paint-debug'

Detect invalid use of wxPaintDC/wxPaintEvent better.

See https://github.com/wxWidgets/wxWidgets/pull/1732
This commit is contained in:
Vadim Zeitlin
2020-02-11 22:35:33 +01:00
19 changed files with 129 additions and 106 deletions

View File

@@ -2215,9 +2215,14 @@ class wxPaintEvent : public wxEvent
{
public:
/**
Constructor.
Constructor for exclusive use of wxWidgets itself.
Note that the objects of this class can @em not be created from
application code, they're only created by the library itself. If you
need a window to be repainted, use wxWindow::Refresh() instead of
trying to manually create an event of this class.
*/
wxPaintEvent(int id = 0);
explicit wxPaintEvent(wxWindow* window);
};