Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
DCUnchanger Struct Reference

Used to restore pen, brush and logical-op in a DC back to what they were. More...

#include <OverlayPanel.h>

Public Member Functions

 DCUnchanger ()
 
 DCUnchanger (const wxBrush &brush_, const wxPen &pen_, long logicalOperation_)
 
void operator() (wxDC *pDC) const
 

Public Attributes

wxBrush brush {}
 
wxPen pen {}
 
long logicalOperation {}
 

Detailed Description

Used to restore pen, brush and logical-op in a DC back to what they were.

Definition at line 54 of file OverlayPanel.h.

Constructor & Destructor Documentation

◆ DCUnchanger() [1/2]

DCUnchanger::DCUnchanger ( )
inline

Definition at line 56 of file OverlayPanel.h.

56{}

◆ DCUnchanger() [2/2]

DCUnchanger::DCUnchanger ( const wxBrush &  brush_,
const wxPen &  pen_,
long  logicalOperation_ 
)
inline

Definition at line 58 of file OverlayPanel.h.

59 : brush(brush_), pen(pen_), logicalOperation(logicalOperation_)
60 {}
wxBrush brush
Definition: OverlayPanel.h:64
long logicalOperation
Definition: OverlayPanel.h:66

Member Function Documentation

◆ operator()()

void DCUnchanger::operator() ( wxDC *  pDC) const

Definition at line 142 of file OverlayPanel.cpp.

143{
144 if (pDC) {
145 pDC->SetPen(pen);
146 pDC->SetBrush(brush);
147 pDC->SetLogicalFunction(wxRasterOperationMode(logicalOperation));
148 }
149}
#define wxRasterOperationMode
Definition: ImageRoll.h:21

References wxRasterOperationMode.

Member Data Documentation

◆ brush

wxBrush DCUnchanger::brush {}

Definition at line 64 of file OverlayPanel.h.

◆ logicalOperation

long DCUnchanger::logicalOperation {}

Definition at line 66 of file OverlayPanel.h.

◆ pen

wxPen DCUnchanger::pen {}

Definition at line 65 of file OverlayPanel.h.


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