Version: 3.3.4
Loading...
Searching...
No Matches
wxSVGLayer Class Reference

#include <wx/dcsvg.h>

Detailed Description

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.

Library:  wxCore
Category:  Device Contexts
Since
3.3.3

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.

Constructor & Destructor Documentation

◆ wxSVGLayer()

wxSVGLayer::wxSVGLayer ( wxSVGFileDC & dc,
double opacity )

Opens a new layer on dc with the given opacity.

◆ ~wxSVGLayer()

wxSVGLayer::~wxSVGLayer ( )

Closes the layer opened by the constructor.