#include </home/zeitlin/src/wx/github/interface/wx/dc.h>
wxDCClipper is a helper class for setting a clipping region on a wxDC during its lifetime.
An object of wxDCClipper class is typically created on the stack so that it is automatically destroyed when the object goes out of scope. A typical usage example:
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 () | |
Destroys the clipping region associated with the DC passed to the ctor. | |
wxDCClipper (wxDC &dc, const wxRegion ®ion) | |
Sets the clipping region to the specified region/coordinates. | |
wxDCClipper (wxDC &dc, const wxRect &rect) | |
Sets the clipping region to the specified region/coordinates. | |
wxDCClipper (wxDC &dc, wxCoord x, wxCoord y, wxCoord w, wxCoord h) | |
Sets the clipping region to the specified region/coordinates. |
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.
Sets the clipping region to the specified region/coordinates.
The clipping region is automatically unset when this object is destroyed.
wxDCClipper::~wxDCClipper | ( | ) |
Destroys the clipping region associated with the DC passed to the ctor.