Audacity 3.2.0
Public Member Functions | Private Types | List of all members
ADCChanger Class Reference

Makes temporary drawing context changes that you back out of, RAII style. More...

#include <OverlayPanel.h>

Inheritance diagram for ADCChanger:
[legend]
Collaboration diagram for ADCChanger:
[legend]

Public Member Functions

 ADCChanger ()
 
 ADCChanger (wxDC *pDC)
 

Private Types

using Base = std::unique_ptr< wxDC, ::DCUnchanger >
 

Detailed Description

Makes temporary drawing context changes that you back out of, RAII style.

Definition at line 71 of file OverlayPanel.h.

Member Typedef Documentation

◆ Base

using ADCChanger::Base = std::unique_ptr<wxDC, ::DCUnchanger>
private

Definition at line 73 of file OverlayPanel.h.

Constructor & Destructor Documentation

◆ ADCChanger() [1/2]

ADCChanger::ADCChanger ( )
inline

Definition at line 75 of file OverlayPanel.h.

75: Base{} {}
std::unique_ptr< wxDC, ::DCUnchanger > Base
Definition: OverlayPanel.h:73

◆ ADCChanger() [2/2]

ADCChanger::ADCChanger ( wxDC *  pDC)

Definition at line 151 of file OverlayPanel.cpp.

152 : Base{ pDC, ::DCUnchanger{ pDC->GetBrush(), pDC->GetPen(),
153 long(pDC->GetLogicalFunction()) } }
154{}
Used to restore pen, brush and logical-op in a DC back to what they were.
Definition: OverlayPanel.h:54

The documentation for this class was generated from the following files: