X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97c985452b20a8c2f0bbfb1d0275298bf09fb45..e29b83a455bead3dae44300f631d07aa9635d3e9:/src/motif/region.cpp?ds=sidebyside diff --git a/src/motif/region.cpp b/src/motif/region.cpp index 3a8f5603d0..d4ced6405d 100644 --- a/src/motif/region.cpp +++ b/src/motif/region.cpp @@ -104,6 +104,14 @@ wxRegion::~wxRegion() // 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 //----------------------------------------------------------------------------- @@ -198,9 +206,7 @@ bool wxRegion::Combine(const wxRegion& region, wxRegionOp op) break ; } - // TODO combine region - - return FALSE; + return FALSE; } bool wxRegion::Combine(const wxRect& rect, wxRegionOp op) @@ -237,7 +243,7 @@ wxRect wxRegion::GetBox() const // Is region empty? bool wxRegion::Empty() const { - return m_refData ? XEmptyRegion(M_REGION) : FALSE; + return m_refData ? XEmptyRegion(M_REGION) : TRUE; } //-----------------------------------------------------------------------------