/////////////////////////////////////////////////////////////////////////////
-// Name: region.h
+// Name: wx/mgl/region.h
// Purpose: wxRegion class
// Author: Vaclav Slavik
// Created: 2001/03/12
class MGLRegion;
-class WXDLLEXPORT wxRegion : public wxRegionBase
+class WXDLLIMPEXP_CORE wxRegion : public wxRegionBase
{
public:
wxRegion();
wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
wxRegion(const wxRect& rect);
wxRegion(const MGLRegion& region);
- wxRegion( const wxBitmap& bmp)
+ wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );
+ wxRegion(const wxBitmap& bmp)
{
Union(bmp);
}
- wxRegion( const wxBitmap& bmp,
- const wxColour& transColour, int tolerance = 0)
+ wxRegion(const wxBitmap& bmp,
+ const wxColour& transColour, int tolerance = 0)
{
Union(bmp, transColour, tolerance);
}
const MGLRegion& GetMGLRegion() const;
protected:
- // ref counting code
- virtual wxObjectRefData *CreateRefData() const;
- virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
+ virtual wxGDIRefData *CreateGDIRefData() const;
+ virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
// wxRegionBase pure virtuals
virtual bool DoIsEqual(const wxRegion& region) const;
private:
DECLARE_DYNAMIC_CLASS(wxRegion);
- friend class WXDLLEXPORT wxRegionIterator;
+ friend class WXDLLIMPEXP_FWD_CORE wxRegionIterator;
};
WX_DECLARE_EXPORTED_LIST(wxRect, wxRegionRectList);
-class WXDLLEXPORT wxRegionIterator : public wxObject
+class WXDLLIMPEXP_CORE wxRegionIterator : public wxObject
{
public:
wxRegionIterator(void);