X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06efac1f8d6acde1610ba23a7b315ade8ed46679..2654f7e423bb773ca52c8b465c6ec9abfa398e45:/include/wx/display.h diff --git a/include/wx/display.h b/include/wx/display.h index 4227c22a3a..835a233b23 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -14,59 +14,17 @@ #if wxUSE_DISPLAY -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "displaybase.h" #endif #include "wx/dynarray.h" +#include "wx/vidmode.h" -// ---------------------------------------------------------------------------- -// wxVideoMode: contains video mode parameters for a display -// ---------------------------------------------------------------------------- - -struct WXDLLEXPORT wxVideoMode -{ - wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0) - { - w = width; - h = height; - - bpp = depth; - - refresh = freq; - } - - // default copy ctor and assignment operator are ok - - bool operator==(const wxVideoMode& m) const - { - return w == m.w && h == m.h && bpp == m.bpp && refresh == m.refresh; - } - bool operator!=(const wxVideoMode& mode) const - { - return !operator==(mode); - } - - // returns true if this mode matches the other one in the sense that all - // non zero fields of the other mode have the same value in this one - // (except for refresh which is allowed to have a greater value) - bool Matches(const wxVideoMode& other) const - { - return (!other.w || w == other.w) && - (!other.h || h == other.h) && - (!other.bpp || bpp == other.bpp) && - (!other.refresh || refresh >= other.refresh); - } - - // the screen size in pixels (e.g. 640*480), 0 means unspecified - int w, h; - - // bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known - int bpp; - - // refresh frequency in Hz, 0 means unspecified/unknown - int refresh; -}; +class WXDLLEXPORT wxWindow; +class WXDLLEXPORT wxPoint; +class WXDLLEXPORT wxRect; +class WXDLLEXPORT wxString; WX_DECLARE_EXPORTED_OBJARRAY(wxVideoMode, wxArrayVideoModes); @@ -141,16 +99,16 @@ protected: // the index of this display (0 is always the primary one) size_t m_index; - DECLARE_NO_COPY_CLASS(wxDisplayBase); + DECLARE_NO_COPY_CLASS(wxDisplayBase) }; #if defined(__WXMSW__) #include "wx/msw/display.h" #elif defined(__WXMOTIF__) - #include "wx/motif/display.h" + #include "wx/unix/displayx11.h" #elif defined(__WXGTK__) - #include "wx/gtk/display.h" + #include "wx/unix/displayx11.h" #elif defined(__WXMAC__) #include "wx/mac/display.h" #elif defined(__WXPM__)