projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for MSWGetCreateWindowFlags signature change
[wxWidgets.git]
/
src
/
mac
/
region.cpp
diff --git
a/src/mac/region.cpp
b/src/mac/region.cpp
index afe12ce60332d74ceabf9d43c6f806b81230d09c..a0204caad5328aaaff03d7d2709186a7b7d7ff69 100644
(file)
--- a/
src/mac/region.cpp
+++ b/
src/mac/region.cpp
@@
-63,25
+63,25
@@
wxRegion::wxRegion()
wxRegion::wxRegion(WXHRGN hRegion )
{
m_refData = new wxRegionRefData;
wxRegion::wxRegion(WXHRGN hRegion )
{
m_refData = new wxRegionRefData;
- CopyRgn(
hRegion ,
M_REGION ) ;
+ CopyRgn(
(RgnHandle) hRegion , (RgnHandle)
M_REGION ) ;
}
wxRegion::wxRegion(long x, long y, long w, long h)
{
m_refData = new wxRegionRefData;
}
wxRegion::wxRegion(long x, long y, long w, long h)
{
m_refData = new wxRegionRefData;
- SetRectRgn( M_REGION , x , y , x+w , y+h ) ;
+ SetRectRgn(
(RgnHandle)
M_REGION , x , y , x+w , y+h ) ;
}
wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
{
m_refData = new wxRegionRefData;
}
wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
{
m_refData = new wxRegionRefData;
- SetRectRgn( M_REGION , topLeft.x , topLeft.y , bottomRight.x , bottomRight.y ) ;
+ SetRectRgn(
(RgnHandle)
M_REGION , topLeft.x , topLeft.y , bottomRight.x , bottomRight.y ) ;
}
wxRegion::wxRegion(const wxRect& rect)
{
m_refData = new wxRegionRefData;
}
wxRegion::wxRegion(const wxRect& rect)
{
m_refData = new wxRegionRefData;
- SetRectRgn( M_REGION , rect.x , rect.y , rect.x+rect.width , rect.y+rect.height ) ;
+ SetRectRgn(
(RgnHandle)
M_REGION , rect.x , rect.y , rect.x+rect.width , rect.y+rect.height ) ;
}
/*!
}
/*!
@@
-194,7
+194,7
@@
bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
//-----------------------------------------------------------------------------
// Outer bounds of region
//-----------------------------------------------------------------------------
// Outer bounds of region
-void wxRegion::GetBox(
long& x, long& y, long&w, long &
h) const
+void wxRegion::GetBox(
wxCoord& x, wxCoord& y, wxCoord& w, wxCoord&
h) const
{
if (m_refData)
{
{
if (m_refData)
{
@@
-213,7
+213,7
@@
void wxRegion::GetBox(long& x, long& y, long&w, long &h) const
wxRect wxRegion::GetBox() const
{
wxRect wxRegion::GetBox() const
{
-
long
x, y, w, h;
+
wxCoord
x, y, w, h;
GetBox(x, y, w, h);
return wxRect(x, y, w, h);
}
GetBox(x, y, w, h);
return wxRect(x, y, w, h);
}