but rather seems to operate on the source region... added a bunch
of ifdefs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7783
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
rect.y = y;
rect.width = w;
rect.height = h;
rect.y = y;
rect.width = w;
rect.height = h;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,w,h) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,w,h) );
}
rect.y = topLeft.y;
rect.width = bottomRight.x - rect.x;
rect.height = bottomRight.y - rect.y;
rect.y = topLeft.y;
rect.width = bottomRight.x - rect.x;
rect.height = bottomRight.y - rect.y;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(topLeft,bottomRight) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(topLeft,bottomRight) );
}
g_rect.y = rect.y;
g_rect.width = rect.width;
g_rect.height = rect.height;
g_rect.y = rect.y;
g_rect.width = rect.width;
g_rect.height = rect.height;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &g_rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &g_rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &g_rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(rect.x,rect.y,rect.width,rect.height) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(rect.x,rect.y,rect.width,rect.height) );
}
{
m_refData = new wxRegionRefData();
GdkRegion *reg = gdk_region_new();
{
m_refData = new wxRegionRefData();
GdkRegion *reg = gdk_region_new();
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
+#else
GdkRegion *reg = gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,width,height) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,width,height) );
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_union( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_union( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_union( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
wxNode *node = region.GetRectList()->First();
while (node)
wxNode *node = region.GetRectList()->First();
while (node)
+#ifdef __WXGTK20__
+ gdk_region_intersect( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_intersect( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_intersect( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_subtract( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_subtract( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_subtract( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_xor( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_xor( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_xor( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
wxNode *node = region.GetRectList()->First();
while (node)
wxNode *node = region.GetRectList()->First();
while (node)
rect.y = y;
rect.width = w;
rect.height = h;
rect.y = y;
rect.width = w;
rect.height = h;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,w,h) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,w,h) );
}
rect.y = topLeft.y;
rect.width = bottomRight.x - rect.x;
rect.height = bottomRight.y - rect.y;
rect.y = topLeft.y;
rect.width = bottomRight.x - rect.x;
rect.height = bottomRight.y - rect.y;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(topLeft,bottomRight) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(topLeft,bottomRight) );
}
g_rect.y = rect.y;
g_rect.width = rect.width;
g_rect.height = rect.height;
g_rect.y = rect.y;
g_rect.width = rect.width;
g_rect.height = rect.height;
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &g_rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &g_rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &g_rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(rect.x,rect.y,rect.width,rect.height) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(rect.x,rect.y,rect.width,rect.height) );
}
{
m_refData = new wxRegionRefData();
GdkRegion *reg = gdk_region_new();
{
m_refData = new wxRegionRefData();
GdkRegion *reg = gdk_region_new();
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( reg, &rect );
+ M_REGIONDATA->m_region = reg;
+#else
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
M_REGIONDATA->m_region = gdk_region_union_with_rect( reg, &rect );
gdk_region_destroy( reg );
+#ifdef __WXGTK20__
+ gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
+#else
GdkRegion *reg = gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_region_union_with_rect( M_REGIONDATA->m_region, &rect );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,width,height) );
}
M_REGIONDATA->m_rects.Append( (wxObject*) new wxRect(x,y,width,height) );
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_union( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_union( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_union( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
wxNode *node = region.GetRectList()->First();
while (node)
wxNode *node = region.GetRectList()->First();
while (node)
+#ifdef __WXGTK20__
+ gdk_region_intersect( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_intersect( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_intersect( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_subtract( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_subtract( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_subtract( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
M_REGIONDATA->m_region = gdk_region_new();
}
M_REGIONDATA->m_region = gdk_region_new();
}
+#ifdef __WXGTK20__
+ gdk_region_xor( M_REGIONDATA->m_region, region.GetRegion() );
+#else
GdkRegion *reg = gdk_regions_xor( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
GdkRegion *reg = gdk_regions_xor( M_REGIONDATA->m_region, region.GetRegion() );
gdk_region_destroy( M_REGIONDATA->m_region );
M_REGIONDATA->m_region = reg;
wxNode *node = region.GetRectList()->First();
while (node)
wxNode *node = region.GetRectList()->First();
while (node)