X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11e720751c4645c7e7fbe298640ac72a60fb8a2b..f6840be66eb772c08f0cbb43de677509d5d132bb:/include/wx/display.h?ds=sidebyside diff --git a/include/wx/display.h b/include/wx/display.h index 083ae2b954..99423b6479 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -5,7 +5,7 @@ // Modified by: Vadim Zeitlin (resolution changes, display modes, ...) // Created: 06/21/02 // RCS-ID: $Id$ -// Copyright: (c) 2002-2003 wxWindows team +// Copyright: (c) 2002-2003 wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -24,12 +24,12 @@ class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxPoint; class WXDLLEXPORT wxRect; -class WXDLLEXPORT wxString; +class WXDLLEXPORT wxString; WX_DECLARE_EXPORTED_OBJARRAY(wxVideoMode, wxArrayVideoModes); // default, uninitialized, video mode object -WXDLLEXPORT_DATA(extern const wxVideoMode) wxDefaultVideoMode; +extern WXDLLEXPORT_DATA(const wxVideoMode) wxDefaultVideoMode; // ---------------------------------------------------------------------------- // wxDisplayBase: represents a display/monitor attached to the system @@ -67,8 +67,8 @@ public: // name may be empty virtual wxString GetName() const = 0; - // display 0 is always the primary display - bool IsPrimary() const { return m_index == 0; } + // display 0 is usually the primary display + virtual bool IsPrimary() const { return m_index == 0; } // enumerate all video modes supported by this display matching the given @@ -111,6 +111,8 @@ protected: #include "wx/unix/displayx11.h" #elif defined(__WXX11__) #include "wx/unix/displayx11.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/display.h" #elif defined(__WXMAC__) #include "wx/mac/display.h" #elif defined(__WXPM__)