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

#include <wx/dcsvg.h>

Detailed Description

RAII helper that opens an accessible group on a wxSVGFileDC when constructed and closes it when destroyed.

Use it in place of a manual wxSVGFileDC::BeginAccessibleGroup() / wxSVGFileDC::EndAccessibleGroup() pair so the group is reliably closed on scope exit.

Example:

{
wxSVGAttributes().Role("img").AriaLabel("Quarterly sales"),
"Quarterly sales",
"Bar chart showing revenue for Q1-Q4 2026.");
dc.DrawRectangle(10, 10, 100, 60);
// ... further drawing ...
} // group closes here
wxSVGAccessibleGroup(wxSVGFileDC &dc, const wxSVGAttributes &attributes, const wxString &title=wxString(), const wxString &desc=wxString())
Opens an accessible group on dc with the given attributes and optional title and desc children.
wxSVGAttributes()
Default constructor creates an empty set of attributes.

Library:  wxCore
Category:  Device Contexts
Since
3.3.3

Public Member Functions

 wxSVGAccessibleGroup (wxSVGFileDC &dc, const wxSVGAttributes &attributes, const wxString &title=wxString(), const wxString &desc=wxString())
 Opens an accessible group on dc with the given attributes and optional title and desc children.
 ~wxSVGAccessibleGroup ()
 Closes the accessible group opened by the constructor.

Constructor & Destructor Documentation

◆ wxSVGAccessibleGroup()

wxSVGAccessibleGroup::wxSVGAccessibleGroup ( wxSVGFileDC & dc,
const wxSVGAttributes & attributes,
const wxString & title = wxString(),
const wxString & desc = wxString() )

Opens an accessible group on dc with the given attributes and optional title and desc children.

◆ ~wxSVGAccessibleGroup()

wxSVGAccessibleGroup::~wxSVGAccessibleGroup ( )

Closes the accessible group opened by the constructor.