{
AllocExclusive();
- if ( M_REGION->m_rect.Inside(rect) )
+ if ( M_REGION->m_rect.Contains(rect) )
{
return true;
}
- else if ( rect.Inside(M_REGION->m_rect) )
+ else if ( rect.Contains(M_REGION->m_rect) )
{
M_REGION->m_rect = rect;
return true;
{
wxCHECK_MSG( Ok(), false, _T("invalid region") );
- if ( rect.Inside(M_REGION->m_rect) )
+ if ( rect.Contains(M_REGION->m_rect) )
{
// subtracted rectangle contains this one, so the result is empty
// rectangle
{
wxCHECK_MSG( Ok(), wxOutRegion, _T("invalid region") );
- if (M_REGION->m_rect.Inside(x, y))
+ if (M_REGION->m_rect.Contains(x, y))
return wxInRegion;
else
return wxOutRegion;
wxCHECK_MSG( Ok(), wxOutRegion, _T("invalid region") );
// 1) is the rectangle entirely covered by the region?
- if (M_REGION->m_rect.Inside(rect))
+ if (M_REGION->m_rect.Contains(rect))
return wxInRegion;
// 2) is the rectangle completely outside the region?