]>
git.saurik.com Git - wxWidgets.git/blob - src/cocoa/region.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Region class
4 // Author: Markus Holzem, Julian Smart, Robert Roebling
5 // Created: Fri Oct 24 10:46:34 MET 1997
7 // Copyright: (c) 1997 Markus Holzem, Julian Smart, Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "region.h"
15 #include "wx/region.h"
16 #include "wx/gdicmn.h"
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxRegion
, wxGDIObject
);
24 IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator
,wxObject
);
26 // ----------------------------------------------------------------------------
27 // wxRegion construction
28 // ----------------------------------------------------------------------------
32 // m_refData unrefed in ~wxObject
35 // ----------------------------------------------------------------------------
36 // wxRegion comparison
37 // ----------------------------------------------------------------------------
39 // ----------------------------------------------------------------------------
40 // wxRegion operations
41 // ----------------------------------------------------------------------------
43 void wxRegion::Clear()
48 bool wxRegion::Combine(long x
, long y
, long width
, long height
, wxRegionOp op
)
52 bool wxRegion::Combine(const wxRegion
& region
, wxRegionOp op
)
56 bool wxRegion::Combine(const wxRect
& rect
, wxRegionOp op
)
62 // Does the region contain the point (x,y)?
63 wxRegionContain
wxRegion::Contains(long x
, long y
) const
68 // Does the region contain the point pt?
69 wxRegionContain
wxRegion::Contains(const wxPoint
& pt
) const
74 // Does the region contain the rectangle (x, y, w, h)?
75 wxRegionContain
wxRegion::Contains(long x
, long y
, long w
, long h
) const
80 // Does the region contain the rectangle rect?
81 wxRegionContain
wxRegion::Contains(const wxRect
& rect
) const
86 void wxRegion::GetBox(wxCoord
& x
, wxCoord
& y
, wxCoord
&w
, wxCoord
&h
) const
90 wxRect
wxRegion::GetBox() const
99 wxRegion::wxRegion(wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
)
103 wxRegion::wxRegion(const wxPoint
& topLeft
, const wxPoint
& bottomRight
)
107 wxRegionIterator::wxRegionIterator()
111 wxRegionIterator::~wxRegionIterator()