added additional setters for the current clip region
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,6 +54,7 @@ wxWindowDC::wxWindowDC(wxWindow *the_canvas)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
the_canvas->MacGetPortParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
the_canvas->MacGetPortParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_minY = m_minX = 0;
|
m_minY = m_minX = 0;
|
||||||
wxSize size = the_canvas->GetSize() ;
|
wxSize size = the_canvas->GetSize() ;
|
||||||
@@ -84,6 +85,7 @@ wxClientDC::wxClientDC(wxWindow *window)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_minY = m_minX = 0;
|
m_minY = m_minX = 0;
|
||||||
wxSize size = window->GetSize() ;
|
wxSize size = window->GetSize() ;
|
||||||
@@ -114,6 +116,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
CopyRgn( window->GetUpdateRegion().GetWXHRGN() , m_macBoundaryClipRgn ) ;
|
CopyRgn( window->GetUpdateRegion().GetWXHRGN() , m_macBoundaryClipRgn ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_ok = TRUE ;
|
m_ok = TRUE ;
|
||||||
/*
|
/*
|
||||||
|
@@ -54,6 +54,7 @@ wxWindowDC::wxWindowDC(wxWindow *the_canvas)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
the_canvas->MacGetPortParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
the_canvas->MacGetPortParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_minY = m_minX = 0;
|
m_minY = m_minX = 0;
|
||||||
wxSize size = the_canvas->GetSize() ;
|
wxSize size = the_canvas->GetSize() ;
|
||||||
@@ -84,6 +85,7 @@ wxClientDC::wxClientDC(wxWindow *window)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
SetRectRgn( m_macBoundaryClipRgn , clipRect.left , clipRect.top , clipRect.right , clipRect.bottom ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_minY = m_minX = 0;
|
m_minY = m_minX = 0;
|
||||||
wxSize size = window->GetSize() ;
|
wxSize size = window->GetSize() ;
|
||||||
@@ -114,6 +116,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
|
|||||||
Rect clipRect ;
|
Rect clipRect ;
|
||||||
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
window->MacGetPortClientParams(&m_macLocalOrigin, &clipRect , &windowref , &rootwindow );
|
||||||
CopyRgn( window->GetUpdateRegion().GetWXHRGN() , m_macBoundaryClipRgn ) ;
|
CopyRgn( window->GetUpdateRegion().GetWXHRGN() , m_macBoundaryClipRgn ) ;
|
||||||
|
CopyRgn( m_macBoundaryClipRgn , m_macCurrentClipRgn ) ;
|
||||||
m_macPort = UMAGetWindowPort( windowref ) ;
|
m_macPort = UMAGetWindowPort( windowref ) ;
|
||||||
m_ok = TRUE ;
|
m_ok = TRUE ;
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user