X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..6b03a638a437316e47f02a896d3ad664d59c6ddb:/interface/wx/gdicmn.h?ds=sidebyside diff --git a/interface/wx/gdicmn.h b/interface/wx/gdicmn.h index b5fb341b21..188ad9382c 100644 --- a/interface/wx/gdicmn.h +++ b/interface/wx/gdicmn.h @@ -612,7 +612,7 @@ public: is, wxColour::IsOk() will return @false) if the colour wasn't found in the database. */ - wxColour Find(const wxString& colourName); + wxColour Find(const wxString& colourName) const; /** Finds a colour name given the colour. Returns an empty string if the @@ -852,11 +852,29 @@ void wxClientDisplayRect(int* x, int* y, int* width, int* height); wxRect wxGetClientDisplayRect(); //@} +/** @ingroup group_funcmacro_gdi */ +//@{ +/** + Returns the display resolution in pixels per inch. + + The @c x component of the returned wxSize object contains the horizontal + resolution and the @c y one -- the vertical resolution. + + @header{wx/gdicmn.h} + + @since 2.9.0 +*/ +wxSize wxGetDisplayPPI(); +//@} + /** @ingroup group_funcmacro_gdi */ //@{ /** Returns the display size in pixels. + For the version taking @a width and @a header arguments, either of them + can be @NULL if the caller is not interested in the returned value. + @header{wx/gdicmn.h} */ void wxDisplaySize(int* width, int* height); @@ -868,6 +886,11 @@ wxSize wxGetDisplaySize(); /** Returns the display size in millimeters. + For the version taking @a width and @a header arguments, either of them + can be @NULL if the caller is not interested in the returned value. + + @see wxGetDisplayPPI() + @header{wx/gdicmn.h} */ void wxDisplaySizeMM(int* width, int* height);