X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30c841c84dce46690499567141b98ffcf5a61b6a..3039ade95dbad1ee5a5ed03c25e3ed9241907850:/include/wx/overlay.h diff --git a/include/wx/overlay.h b/include/wx/overlay.h index b99b850aa8..831fd8f1ba 100644 --- a/include/wx/overlay.h +++ b/include/wx/overlay.h @@ -14,14 +14,12 @@ #include "wx/defs.h" -#ifndef wxHAS_NATIVE_OVERLAY - #if defined(wxMAC_USE_CORE_GRAPHICS) && wxMAC_USE_CORE_GRAPHICS - #define wxHAS_NATIVE_OVERLAY 1 - #elif defined(__WXDFB__) - #define wxHAS_NATIVE_OVERLAY 1 - #else - #define wxHAS_NATIVE_OVERLAY 0 - #endif +#if defined(__WXMAC__) && wxOSX_USE_CARBON + #define wxHAS_NATIVE_OVERLAY 1 +#elif defined(__WXDFB__) + #define wxHAS_NATIVE_OVERLAY 1 +#else + // don't define wxHAS_NATIVE_OVERLAY #endif // ---------------------------------------------------------------------------- @@ -30,10 +28,10 @@ // internal code // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxOverlayImpl; -class WXDLLEXPORT wxWindowDC; +class WXDLLIMPEXP_FWD_CORE wxOverlayImpl; +class WXDLLIMPEXP_FWD_CORE wxDC; -class WXDLLEXPORT wxOverlay +class WXDLLIMPEXP_CORE wxOverlay { public: wxOverlay(); @@ -47,18 +45,18 @@ public: wxOverlayImpl *GetImpl() { return m_impl; } private: - friend class WXDLLEXPORT wxDCOverlay; + friend class WXDLLIMPEXP_FWD_CORE wxDCOverlay; // returns true if it has been setup bool IsOk(); - void Init(wxWindowDC* dc, int x , int y , int width , int height); + void Init(wxDC* dc, int x , int y , int width , int height); - void BeginDrawing(wxWindowDC* dc); + void BeginDrawing(wxDC* dc); - void EndDrawing(wxWindowDC* dc); + void EndDrawing(wxDC* dc); - void Clear(wxWindowDC* dc); + void Clear(wxDC* dc); wxOverlayImpl* m_impl; @@ -69,15 +67,15 @@ private: }; -class WXDLLEXPORT wxDCOverlay +class WXDLLIMPEXP_CORE wxDCOverlay { public: // connects this overlay to the corresponding drawing dc, if the overlay is // not initialized yet this call will do so - wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height); + wxDCOverlay(wxOverlay &overlay, wxDC *dc, int x , int y , int width , int height); // convenience wrapper that behaves the same using the entire area of the dc - wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc); + wxDCOverlay(wxOverlay &overlay, wxDC *dc); // removes the connection between the overlay and the dc virtual ~wxDCOverlay(); @@ -86,11 +84,11 @@ public: void Clear(); private: - void Init(wxWindowDC *dc, int x , int y , int width , int height); + void Init(wxDC *dc, int x , int y , int width , int height); wxOverlay& m_overlay; - wxWindowDC* m_dc; + wxDC* m_dc; DECLARE_NO_COPY_CLASS(wxDCOverlay)