Update wxDPIChangedEvent documentation

This commit is contained in:
Maarten Bent
2019-08-27 23:06:04 +02:00
parent 0ea4366163
commit 2704d32089

View File

@@ -3322,15 +3322,15 @@ public:
/** /**
@class wxDPIChangedEvent @class wxDPIChangedEvent
Event sent when the resolution (measured in dots-per-inch, or DPI) of the Event sent when the display scale factor or pixel density (measured in
monitor a window is on changes. 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 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 its children recursively (post-order traversal). For example, this event is
when it is moved, by the user, from a display using some DPI value to sent to the window when it is moved, by the user, from a display using some
another display using a different DPI value. It also sent to all program DPI value to another display using a different DPI value. It also sent to
windows on the given display if its DPI changes due to a change in the all program windows on the given display if its DPI changes due to a change
system settings. in the system settings.
Currently this event is generated by wxMSW port if only and only if the 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 MSW application runs under Windows 10 Creators Update (v1703) or later and
@@ -3359,15 +3359,11 @@ class wxDPIChangedEvent : public wxEvent
public: public:
/** /**
Returns the old DPI. Returns the old DPI.
@since 3.1.3
*/ */
wxSize GetOldDPI() const; wxSize GetOldDPI() const;
/** /**
Returns the new DPI. Returns the new DPI.
@since 3.1.3
*/ */
wxSize GetNewDPI() const; wxSize GetNewDPI() const;
}; };