]>
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::Offset(wxCoord x
, wxCoord y
)
53 bool wxRegion::Combine(long x
, long y
, long width
, long height
, wxRegionOp op
)
57 bool wxRegion::Combine(const wxRegion
& region
, wxRegionOp op
)
61 bool wxRegion::Combine(const wxRect
& rect
, wxRegionOp op
)
67 // Does the region contain the point (x,y)?
68 wxRegionContain
wxRegion::Contains(long x
, long y
) const
73 // Does the region contain the point pt?
74 wxRegionContain
wxRegion::Contains(const wxPoint
& pt
) const
79 // Does the region contain the rectangle (x, y, w, h)?
80 wxRegionContain
wxRegion::Contains(long x
, long y
, long w
, long h
) const
85 // Does the region contain the rectangle rect?
86 wxRegionContain
wxRegion::Contains(const wxRect
& rect
) const
91 void wxRegion::GetBox(wxCoord
& x
, wxCoord
& y
, wxCoord
&w
, wxCoord
&h
) const
95 wxRect
wxRegion::GetBox() const
104 wxRegion::wxRegion(wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
)
108 wxRegion::wxRegion(const wxRect
& rect
)
112 wxRegion::wxRegion(const wxPoint
& topLeft
, const wxPoint
& bottomRight
)
116 wxRegionIterator::wxRegionIterator()
120 wxRegionIterator::~wxRegionIterator()