#ifndef _WX_REGION_H_BASE_
#define _WX_REGION_H_BASE_
-#include "wx/bitmap.h"
#include "wx/gdiobj.h"
#include "wx/gdicmn.h"
-class WXDLLEXPORT wxColour;
-class WXDLLEXPORT wxRegion;
+class WXDLLIMPEXP_FWD_CORE wxBitmap;
+class WXDLLIMPEXP_FWD_CORE wxColour;
+class WXDLLIMPEXP_FWD_CORE wxRegion;
// ----------------------------------------------------------------------------
// constants
// wxRegionBase defines wxRegion API
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxRegionBase : public wxGDIObject
+class WXDLLIMPEXP_CORE wxRegionBase : public wxGDIObject
{
public:
// ctors
wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h);
wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
wxRegion(const wxRect& rect);
- wxRegion(size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE);
+ wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
wxRegion(const wxBitmap& bmp);
wxRegion(const wxBitmap& bmp, const wxColour& transp, int tolerance = 0);
#endif // 0
// accessors
// ---------
- bool Ok() const { return IsOk(); }
- bool IsOk() const { return m_refData != NULL; }
-
// Is region empty?
virtual bool IsEmpty() const = 0;
bool Empty() const { return IsEmpty(); }
// ports with Combine() in this class
#if defined(__WXPALMOS__) || \
defined(__WXMSW__) || \
- defined(__WXMAC__) || \
+ ( defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON ) || \
defined(__WXPM__)
#define wxHAS_REGION_COMBINE
-class WXDLLEXPORT wxRegionWithCombine : public wxRegionBase
+class WXDLLIMPEXP_CORE wxRegionWithCombine : public wxRegionBase
{
public:
// these methods are not part of public API as they're not implemented on
virtual bool DoCombine(const wxRegion& region, wxRegionOp op) = 0;
// implement some wxRegionBase pure virtuals in terms of Combine()
- virtual bool DoUnionWithRect(const wxRect& rect)
- { return Combine(rect, wxRGN_OR); }
- virtual bool DoUnionWithRegion(const wxRegion& region)
- { return Combine(region, wxRGN_OR); }
-
- virtual bool DoIntersect(const wxRegion& region)
- { return Combine(region, wxRGN_AND); }
- virtual bool DoSubtract(const wxRegion& region)
- { return Combine(region, wxRGN_DIFF); }
- virtual bool DoXor(const wxRegion& region)
- { return Combine(region, wxRGN_XOR); }
+ virtual bool DoUnionWithRect(const wxRect& rect);
+ virtual bool DoUnionWithRegion(const wxRegion& region);
+ virtual bool DoIntersect(const wxRegion& region);
+ virtual bool DoSubtract(const wxRegion& region);
+ virtual bool DoXor(const wxRegion& region);
};
#endif // ports with wxRegion::Combine()
#elif defined(__WXDFB__)
#include "wx/dfb/region.h"
#elif defined(__WXMAC__)
- #include "wx/mac/region.h"
+ #include "wx/osx/region.h"
#elif defined(__WXCOCOA__)
#include "wx/cocoa/region.h"
#elif defined(__WXPM__)