Added more wxRegion tests to erase sample.
Implemented "clear now, paint later". Corrected colour-by-name lookup. Corrected DrawRectangle code which produced redraw garbage under wxX11. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -188,6 +188,18 @@ void MyCanvas::OnPaint( wxPaintEvent &event )
|
||||
|
||||
dc.SetBrush( *wxRED_BRUSH );
|
||||
dc.DrawRectangle( 100, 100, 200, 200 );
|
||||
|
||||
dc.DestroyClipingRegion();
|
||||
|
||||
dc.SetPen( *wxTRANSPARENT_PEN );
|
||||
|
||||
wxRegion strip( 110, 200, 30, 1 );
|
||||
wxRegionIterator it( strip );
|
||||
while (it)
|
||||
{
|
||||
dc.DrawRectangle( it.GetX(), it.GetY(), it.GetWidth(), it.GetHeight() );
|
||||
it ++;
|
||||
}
|
||||
}
|
||||
|
||||
void MyCanvas::OnEraseBackground( wxEraseEvent &event )
|
||||
|
Reference in New Issue
Block a user