X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47f43b6bb58365c7ec329aace9cc0acafd408098..1a9a6eed360bc9a263f2ea7c0d470953397de531:/include/wx/display_impl.h?ds=sidebyside diff --git a/include/wx/display_impl.h b/include/wx/display_impl.h index cfd40a3d67..015ffec466 100644 --- a/include/wx/display_impl.h +++ b/include/wx/display_impl.h @@ -17,7 +17,7 @@ // wxDisplayFactory: allows to create wxDisplay objects // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxDisplayFactory +class WXDLLIMPEXP_CORE wxDisplayFactory { public: wxDisplayFactory() { } @@ -26,10 +26,10 @@ public: // create a new display object // // it can return a NULL pointer if the display creation failed - virtual wxDisplayImpl *CreateDisplay(size_t n) = 0; + virtual wxDisplayImpl *CreateDisplay(unsigned n) = 0; // get the total number of displays - virtual size_t GetCount() = 0; + virtual unsigned GetCount() = 0; // return the display for the given point or wxNOT_FOUND virtual int GetFromPoint(const wxPoint& pt) = 0; @@ -37,14 +37,14 @@ public: // return the display for the given window or wxNOT_FOUND // // the window pointer must not be NULL (i.e. caller should check it) - virtual int GetFromWindow(wxWindow *window); + virtual int GetFromWindow(const wxWindow *window); }; // ---------------------------------------------------------------------------- // wxDisplayImpl: base class for all wxDisplay implementations // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxDisplayImpl +class WXDLLIMPEXP_CORE wxDisplayImpl { public: // virtual dtor for this base class @@ -61,7 +61,7 @@ public: virtual wxString GetName() const = 0; // return the index of this display - size_t GetIndex() const { return m_index; } + unsigned GetIndex() const { return m_index; } // return true if this is the primary monitor (usually one with index 0) virtual bool IsPrimary() const { return GetIndex() == 0; } @@ -80,11 +80,11 @@ public: protected: // create the object providing access to the display with the given index - wxDisplayImpl(size_t n) : m_index(n) { } + wxDisplayImpl(unsigned n) : m_index(n) { } // the index of this display (0 is always the primary one) - const size_t m_index; + const unsigned m_index; friend class wxDisplayFactory; @@ -98,11 +98,11 @@ protected: // this is a stub implementation using single/main display only, it is // available even if wxUSE_DISPLAY == 0 -class WXDLLEXPORT wxDisplayFactorySingle : public wxDisplayFactory +class WXDLLIMPEXP_CORE wxDisplayFactorySingle : public wxDisplayFactory { public: - virtual wxDisplayImpl *CreateDisplay(size_t n); - virtual size_t GetCount() { return 1; } + virtual wxDisplayImpl *CreateDisplay(unsigned n); + virtual unsigned GetCount() { return 1; } virtual int GetFromPoint(const wxPoint& pt); };