Audacity  2.2.2
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 <AColor.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 25 of file AColor.h.

Constructor & Destructor Documentation

DCUnchanger::DCUnchanger ( )
inline

Definition at line 27 of file AColor.h.

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

Definition at line 29 of file AColor.h.

30  : brush(brush_), pen(pen_), logicalOperation(logicalOperation_)
31  {}
long logicalOperation
Definition: AColor.h:37
wxBrush brush
Definition: AColor.h:35
wxPen pen
Definition: AColor.h:36

Member Function Documentation

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

Definition at line 33 of file AColor.cpp.

References brush, logicalOperation, pen, and wxRasterOperationMode.

34 {
35  if (pDC) {
36  pDC->SetPen(pen);
37  pDC->SetBrush(brush);
38  pDC->SetLogicalFunction(wxRasterOperationMode(logicalOperation));
39  }
40 }
long logicalOperation
Definition: AColor.h:37
wxBrush brush
Definition: AColor.h:35
wxPen pen
Definition: AColor.h:36
#define wxRasterOperationMode
Definition: ImageRoll.h:23

Member Data Documentation

wxBrush DCUnchanger::brush {}

Definition at line 35 of file AColor.h.

Referenced by operator()().

long DCUnchanger::logicalOperation {}

Definition at line 37 of file AColor.h.

Referenced by operator()().

wxPen DCUnchanger::pen {}

Definition at line 36 of file AColor.h.

Referenced by operator()().


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