#include <wx/dc.h>
wxDCPenChanger is a small helper class for setting a pen on a wxDC and unsetting it automatically in the destructor, restoring the previous one.
Public Member Functions | |
wxDCPenChanger (wxDC &dc, const wxPen &pen) | |
Sets pen on the given dc, storing the old one. | |
~wxDCPenChanger () | |
Restores the pen originally selected in the DC passed to the ctor. | |
Sets pen on the given dc, storing the old one.
dc | The DC where the pen must be temporary set. |
pen | The pen to set. |
wxDCPenChanger::~wxDCPenChanger | ( | ) |
Restores the pen originally selected in the DC passed to the ctor.