X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1aebc2005735ac58e3cf3de0c61e08a64e6af9ea..549c8cc2fe3ab03276745d546b0f81297c34a147:/include/wx/display.h?ds=inline diff --git a/include/wx/display.h b/include/wx/display.h index 0714805e5c..b85a04471c 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -5,14 +5,14 @@ // 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 ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_DISPLAY_H_BASE_ #define _WX_DISPLAY_H_BASE_ -#ifdef wxUSE_DISPLAY +#if wxUSE_DISPLAY #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "displaybase.h" @@ -24,7 +24,7 @@ class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxPoint; class WXDLLEXPORT wxRect; -class WXDLLEXPORT wxString; +class WXDLLEXPORT wxString; WX_DECLARE_EXPORTED_OBJARRAY(wxVideoMode, wxArrayVideoModes); @@ -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 @@ -109,6 +109,10 @@ protected: #include "wx/unix/displayx11.h" #elif defined(__WXGTK__) #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__)