#include <wx/dc.h>
void MyFunction(wxDC& dc) { wxDCClipper clip(dc, rect); // ... drawing functions here are affected by clipping rect ... } void OtherFunction() { wxDC dc; MyFunction(dc); // ... drawing functions here are not affected by clipping rect ... }
Public Member Functions | |
| wxDCClipper (wxDC &dc, const wxRegion &r) | |
| wxDCClipper (wxDC &dc, const wxRect &rect) | |
| wxDCClipper (wxDC &dc, int x, int y, int w, int h) | |
Sets the clipping region to the specified region/coordinates.
The clipping region is automatically unset when this object is destroyed.
Sets the clipping region to the specified region/coordinates.
The clipping region is automatically unset when this object is destroyed.
| wxDCClipper::wxDCClipper | ( | wxDC & | dc, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
Sets the clipping region to the specified region/coordinates.
The clipping region is automatically unset when this object is destroyed.
|
[ top ] |