X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adaaa68635b4c8a4d8c5284add40366ea3eefb07..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/display.h?ds=sidebyside diff --git a/interface/wx/display.h b/interface/wx/display.h index 679d8bbf67..1566d21df6 100644 --- a/interface/wx/display.h +++ b/interface/wx/display.h @@ -2,8 +2,7 @@ // Name: display.h // Purpose: interface of wxDisplay // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -12,7 +11,7 @@ Determines the sizes and locations of displays connected to the system. @library{wxcore} - @category{misc} + @category{cfg} @see wxClientDisplayRect(), wxDisplaySize(), wxDisplaySizeMM() */ @@ -27,7 +26,7 @@ public: The index of the display to use. This must be non-negative and lower than the value returned by GetCount(). */ - wxDisplay(unsigned index = 0); + wxDisplay(unsigned int index = 0); /** Destructor. @@ -40,15 +39,10 @@ public: If wxDefaultVideoMode is passed in as the mode parameter, the defined behaviour is that wxDisplay will reset the video mode to the default - mode used by the display. On Windows, the behavior is normal. However, + mode used by the display. On Windows, the behaviour is normal. However, there are differences on other platforms. On Unix variations using X11 extensions it should behave as defined, but some irregularities may occur. - - On wxMac passing in wxDefaultVideoMode as the mode parameter does - nothing. This happens because carbon no longer has access to - @c DMUseScreenPrefs(), an undocumented function that changed the video - mode to the system default by using the system's "scrn" resource. */ bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode); @@ -63,19 +57,13 @@ public: /** Returns the number of connected displays. */ - static unsigned GetCount(); + static unsigned int GetCount(); /** Returns the current video mode that this display is in. */ wxVideoMode GetCurrentMode() const; - /** - Returns the bit depth of the display whose index was passed to the - constructor. - */ - int GetDepth() const; - /** Returns the index of the display on which the given point lies, or @c wxNOT_FOUND if the point is not on any connected display.