// m_refData unrefed in ~wxObject
}
+// Get the internal region handle
+WXRegion wxRegion::GetXRegion() const
+{
+ wxASSERT( m_refData !=NULL );
+
+ return (WXRegion) ((wxRegionRefData*)m_refData)->m_region;
+}
+
//-----------------------------------------------------------------------------
//# Modify region
//-----------------------------------------------------------------------------
break ;
}
- // TODO combine region
-
- return FALSE;
+ return FALSE;
}
bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
// Is region empty?
bool wxRegion::Empty() const
{
- return m_refData ? XEmptyRegion(M_REGION) : FALSE;
+ return m_refData ? XEmptyRegion(M_REGION) : TRUE;
}
//-----------------------------------------------------------------------------