X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc908104996c9b856fcb61b2f084a6025402d61..27d0dcd033be9b1356a36d582f3d3665a53e11e4:/include/wx/display.h diff --git a/include/wx/display.h b/include/wx/display.h index 05db85ab8d..a63376b6c7 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -20,6 +20,8 @@ #include "wx/dynarray.h" +class WXDLLEXPORT wxWindow; + // ---------------------------------------------------------------------------- // wxVideoMode: contains video mode parameters for a display // ---------------------------------------------------------------------------- @@ -100,6 +102,9 @@ public: static int GetFromWindow(wxWindow *window); + // return true if the object was initialized successfully + virtual bool IsOk() const { return true; } + // get the display size virtual wxRect GetGeometry() const = 0; @@ -138,7 +143,7 @@ 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) }; @@ -147,7 +152,7 @@ protected: #elif defined(__WXMOTIF__) #include "wx/motif/display.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__)