From 2704d320891823e4a676de331081799bf4338bf5 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 27 Aug 2019 23:06:04 +0200 Subject: [PATCH] Update wxDPIChangedEvent documentation --- interface/wx/event.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index 4c3abd95d6..9a4c125e9a 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -3322,15 +3322,15 @@ public: /** @class wxDPIChangedEvent - Event sent when the resolution (measured in dots-per-inch, or DPI) of the - monitor a window is on changes. + Event sent when the display scale factor or pixel density (measured in + dots-per-inch, or DPI) of the monitor a window is on changes. The event is sent to each wxTopLevelWindow affected by the change, and all - its children recursively. For example, this event is sent to the window - when it is moved, by the user, from a display using some DPI value to - another display using a different DPI value. It also sent to all program - windows on the given display if its DPI changes due to a change in the - system settings. + its children recursively (post-order traversal). For example, this event is + sent to the window when it is moved, by the user, from a display using some + DPI value to another display using a different DPI value. It also sent to + all program windows on the given display if its DPI changes due to a change + in the system settings. Currently this event is generated by wxMSW port if only and only if the MSW application runs under Windows 10 Creators Update (v1703) or later and @@ -3359,15 +3359,11 @@ class wxDPIChangedEvent : public wxEvent public: /** Returns the old DPI. - - @since 3.1.3 */ wxSize GetOldDPI() const; /** Returns the new DPI. - - @since 3.1.3 */ wxSize GetNewDPI() const; };