);
} // end of wxRegion::wxRegion
-wxRegion::wxRegion(
- const wxPoint& rTopLeft
-, const wxPoint& rBottomRight
-)
+wxRegion::wxRegion(const wxPoint& rTopLeft,
+ const wxPoint& rBottomRight)
{
RECTL vRect;
SIZEL vSize = {0, 0};
);
} // end of wxRegion::wxRegion
-wxRegion::wxRegion(
- const wxRect& rRect
-)
+wxRegion::wxRegion(const wxRect& rRect)
{
RECTL vRect;
SIZEL vSize = {0, 0};
);
} // end of wxRegion::wxRegion
+wxRegion::wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode WXUNUSED(fillStyle))
+{
+ // TO DO
+}
+
//
// Destroy the region.
//
{
} // end of wxRegion::~wxRegion
-wxObjectRefData *wxRegion::CreateData() const
+wxGDIRefData *wxRegion::CreateGDIRefData() const
{
return new wxRegionRefData;
}
-wxObjectRefData *wxRegion::CloneData(const wxObjectRefData *data) const
+wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *data) const
{
return new wxRegionRefData(*(wxRegionRefData *)data);
}
#if 0
if ( ::OffsetRgn(GetHrgn(), x, y) == ERROR )
{
- wxLogLastError(_T("OffsetRgn"));
+ wxLogLastError(wxT("OffsetRgn"));
return false;
}
break;
default:
- wxFAIL_MSG( _T("unknown region operation") );
+ wxFAIL_MSG( wxT("unknown region operation") );
// fall through
case wxRGN_AND:
//# Information on region
//-----------------------------------------------------------------------------
-bool wxRegion::DoIsEqual(const wxRegion& region) const
+bool wxRegion::DoIsEqual(const wxRegion& WXUNUSED(region)) const
{
return false;
}
//
// Does the region contain the point pt?
//
-wxRegionContain wxRegion::DoContainsPoint( const wxPoint& rPoint ) const
+wxRegionContain wxRegion::DoContainsPoint( wxCoord x, wxCoord y ) const
{
- POINTL vPoint = { rPoint.x, rPoint.y };
+ POINTL vPoint = { x, y };
if (!m_refData)
return wxOutRegion;
return wxOutRegion;
RECTL vRect;
- vRect.xLeft = r.x;
- vRect.xRight = r.x + r.width;
- vRect.yTop = r.y + r.height;
- vRect.yBottom = r.y;
+ vRect.xLeft = rect.x;
+ vRect.xRight = rect.x + rect.width;
+ vRect.yTop = rect.y + rect.height;
+ vRect.yBottom = rect.y;
LONG lInside = ::GpiRectInRegion( ((wxRegionRefData*)m_refData)->m_hPS,
M_REGION,
case RRGN_ERROR :
default : return wxOutRegion;
}
+
} // end of wxRegion::Contains
//