#include </home/Hamis/wxwidgets-3.1/wxWidgets3.1-3.1.5-1.i686/src/wxWidgets-3.1.5/interface/wx/dc.h>
wxDCBrushChanger is a small helper class for setting a brush on a wxDC and unsetting it automatically in the destructor, restoring the previous one.
<>< =''>:</>&;&;< =''>\ </></>
Public Member Functions | |
| wxDCBrushChanger (wxDC &dc, const wxBrush &brush) | |
| Sets brush on the given dc, storing the old one. More... | |
| ~wxDCBrushChanger () | |
| Restores the brush originally selected in the DC passed to the ctor. More... | |
Sets brush on the given dc, storing the old one.
| dc | The DC where the brush must be temporary set. |
| brush | The brush to set. |
| wxDCBrushChanger::~wxDCBrushChanger | ( | ) |
Restores the brush originally selected in the DC passed to the ctor.