Audacity  2.2.0
AColor Class Reference

AColor Manages color brushes and pens. More...

#include <AColor.h>

Public Types

enum  ColorGradientChoice {
  ColorGradientUnselected = 0, ColorGradientTimeSelected, ColorGradientTimeAndFrequencySelected, ColorGradientEdge,
  ColorGradientTotal
}
 

Static Public Member Functions

static void Init ()
 
static void ReInit ()
 
static void Arrow (wxDC &dc, wxCoord x, wxCoord y, int width, bool down=true)
 
static void Line (wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
 
static void DrawFocus (wxDC &dc, wxRect &r)
 
static void Bevel (wxDC &dc, bool up, const wxRect &r)
 
static void Bevel2 (wxDC &dc, bool up, const wxRect &r, bool bSel=false, bool bHighlight=false)
 
static void BevelTrackInfo (wxDC &dc, bool up, const wxRect &r, bool highlight=false)
 
static wxColour Blend (const wxColour &c1, const wxColour &c2)
 
static void UseThemeColour (wxDC *dc, int iBrush, int iPen=-1)
 
static void TrackPanelBackground (wxDC *dc, bool selected)
 
static void Light (wxDC *dc, bool selected, bool highlight=false)
 
static void Medium (wxDC *dc, bool selected)
 
static void MediumTrackInfo (wxDC *dc, bool selected)
 
static void Dark (wxDC *dc, bool selected, bool highlight=false)
 
static void CursorColor (wxDC *dc)
 
static void IndicatorColor (wxDC *dc, bool bIsNotRecording)
 
static void PlayRegionColor (wxDC *dc, bool locked)
 
static void Mute (wxDC *dc, bool on, bool selected, bool soloing)
 
static void Solo (wxDC *dc, bool on, bool selected)
 
static void MIDIChannel (wxDC *dc, int channel)
 
static void LightMIDIChannel (wxDC *dc, int channel)
 
static void DarkMIDIChannel (wxDC *dc, int channel)
 
static void TrackFocusPen (wxDC *dc, int level)
 
static void SnapGuidePen (wxDC *dc)
 
static void PreComputeGradient ()
 

Static Public Attributes

static wxBrush lightBrush [2]
 
static wxBrush mediumBrush [2]
 
static wxBrush darkBrush [2]
 
static wxPen lightPen [2]
 
static wxPen mediumPen [2]
 
static wxPen darkPen [2]
 
static wxPen cursorPen
 
static wxPen indicatorPen [2]
 
static wxBrush indicatorBrush [2]
 
static wxPen playRegionPen [2]
 
static wxBrush playRegionBrush [2]
 
static wxBrush muteBrush [2]
 
static wxBrush soloBrush
 
static wxPen clippingPen
 
static wxPen envelopePen
 
static wxPen WideEnvelopePen
 
static wxBrush envelopeBrush
 
static wxBrush labelTextNormalBrush
 
static wxBrush labelTextEditBrush
 
static wxBrush labelUnselectedBrush
 
static wxBrush labelSelectedBrush
 
static wxBrush labelSyncLockSelBrush
 
static wxPen labelUnselectedPen
 
static wxPen labelSelectedPen
 
static wxPen labelSyncLockSelPen
 
static wxPen labelSurroundPen
 
static wxPen trackFocusPens [3]
 
static wxPen snapGuidePen
 
static wxPen tooltipPen
 
static wxBrush tooltipBrush
 
static bool gradient_inited = 0
 
static const int gradientSteps = 512
 
static unsigned char gradient_pre [ColorGradientTotal][2][gradientSteps][3]
 
static wxPen uglyPen
 
static wxBrush uglyBrush
 

Static Private Attributes

static wxPen sparePen
 
static wxBrush spareBrush
 
static bool inited = false
 

Detailed Description

AColor Manages color brushes and pens.

It is also a place to document colour usage policy in Audacity

Member Enumeration Documentation

Enumerator
ColorGradientUnselected 
ColorGradientTimeSelected 
ColorGradientTimeAndFrequencySelected 
ColorGradientEdge 
ColorGradientTotal 

Member Function Documentation

void AColor::Arrow ( wxDC &  dc,
wxCoord  x,
wxCoord  y,
int  width,
bool  down = true 
)
static
void AColor::Bevel ( wxDC &  dc,
bool  up,
const wxRect &  r 
)
static
void AColor::Bevel2 ( wxDC &  dc,
bool  up,
const wxRect &  r,
bool  bSel = false,
bool  bHighlight = false 
)
static
void AColor::BevelTrackInfo ( wxDC &  dc,
bool  up,
const wxRect &  r,
bool  highlight = false 
)
static
wxColour AColor::Blend ( const wxColour &  c1,
const wxColour &  c2 
)
static
void AColor::CursorColor ( wxDC *  dc)
static

Referenced by EditCursorOverlay::Draw().

void AColor::DarkMIDIChannel ( wxDC *  dc,
int  channel 
)
static
void AColor::DrawFocus ( wxDC &  dc,
wxRect &  r 
)
static
void AColor::IndicatorColor ( wxDC *  dc,
bool  bIsNotRecording 
)
static
void AColor::Light ( wxDC *  dc,
bool  selected,
bool  highlight = false 
)
static
void AColor::LightMIDIChannel ( wxDC *  dc,
int  channel 
)
static
void AColor::Medium ( wxDC *  dc,
bool  selected 
)
static
void AColor::MediumTrackInfo ( wxDC *  dc,
bool  selected 
)
static
void AColor::MIDIChannel ( wxDC *  dc,
int  channel 
)
static
void AColor::Mute ( wxDC *  dc,
bool  on,
bool  selected,
bool  soloing 
)
static
void AColor::PlayRegionColor ( wxDC *  dc,
bool  locked 
)
static
void AColor::PreComputeGradient ( )
static
void AColor::ReInit ( )
static
void AColor::SnapGuidePen ( wxDC *  dc)
static
void AColor::Solo ( wxDC *  dc,
bool  on,
bool  selected 
)
static
void AColor::TrackFocusPen ( wxDC *  dc,
int  level 
)
static
void AColor::TrackPanelBackground ( wxDC *  dc,
bool  selected 
)
static
void AColor::UseThemeColour ( wxDC *  dc,
int  iBrush,
int  iPen = -1 
)
static

Member Data Documentation

wxPen AColor::clippingPen
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::cursorPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::darkBrush
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::darkPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::envelopeBrush
static
bool AColor::gradient_inited = 0
static
unsigned char AColor::gradient_pre
static

Referenced by GetColorGradient().

const int AColor::gradientSteps = 512
static

Referenced by GetColorGradient().

wxBrush AColor::indicatorBrush
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::indicatorPen
static

Referenced by ADCChanger::ADCChanger().

bool AColor::inited = false
staticprivate

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::labelSelectedBrush
static
wxPen AColor::labelSelectedPen
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::labelSurroundPen
static
wxBrush AColor::labelSyncLockSelBrush
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::labelSyncLockSelPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::labelTextEditBrush
static
wxBrush AColor::labelTextNormalBrush
static
wxBrush AColor::labelUnselectedBrush
static
wxPen AColor::labelUnselectedPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::lightBrush
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::lightPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::mediumBrush
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::mediumPen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::muteBrush
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::playRegionBrush
static
wxPen AColor::playRegionPen
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::snapGuidePen
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::soloBrush
static

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::spareBrush
staticprivate

Referenced by ADCChanger::ADCChanger().

wxPen AColor::sparePen
staticprivate

Referenced by ADCChanger::ADCChanger().

wxBrush AColor::tooltipBrush
static
wxPen AColor::tooltipPen
static
wxPen AColor::trackFocusPens
static

Referenced by ADCChanger::ADCChanger().

wxPen AColor::WideEnvelopePen
static

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