projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed wxscintilla compilation for wxDFB.
[wxWidgets.git]
/
src
/
gtk
/
region.cpp
diff --git
a/src/gtk/region.cpp
b/src/gtk/region.cpp
index 964ae16316061c75ddcd15dfedc6c28218a8f810..2073c240461f5ee210affad11768de0b997a0cb9 100644
(file)
--- a/
src/gtk/region.cpp
+++ b/
src/gtk/region.cpp
@@
-32,7
+32,7
@@
// wxRegionRefData: private class containing the information about the region
// ----------------------------------------------------------------------------
// wxRegionRefData: private class containing the information about the region
// ----------------------------------------------------------------------------
-class wxRegionRefData : public wx
Object
RefData
+class wxRegionRefData : public wx
GDI
RefData
{
public:
wxRegionRefData()
{
public:
wxRegionRefData()
@@
-41,7
+41,7
@@
public:
}
wxRegionRefData(const wxRegionRefData& refData)
}
wxRegionRefData(const wxRegionRefData& refData)
- : wx
Object
RefData()
+ : wx
GDI
RefData()
{
m_region = gdk_region_copy(refData.m_region);
}
{
m_region = gdk_region_copy(refData.m_region);
}
@@
-90,7
+90,8
@@
wxRegion::wxRegion( GdkRegion *region )
M_REGIONDATA->m_region = gdk_region_copy( region );
}
M_REGIONDATA->m_region = gdk_region_copy( region );
}
-wxRegion::wxRegion( size_t n, const wxPoint *points, int fillStyle )
+wxRegion::wxRegion( size_t n, const wxPoint *points,
+ wxPolygonFillMode fillStyle )
{
GdkPoint *gdkpoints = new GdkPoint[n];
for ( size_t i = 0 ; i < n ; i++ )
{
GdkPoint *gdkpoints = new GdkPoint[n];
for ( size_t i = 0 ; i < n ; i++ )
@@
-119,12
+120,12
@@
wxRegion::~wxRegion()
// m_refData unrefed in ~wxObject
}
// m_refData unrefed in ~wxObject
}
-wx
ObjectRefData *wxRegion::Create
RefData() const
+wx
GDIRefData *wxRegion::CreateGDI
RefData() const
{
return new wxRegionRefData;
}
{
return new wxRegionRefData;
}
-wx
ObjectRefData *wxRegion::CloneRefData(const wxObject
RefData *data) const
+wx
GDIRefData *wxRegion::CloneGDIRefData(const wxGDI
RefData *data) const
{
return new wxRegionRefData(*(wxRegionRefData *)data);
}
{
return new wxRegionRefData(*(wxRegionRefData *)data);
}
@@
-178,7
+179,7
@@
bool wxRegion::DoUnionWithRect(const wxRect& r)
bool wxRegion::DoUnionWithRegion( const wxRegion& region )
{
bool wxRegion::DoUnionWithRegion( const wxRegion& region )
{
- wxCHECK_MSG( region.Ok(), false,
_
T("invalid region") );
+ wxCHECK_MSG( region.Ok(), false,
wx
T("invalid region") );
if (!m_refData)
{
if (!m_refData)
{
@@
-197,7
+198,7
@@
bool wxRegion::DoUnionWithRegion( const wxRegion& region )
bool wxRegion::DoIntersect( const wxRegion& region )
{
bool wxRegion::DoIntersect( const wxRegion& region )
{
- wxCHECK_MSG( region.Ok(), false,
_
T("invalid region") );
+ wxCHECK_MSG( region.Ok(), false,
wx
T("invalid region") );
if (!m_refData)
{
if (!m_refData)
{
@@
-214,7
+215,7
@@
bool wxRegion::DoIntersect( const wxRegion& region )
bool wxRegion::DoSubtract( const wxRegion& region )
{
bool wxRegion::DoSubtract( const wxRegion& region )
{
- wxCHECK_MSG( region.Ok(), false,
_
T("invalid region") );
+ wxCHECK_MSG( region.Ok(), false,
wx
T("invalid region") );
if (!m_refData)
{
if (!m_refData)
{
@@
-231,7
+232,7
@@
bool wxRegion::DoSubtract( const wxRegion& region )
bool wxRegion::DoXor( const wxRegion& region )
{
bool wxRegion::DoXor( const wxRegion& region )
{
- wxCHECK_MSG( region.Ok(), false,
_
T("invalid region") );
+ wxCHECK_MSG( region.Ok(), false,
wx
T("invalid region") );
if (!m_refData)
{
if (!m_refData)
{
@@
-327,7
+328,7
@@
wxRegionContain wxRegion::DoContainsRect(const wxRect& r) const
GdkRegion *wxRegion::GetRegion() const
{
if (!m_refData)
GdkRegion *wxRegion::GetRegion() const
{
if (!m_refData)
- return
(GdkRegion*)
NULL;
+ return NULL;
return M_REGIONDATA->m_region;
}
return M_REGIONDATA->m_region;
}
@@
-421,28
+422,28
@@
wxRegionIterator wxRegionIterator::operator ++ (int)
wxCoord wxRegionIterator::GetX() const
{
wxCoord wxRegionIterator::GetX() const
{
- wxCHECK_MSG( HaveRects(), 0,
_
T("invalid wxRegionIterator") );
+ wxCHECK_MSG( HaveRects(), 0,
wx
T("invalid wxRegionIterator") );
return m_rects[m_current].x;
}
wxCoord wxRegionIterator::GetY() const
{
return m_rects[m_current].x;
}
wxCoord wxRegionIterator::GetY() const
{
- wxCHECK_MSG( HaveRects(), 0,
_
T("invalid wxRegionIterator") );
+ wxCHECK_MSG( HaveRects(), 0,
wx
T("invalid wxRegionIterator") );
return m_rects[m_current].y;
}
wxCoord wxRegionIterator::GetW() const
{
return m_rects[m_current].y;
}
wxCoord wxRegionIterator::GetW() const
{
- wxCHECK_MSG( HaveRects(), 0,
_
T("invalid wxRegionIterator") );
+ wxCHECK_MSG( HaveRects(), 0,
wx
T("invalid wxRegionIterator") );
return m_rects[m_current].width;
}
wxCoord wxRegionIterator::GetH() const
{
return m_rects[m_current].width;
}
wxCoord wxRegionIterator::GetH() const
{
- wxCHECK_MSG( HaveRects(), 0,
_
T("invalid wxRegionIterator") );
+ wxCHECK_MSG( HaveRects(), 0,
wx
T("invalid wxRegionIterator") );
return m_rects[m_current].height;
}
return m_rects[m_current].height;
}