#include <wx/dcsvg.h>
RAII helper that opens a layer on a wxSVGFileDC when constructed and closes it when destroyed.
Use it in place of a manual wxSVGFileDC::BeginLayer() / wxSVGFileDC::EndLayer() pair so the layer is reliably closed on scope exit.
Public Member Functions | |
| wxSVGLayer (wxSVGFileDC &dc, double opacity) | |
| Opens a new layer on dc with the given opacity. | |
| ~wxSVGLayer () | |
| Closes the layer opened by the constructor. | |
| wxSVGLayer::wxSVGLayer | ( | wxSVGFileDC & | dc, |
| double | opacity ) |
Opens a new layer on dc with the given opacity.
| wxSVGLayer::~wxSVGLayer | ( | ) |
Closes the layer opened by the constructor.