| 1 | ///////////////////////////////////////////////////////////////////////////// |
| 2 | // File: region.cpp |
| 3 | // Purpose: Region class |
| 4 | // Author: Markus Holzem, Julian Smart, Robert Roebling |
| 5 | // Created: Fri Oct 24 10:46:34 MET 1997 |
| 6 | // RCS-ID: $Id$ |
| 7 | // Copyright: (c) 1997 Markus Holzem, Julian Smart, Robert Roebling |
| 8 | // Licence: wxWindows licence |
| 9 | ///////////////////////////////////////////////////////////////////////////// |
| 10 | |
| 11 | #ifdef __GNUG__ |
| 12 | #pragma implementation "region.h" |
| 13 | #endif |
| 14 | |
| 15 | #include "wx/region.h" |
| 16 | #include "wx/gdicmn.h" |
| 17 | #include "wx/log.h" |
| 18 | |
| 19 | // ---------------------------------------------------------------------------- |
| 20 | // macros |
| 21 | // ---------------------------------------------------------------------------- |
| 22 | |
| 23 | IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject); |
| 24 | IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject); |
| 25 | |
| 26 | // ---------------------------------------------------------------------------- |
| 27 | // wxRegion construction |
| 28 | // ---------------------------------------------------------------------------- |
| 29 | |
| 30 | wxRegion::~wxRegion() |
| 31 | { |
| 32 | // m_refData unrefed in ~wxObject |
| 33 | } |
| 34 | |
| 35 | // ---------------------------------------------------------------------------- |
| 36 | // wxRegion comparison |
| 37 | // ---------------------------------------------------------------------------- |
| 38 | |
| 39 | // ---------------------------------------------------------------------------- |
| 40 | // wxRegion operations |
| 41 | // ---------------------------------------------------------------------------- |
| 42 | |
| 43 | void wxRegion::Clear() |
| 44 | { |
| 45 | UnRef(); |
| 46 | } |
| 47 | |
| 48 | bool wxRegion::Combine(long x, long y, long width, long height, wxRegionOp op) |
| 49 | { |
| 50 | return false; |
| 51 | } |
| 52 | bool wxRegion::Combine(const wxRegion& region, wxRegionOp op) |
| 53 | { |
| 54 | return false; |
| 55 | } |
| 56 | bool wxRegion::Combine(const wxRect& rect, wxRegionOp op) |
| 57 | { |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | // Does the region contain the point (x,y)? |
| 63 | wxRegionContain wxRegion::Contains(long x, long y) const |
| 64 | { |
| 65 | return wxOutRegion; |
| 66 | } |
| 67 | |
| 68 | // Does the region contain the point pt? |
| 69 | wxRegionContain wxRegion::Contains(const wxPoint& pt) const |
| 70 | { |
| 71 | return wxOutRegion; |
| 72 | } |
| 73 | |
| 74 | // Does the region contain the rectangle (x, y, w, h)? |
| 75 | wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const |
| 76 | { |
| 77 | return wxOutRegion; |
| 78 | } |
| 79 | |
| 80 | // Does the region contain the rectangle rect? |
| 81 | wxRegionContain wxRegion::Contains(const wxRect& rect) const |
| 82 | { |
| 83 | return wxOutRegion; |
| 84 | } |
| 85 | |
| 86 | void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const |
| 87 | { |
| 88 | } |
| 89 | |
| 90 | wxRect wxRegion::GetBox() const |
| 91 | { |
| 92 | return wxRect(); |
| 93 | } |
| 94 | |
| 95 | wxRegion::wxRegion() |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h) |
| 100 | { |
| 101 | } |
| 102 | |
| 103 | wxRegion::wxRegion(const wxRect& rect) |
| 104 | { |
| 105 | } |
| 106 | |
| 107 | wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) |
| 108 | { |
| 109 | } |
| 110 | |
| 111 | wxRegionIterator::wxRegionIterator() |
| 112 | { |
| 113 | } |
| 114 | |
| 115 | wxRegionIterator::~wxRegionIterator() |
| 116 | { |
| 117 | } |
| 118 | |
| 119 | // vi:sts=4:sw=4:et |