Audacity 3.2.0
Public Types | Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
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 Lines (wxDC &dc, size_t nPoints, const wxPoint points[])
 
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 ButtonStretch (wxDC &dc, bool up, const wxRect &r, bool selected=false, bool highlight=false)
 Draw a button that fills a given rect. More...
 
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, int alpha=255)
 
static void UseThemeColour (wxGraphicsContext *gc, int iBrush, int iPen=-1, int alpha=255)
 
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 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 void ApplyUpdatedImages ()
 

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 wxBrush playRegionBrush [1]
 
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 colorSchemes = 4
 
static const int gradientSteps = 256
 
static unsigned char gradient_pre [ColorGradientTotal][colorSchemes][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

Definition at line 25 of file AColor.h.

Member Enumeration Documentation

◆ ColorGradientChoice

Enumerator
ColorGradientUnselected 
ColorGradientTimeSelected 
ColorGradientTimeAndFrequencySelected 
ColorGradientEdge 
ColorGradientTotal 

Definition at line 28 of file AColor.h.

28 {
33
34 ColorGradientTotal // keep me last
35 };
@ ColorGradientTotal
Definition: AColor.h:34
@ ColorGradientUnselected
Definition: AColor.h:29
@ ColorGradientTimeAndFrequencySelected
Definition: AColor.h:31
@ ColorGradientEdge
Definition: AColor.h:32
@ ColorGradientTimeSelected
Definition: AColor.h:30

Member Function Documentation

◆ ApplyUpdatedImages()

void AColor::ApplyUpdatedImages ( )
static

Definition at line 849 of file AColor.cpp.

850{
851 ReInit();
852 theTheme.Publish({});
853}
THEME_API Theme theTheme
Definition: Theme.cpp:82
static void ReInit()
Definition: AColor.cpp:504
CallbackReturn Publish(const Message &message)
Send a message to connected callbacks.
Definition: Observer.h:207

References Observer::Publisher< Message, NotifyAll >::Publish(), ReInit(), and theTheme.

Referenced by ThemePrefs::Cancel(), GUIPrefs::Commit(), ThemePrefs::Commit(), ThemePrefs::OnLoadThemeCache(), ThemePrefs::OnLoadThemeComponents(), and ThemePrefs::OnReadThemeInternal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Arrow()

void AColor::Arrow ( wxDC &  dc,
wxCoord  x,
wxCoord  y,
int  width,
bool  down = true 
)
static

Definition at line 160 of file AColor.cpp.

161{
162 if (width & 0x01) {
163 width--;
164 }
165
166 wxPoint pt[3];
167 int half = width / 2;
168
169 if (down) {
170 pt[0].x = 0; pt[0].y = 0;
171 pt[1].x = width; pt[1].y = 0;
172 pt[2].x = half; pt[2].y = half;
173 }
174 else {
175 pt[0].x = 0; pt[0].y = half;
176 pt[1].x = half; pt[1].y = 0;
177 pt[2].x = width; pt[2].y = half;
178 }
179
180 dc.DrawPolygon(3, pt, x, y);
181}

Referenced by TrackInfo::CloseTitleDrawFunction(), NumericTextCtrl::Layout(), and TrackInfo::MinimizeSyncLockDrawFunction().

Here is the caller graph for this function:

◆ Bevel()

void AColor::Bevel ( wxDC &  dc,
bool  up,
const wxRect &  r 
)
static

Definition at line 266 of file AColor.cpp.

267{
268 if (up)
269 AColor::Light(&dc, false);
270 else
271 AColor::Dark(&dc, false);
272
273 AColor::Line(dc, r.x, r.y, r.x + r.width, r.y);
274 AColor::Line(dc, r.x, r.y, r.x, r.y + r.height);
275
276 if (!up)
277 AColor::Light(&dc, false);
278 else
279 AColor::Dark(&dc, false);
280
281 AColor::Line(dc, r.x + r.width, r.y, r.x + r.width, r.y + r.height);
282 AColor::Line(dc, r.x, r.y + r.height, r.x + r.width, r.y + r.height);
283}
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
Definition: AColor.cpp:187
static void Light(wxDC *dc, bool selected, bool highlight=false)
Definition: AColor.cpp:390
static void Dark(wxDC *dc, bool selected, bool highlight=false)
Definition: AColor.cpp:420

References Dark(), Light(), and Line().

Referenced by BevelTrackInfo(), Grabber::DrawGrabber(), NumericTextCtrl::Layout(), MixerBoard::LoadMusicalInstruments(), MixerTrackCluster::OnPaint(), MeterPanel::OnPaint(), and ControlToolBar::Repaint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bevel2()

void AColor::Bevel2 ( wxDC &  dc,
bool  up,
const wxRect &  r,
bool  bSel = false,
bool  bHighlight = false 
)
static

Definition at line 294 of file AColor.cpp.

295{
296 auto& Bmp = theTheme.Bitmap( GetButtonImageIndex(up, bSel, bHighlight) );
297 wxMemoryDC memDC;
298 memDC.SelectObject(Bmp);
299
300 int h = std::min(r.height, Bmp.GetHeight());
301
302 dc.Blit( r.x,r.y,r.width/2, h, &memDC, 0, 0, wxCOPY, true );
303 int r2 = r.width - r.width/2;
304 dc.Blit( r.x+r.width/2,r.y,r2, h, &memDC,
305 Bmp.GetWidth() - r2, 0, wxCOPY, true );
306}
int min(int a, int b)
wxBitmap & Bitmap(int iIndex)
int GetButtonImageIndex(bool up, bool selected, bool highlight)
Definition: AColor.cpp:138

References ThemeBase::Bitmap(), anonymous_namespace{AColor.cpp}::GetButtonImageIndex(), min(), and theTheme.

Referenced by TrackInfo::CloseTitleDrawFunction(), TrackInfo::DrawCloseButton(), MixerBoard::MakeButtonBitmap(), TrackInfo::MinimizeSyncLockDrawFunction(), and anonymous_namespace{PlayableTrackControls.cpp}::MuteOrSoloDrawFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BevelTrackInfo()

void AColor::BevelTrackInfo ( wxDC &  dc,
bool  up,
const wxRect &  r,
bool  highlight = false 
)
static

Definition at line 317 of file AColor.cpp.

318{
319#ifndef EXPERIMENTAL_THEMING
320 Bevel( dc, up, r );
321#else
322 // Note that the actually drawn rectangle extends one pixel right of and
323 // below the given
324
325 wxColour col;
326 col = Blend( theTheme.Colour( clrTrackInfo ), up ? wxColour( 255,255,255):wxColour(0,0,0));
327
328 wxPen pen( highlight ? uglyPen : col );
329 dc.SetPen( pen );
330
331 dc.DrawLine(r.x, r.y, r.x + r.width, r.y);
332 dc.DrawLine(r.x, r.y, r.x, r.y + r.height);
333
334 col = Blend( theTheme.Colour( clrTrackInfo ), up ? wxColour(0,0,0): wxColour(255,255,255));
335
336 pen.SetColour( col );
337 dc.SetPen( highlight ? uglyPen : pen );
338
339 dc.DrawLine(r.x + r.width, r.y, r.x + r.width, r.y + r.height);
340 dc.DrawLine(r.x, r.y + r.height, r.x + r.width, r.y + r.height);
341#endif
342}
static wxColour Blend(const wxColour &c1, const wxColour &c2)
Definition: AColor.cpp:308
static void Bevel(wxDC &dc, bool up, const wxRect &r)
Definition: AColor.cpp:266
static wxPen uglyPen
Definition: AColor.h:136
wxColour & Colour(int iIndex)

References Bevel(), Blend(), ThemeBase::Colour(), theTheme, and uglyPen.

Referenced by WaveTrackVRulerControls::DoDraw(), AdornedRulerPanel::DoDrawEdge(), anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::Draw(), LabelTrackVRulerControls::Draw(), TimeTrackVRulerControls::Draw(), and CommonTrackControls::Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Blend()

wxColour AColor::Blend ( const wxColour &  c1,
const wxColour &  c2 
)
static

Definition at line 308 of file AColor.cpp.

309{
310 wxColour c3(
311 (c1.Red() + c2.Red())/2,
312 (c1.Green() + c2.Green())/2,
313 (c1.Blue() + c2.Blue())/2);
314 return c3;
315}

Referenced by BevelTrackInfo().

Here is the caller graph for this function:

◆ ButtonStretch()

void AColor::ButtonStretch ( wxDC &  dc,
bool  up,
const wxRect &  r,
bool  selected = false,
bool  highlight = false 
)
static

Draw a button that fills a given rect.

Definition at line 285 of file AColor.cpp.

286{
288 dc,
289 theTheme.Bitmap(GetButtonImageIndex(up, selected, highlight)),
290 r
291 );
292}
void DrawNinePatch(wxDC &dc, wxBitmap &bitmap, const wxRect &r)
Definition: AColor.cpp:84

References ThemeBase::Bitmap(), anonymous_namespace{AColor.cpp}::DrawNinePatch(), anonymous_namespace{AColor.cpp}::GetButtonImageIndex(), and theTheme.

Referenced by anonymous_namespace{PlayableTrackControls.cpp}::EffectsDrawFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CursorColor()

void AColor::CursorColor ( wxDC *  dc)
static

Definition at line 440 of file AColor.cpp.

441{
442 if (!inited)
443 Init();
444
445 dc->SetLogicalFunction(wxCOPY);
446 dc->SetPen(cursorPen);
447}
static bool inited
Definition: AColor.h:142
static wxPen cursorPen
Definition: AColor.h:99
static void Init()
Definition: AColor.cpp:534

References cursorPen, Init(), and inited.

Referenced by anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::Draw(), and TrackArt::DrawCursor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dark()

void AColor::Dark ( wxDC *  dc,
bool  selected,
bool  highlight = false 
)
static

Definition at line 420 of file AColor.cpp.

421{
422 if (!inited)
423 Init();
424 int index = (int) selected;
425 auto &brush = highlight ? AColor::uglyBrush : darkBrush[index];
426 dc->SetBrush( brush );
427 auto &pen = highlight ? AColor::uglyPen : darkPen[index];
428 dc->SetPen( pen );
429}
static wxBrush darkBrush[2]
Definition: AColor.h:94
static wxBrush uglyBrush
Definition: AColor.h:137
static wxPen darkPen[2]
Definition: AColor.h:97

References darkBrush, darkPen, Init(), inited, uglyBrush, and uglyPen.

Referenced by Bevel(), Grabber::DrawGrabber(), anonymous_namespace{WaveformView.cpp}::DrawTimeSlider(), TrackInfo::MinimizeSyncLockDrawFunction(), ToolBarResizer::OnPaint(), ToolDock::OnPaint(), and TrackPanelBackground().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DarkMIDIChannel()

void AColor::DarkMIDIChannel ( wxDC *  dc,
int  channel 
)
static

Definition at line 676 of file AColor.cpp.

677{
678 if (channel >= 1 && channel <= 16) {
679 const int *colors = AColor_midicolors[channel - 1];
680
681 dc->SetPen(wxPen(wxColour(colors[0] / 2,
682 colors[1] / 2,
683 colors[2] / 2), 1, wxPENSTYLE_SOLID));
684 dc->SetBrush(wxBrush(wxColour(colors[0] / 2,
685 colors[1] / 2,
686 colors[2] / 2), wxBRUSHSTYLE_SOLID));
687 } else {
688 dc->SetPen(wxPen(wxColour(102, 102, 102), 1, wxPENSTYLE_SOLID));
689 dc->SetBrush(wxBrush(wxColour(102, 102, 102), wxBRUSHSTYLE_SOLID));
690 }
691
692}
const int AColor_midicolors[16][3]
Definition: AColor.cpp:622

References AColor_midicolors.

Referenced by NoteTrack::DrawLabelControls(), and anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack().

Here is the caller graph for this function:

◆ DrawFocus()

void AColor::DrawFocus ( wxDC &  dc,
wxRect &  r 
)
static

Definition at line 235 of file AColor.cpp.

236{
237 // draw the pixels manually: note that to behave in the same manner as
238 // DrawRect(), we must exclude the bottom and right borders from the
239 // rectangle
240 wxCoord x1 = rect.GetLeft(),
241 y1 = rect.GetTop(),
242 x2 = rect.GetRight(),
243 y2 = rect.GetBottom();
244
245 // -1 for brush, so it just sets the pen colour, and does not change the brush.
246 UseThemeColour( &dc, -1, clrTrackPanelText );
247
248 wxCoord z;
249 for ( z = x1 + 1; z < x2; z += 2 )
250 dc.DrawPoint(z, y1);
251
252 wxCoord shift = z == x2 ? 0 : 1;
253 for ( z = y1 + shift; z < y2; z += 2 )
254 dc.DrawPoint(x2, z);
255
256 shift = z == y2 ? 0 : 1;
257 for ( z = x2 - shift; z > x1; z -= 2 )
258 dc.DrawPoint(z, y2);
259
260 shift = z == x1 ? 0 : 1;
261 for ( z = y2 - shift; z > y1; z -= 2 )
262 dc.DrawPoint(x1, z);
263
264}
static void UseThemeColour(wxDC *dc, int iBrush, int iPen=-1, int alpha=255)
Definition: AColor.cpp:349

References UseThemeColour().

Referenced by KeyView::OnDrawBackground(), AButton::OnPaint(), ASlider::OnPaint(), and MeterPanel::OnPaint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IndicatorColor()

void AColor::IndicatorColor ( wxDC *  dc,
bool  bIsNotRecording 
)
static

Definition at line 449 of file AColor.cpp.

450{
451 if (!inited)
452 Init();
453 int index = (int) bIsNotRecording;
454 dc->SetPen(indicatorPen[index]);
455 dc->SetBrush(indicatorBrush[index]);
456}
static wxBrush indicatorBrush[2]
Definition: AColor.h:101
static wxPen indicatorPen[2]
Definition: AColor.h:100

References indicatorBrush, indicatorPen, Init(), and inited.

Referenced by AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), and PlayIndicatorOverlayBase::Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init()

void AColor::Init ( )
static

Definition at line 534 of file AColor.cpp.

535{
536 if (inited)
537 return;
538
539 wxColour light = theTheme.Colour( clrLight );
540 // wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT);
541 wxColour med = theTheme.Colour( clrMedium );
542 // wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
543 wxColour dark = theTheme.Colour( clrDark );
544 // wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW);
545
546 wxColour lightSelected = theTheme.Colour( clrLightSelected );
547 wxColour medSelected = theTheme.Colour( clrMediumSelected );
548 wxColour darkSelected = theTheme.Colour( clrDarkSelected );
549
550
551 clippingPen.SetColour(0xCC, 0x11, 0x00);
552
553 theTheme.SetPenColour( envelopePen, clrEnvelope );
554 theTheme.SetPenColour( WideEnvelopePen, clrEnvelope );
555 theTheme.SetBrushColour( envelopeBrush, clrEnvelope );
556
557 WideEnvelopePen.SetWidth( 3 );
558
559 theTheme.SetBrushColour( labelTextNormalBrush, clrLabelTextNormalBrush );
560 theTheme.SetBrushColour( labelTextEditBrush, clrLabelTextEditBrush );
561 theTheme.SetBrushColour( labelUnselectedBrush, clrLabelUnselectedBrush );
562 theTheme.SetBrushColour( labelSelectedBrush, clrLabelSelectedBrush );
564 theTheme.SetPenColour( labelUnselectedPen, clrLabelUnselectedPen );
565 theTheme.SetPenColour( labelSelectedPen, clrLabelSelectedPen );
566 theTheme.SetPenColour( labelSyncLockSelPen, clrSyncLockSel );
567 theTheme.SetPenColour( labelSurroundPen, clrLabelSurroundPen );
568
569 // These colors were modified to avoid using reserved colors red and green
570 // for the buttons.
571 theTheme.SetBrushColour( muteBrush[0], clrMuteButtonActive);
572 theTheme.SetBrushColour( muteBrush[1], clrMuteButtonVetoed);
573 theTheme.SetBrushColour( soloBrush, clrMuteButtonActive);
574
575 cursorPen.SetColour( CursorColour() );
576 theTheme.SetPenColour( indicatorPen[0], clrRecordingPen);
577 theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen);
578 theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush);
579 theTheme.SetBrushColour( indicatorBrush[1], clrPlaybackBrush);
580
581 theTheme.SetBrushColour( playRegionBrush[0],clrRulerRecordingBrush);
582 // theTheme.SetPenColour( playRegionPen[0], clrRulerRecordingPen);
583 // theTheme.SetBrushColour( playRegionBrush[1],clrRulerPlaybackBrush);
584 // theTheme.SetPenColour( playRegionPen[1], clrRulerPlaybackPen);
585
586 //Determine tooltip color
587 tooltipPen.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOTEXT) );
588 tooltipBrush.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOBK) );
589
590 uglyPen.SetColour( wxColour{ 0, 255, 0 } ); // saturated green
591 uglyBrush.SetColour( wxColour{ 255, 0, 255 } ); // saturated magenta
592
593 // A tiny gradient of yellow surrounding the current focused track
594 theTheme.SetPenColour( trackFocusPens[0], clrTrackFocus0);
595 theTheme.SetPenColour( trackFocusPens[1], clrTrackFocus1);
596 theTheme.SetPenColour( trackFocusPens[2], clrTrackFocus2);
597
598 // A vertical line indicating that the selection or sliding has
599 // been snapped to the nearest boundary.
600 theTheme.SetPenColour( snapGuidePen, clrSnapGuide);
601
602 // unselected
603 lightBrush[0].SetColour(light);
604 mediumBrush[0].SetColour(med);
605 darkBrush[0].SetColour(dark);
606 lightPen[0].SetColour(light);
607 mediumPen[0].SetColour(med);
608 darkPen[0].SetColour(dark);
609
610 // selected
611 lightBrush[1].SetColour(lightSelected);
612 mediumBrush[1].SetColour(medSelected);
613 darkBrush[1].SetColour(darkSelected);
614 lightPen[1].SetColour(lightSelected);
615 mediumPen[1].SetColour(medSelected);
616 darkPen[1].SetColour(darkSelected);
617
618 inited = true;
619}
wxColour CursorColour()
Definition: AColor.cpp:519
static wxBrush mediumBrush[2]
Definition: AColor.h:93
static wxBrush labelSelectedBrush
Definition: AColor.h:117
static wxPen trackFocusPens[3]
Definition: AColor.h:124
static wxPen clippingPen
Definition: AColor.h:108
static wxPen WideEnvelopePen
Definition: AColor.h:111
static wxBrush lightBrush[2]
Definition: AColor.h:92
static wxBrush playRegionBrush[1]
Definition: AColor.h:103
static wxPen labelSurroundPen
Definition: AColor.h:122
static wxBrush muteBrush[2]
Definition: AColor.h:105
static wxPen tooltipPen
Definition: AColor.h:127
static wxPen lightPen[2]
Definition: AColor.h:95
static wxPen mediumPen[2]
Definition: AColor.h:96
static wxBrush envelopeBrush
Definition: AColor.h:112
static wxBrush labelTextNormalBrush
Definition: AColor.h:114
static wxBrush labelTextEditBrush
Definition: AColor.h:115
static wxBrush labelSyncLockSelBrush
Definition: AColor.h:118
static wxPen envelopePen
Definition: AColor.h:110
static wxPen labelSelectedPen
Definition: AColor.h:120
static wxBrush tooltipBrush
Definition: AColor.h:128
static wxBrush soloBrush
Definition: AColor.h:106
static wxBrush labelUnselectedBrush
Definition: AColor.h:116
static wxPen snapGuidePen
Definition: AColor.h:125
static wxPen labelUnselectedPen
Definition: AColor.h:119
static wxPen labelSyncLockSelPen
Definition: AColor.h:121
void SetBrushColour(wxBrush &Brush, int iIndex)
void SetPenColour(wxPen &Pen, int iIndex)

References clippingPen, ThemeBase::Colour(), CursorColour(), cursorPen, darkBrush, darkPen, envelopeBrush, envelopePen, indicatorBrush, indicatorPen, inited, labelSelectedBrush, labelSelectedPen, labelSurroundPen, labelSyncLockSelBrush, labelSyncLockSelPen, labelTextEditBrush, labelTextNormalBrush, labelUnselectedBrush, labelUnselectedPen, lightBrush, lightPen, mediumBrush, mediumPen, muteBrush, playRegionBrush, ThemeBase::SetBrushColour(), ThemeBase::SetPenColour(), snapGuidePen, soloBrush, theTheme, tooltipBrush, tooltipPen, trackFocusPens, uglyBrush, uglyPen, and WideEnvelopePen.

Referenced by CursorColor(), Dark(), IndicatorColor(), Light(), Medium(), Mute(), AudacityApp::OnInit(), ReInit(), SnapGuidePen(), Solo(), TrackFocusPen(), and UseThemeColour().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Light()

void AColor::Light ( wxDC *  dc,
bool  selected,
bool  highlight = false 
)
static

Definition at line 390 of file AColor.cpp.

391{
392 if (!inited)
393 Init();
394 int index = (int) selected;
395 auto &brush = highlight ? AColor::uglyBrush : lightBrush[index];
396 dc->SetBrush( brush );
397 auto &pen = highlight ? AColor::uglyPen : lightPen[index];
398 dc->SetPen( pen );
399}

References Init(), inited, lightBrush, lightPen, uglyBrush, and uglyPen.

Referenced by Bevel(), AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), Grabber::DrawGrabber(), and anonymous_namespace{WaveformView.cpp}::DrawTimeSlider().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LightMIDIChannel()

void AColor::LightMIDIChannel ( wxDC *  dc,
int  channel 
)
static

Definition at line 658 of file AColor.cpp.

659{
660 if (channel >= 1 && channel <= 16) {
661 const int *colors = AColor_midicolors[channel - 1];
662
663 dc->SetPen(wxPen(wxColour(127 + colors[0] / 2,
664 127 + colors[1] / 2,
665 127 + colors[2] / 2), 1, wxPENSTYLE_SOLID));
666 dc->SetBrush(wxBrush(wxColour(127 + colors[0] / 2,
667 127 + colors[1] / 2,
668 127 + colors[2] / 2), wxBRUSHSTYLE_SOLID));
669 } else {
670 dc->SetPen(wxPen(wxColour(204, 204, 204), 1, wxPENSTYLE_SOLID));
671 dc->SetBrush(wxBrush(wxColour(204, 204, 204), wxBRUSHSTYLE_SOLID));
672 }
673
674}

References AColor_midicolors.

Referenced by NoteTrack::DrawLabelControls(), and anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack().

Here is the caller graph for this function:

◆ Line()

void AColor::Line ( wxDC &  dc,
wxCoord  x1,
wxCoord  y1,
wxCoord  x2,
wxCoord  y2 
)
static

Definition at line 187 of file AColor.cpp.

188{
189 const wxPoint points[] { { x1, y1 }, { x2, y2 } };
190 Lines( dc, 2, points );
191}
static void Lines(wxDC &dc, size_t nPoints, const wxPoint points[])
Definition: AColor.cpp:194

References Lines().

Referenced by Bevel(), AdornedRulerPanel::DoDrawEdge(), AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), EditCursorOverlay::Draw(), PlayIndicatorOverlayBase::Draw(), LabelTrackView::Draw(), anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::Draw(), anonymous_namespace{TrackPanel.cpp}::LabeledChannelGroup::Draw(), TrackPanelResizerCell::Draw(), NoteTrackVRulerControls::Draw(), TrackVRulerControls::Draw(), Ruler::Draw(), SnapManager::Draw(), WaveTrackSubView::DrawBoldBoundaries(), TrackArt::DrawClipEdges(), TrackInfo::DrawCloseButton(), TrackArt::DrawCursor(), anonymous_namespace{WaveformView.cpp}::DrawEnvLine(), Grabber::DrawGrabber(), Ruler::DrawGrid(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), NoteTrack::DrawLabelControls(), LabelTrackView::DrawLines(), MeterPanel::DrawMeterBar(), anonymous_namespace{WaveformView.cpp}::DrawMinMaxRMS(), TrackArt::DrawNegativeOffsetTrackArrows(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteBackground(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack(), FrequencyPlotDialog::DrawPlot(), anonymous_namespace{WaveformView.cpp}::DrawTimeSlider(), LWSlider::DrawToBitmap(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), KeyView::OnDrawBackground(), KeyView::OnDrawItem(), EqualizationPanel::OnPaint(), ExportMixerPanel::OnPaint(), ToolBarResizer::OnPaint(), ToolDock::OnPaint(), EffectAutoDuck::Panel::OnPaint(), EffectCompressorPanel::OnPaint(), EffectScienFilterPanel::OnPaint(), MeterPanel::OnPaint(), ToolFrame::OnPaint(), AudacityPrintout::OnPrintPage(), and FrequencyPlotDialog::PlotPaint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Lines()

void AColor::Lines ( wxDC &  dc,
size_t  nPoints,
const wxPoint  points[] 
)
static

Definition at line 194 of file AColor.cpp.

195{
196 if ( nPoints <= 1 ) {
197 if (nPoints == 1)
198 dc.DrawPoint( points[0] );
199 return;
200 }
201
202 for (size_t ii = 0; ii < nPoints - 1; ++ii) {
203 const auto &p1 = points[ii];
204 const auto &p2 = points[ii + 1];
205
206 // As of 2.8.9 (possibly earlier), wxDC::DrawLine() on the Mac draws the
207 // last point since it is now based on the NEW wxGraphicsContext system.
208 // Make the other platforms do the same thing since the other platforms
209 // "may" follow they get wxGraphicsContext going.
210
211 // PRL: as of 3.1.1, I still observe that on Mac, the last point is
212 // included, contrary to what documentation says. Also that on Windows,
213 // sometimes it is the first point that is excluded.
214
215#if defined(__WXMAC__) || defined(__WXGTK3__)
216 dc.DrawLine(p1, p2);
217#else
218 dc.DrawPoint(p1);
219 if ( p1 != p2 ) {
220 dc.DrawLine(p1, p2);
221 }
222#endif
223 }
224
225#if defined(__WXMAC__) || defined(__WXGTK3__)
226 ;
227#else
228 dc.DrawPoint( points[ nPoints - 1 ] );
229#endif
230}

Referenced by Line(), and EffectAutoDuck::Panel::OnPaint().

Here is the caller graph for this function:

◆ Medium()

void AColor::Medium ( wxDC *  dc,
bool  selected 
)
static

Definition at line 401 of file AColor.cpp.

402{
403 if (!inited)
404 Init();
405 int index = (int) selected;
406 dc->SetBrush(mediumBrush[index]);
407 dc->SetPen(mediumPen[index]);
408}

References Init(), inited, mediumBrush, and mediumPen.

Referenced by Grabber::DrawGrabber(), and MediumTrackInfo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MediumTrackInfo()

void AColor::MediumTrackInfo ( wxDC *  dc,
bool  selected 
)
static

Definition at line 410 of file AColor.cpp.

411{
412#ifdef EXPERIMENTAL_THEMING
413 UseThemeColour( dc, selected ? clrTrackInfoSelected : clrTrackInfo );
414#else
415 Medium( dc, selected );
416#endif
417}
static void Medium(wxDC *dc, bool selected)
Definition: AColor.cpp:401

References Medium(), and UseThemeColour().

Referenced by TrackPanelResizerCell::Draw(), CommonTrackControls::Draw(), TrackVRulerControls::Draw(), anonymous_namespace{PlayableTrackControls.cpp}::MuteOrSoloDrawFunction(), and MixerTrackCluster::OnPaint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MIDIChannel()

void AColor::MIDIChannel ( wxDC *  dc,
int  channel 
)
static

Definition at line 642 of file AColor.cpp.

643{
644 if (channel >= 1 && channel <= 16) {
645 const int *colors = AColor_midicolors[channel - 1];
646
647 dc->SetPen(wxPen(wxColour(colors[0],
648 colors[1], colors[2]), 1, wxPENSTYLE_SOLID));
649 dc->SetBrush(wxBrush(wxColour(colors[0],
650 colors[1], colors[2]), wxBRUSHSTYLE_SOLID));
651 } else {
652 dc->SetPen(wxPen(wxColour(153, 153, 153), 1, wxPENSTYLE_SOLID));
653 dc->SetBrush(wxBrush(wxColour(153, 153, 153), wxBRUSHSTYLE_SOLID));
654 }
655
656}

References AColor_midicolors.

Referenced by NoteTrack::DrawLabelControls(), and anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack().

Here is the caller graph for this function:

◆ Mute()

void AColor::Mute ( wxDC *  dc,
bool  on,
bool  selected,
bool  soloing 
)
static

Definition at line 472 of file AColor.cpp.

473{
474 if (!inited)
475 Init();
476 int index = (int) selected;
477 if (on) {
478 dc->SetPen(*wxBLACK_PEN);
479 dc->SetBrush(muteBrush[(int) soloing]);
480 }
481 else {
482 dc->SetPen(*wxTRANSPARENT_PEN);
483 dc->SetBrush(mediumBrush[index]);
484 }
485}

References Init(), inited, mediumBrush, and muteBrush.

Referenced by anonymous_namespace{PlayableTrackControls.cpp}::MuteOrSoloDrawFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PreComputeGradient()

void AColor::PreComputeGradient ( )
static

Definition at line 698 of file AColor.cpp.

698 {
699 if (gradient_inited) return;
700 gradient_inited = 1;
701
702 // Keep in correspondence with enum SpectrogramSettings::ColorScheme
703
704 // colorScheme 0: Color (New)
705 std::copy_n(&specColormap[0][0], gradientSteps * 3, &gradient_pre[ColorGradientUnselected][0][0][0]);
706 std::copy_n(&selColormap[0][0], gradientSteps * 3, &gradient_pre[ColorGradientTimeSelected][0][0][0]);
708 std::fill_n(&gradient_pre[ColorGradientEdge][0][0][0], gradientSteps * 3, 0);
709
710
711 for (int selected = 0; selected < ColorGradientTotal; selected++) {
712 // Get color scheme from Theme
713 const int gsteps = 4;
714 float gradient[gsteps + 1][3];
715 theTheme.Colour( clrSpectro1 ) = theTheme.Colour( clrUnselected );
716 theTheme.Colour( clrSpectro1Sel ) = theTheme.Colour( clrSelected );
717 int clrFirst = (selected == ColorGradientUnselected ) ? clrSpectro1 : clrSpectro1Sel;
718 for(int j=0;j<(gsteps+1);j++){
719 wxColour c = theTheme.Colour( clrFirst+j );
720 gradient[ j] [0] = c.Red()/255.0;
721 gradient[ j] [1] = c.Green()/255.0;
722 gradient[ j] [2] = c.Blue()/255.0;
723 }
724
725 // colorScheme 1: Color (from theme)
726 for (int i = 0; i<gradientSteps; i++) {
727 float r, g, b;
728 float value = float(i)/gradientSteps;
729
730 int left = (int)(value * gsteps);
731 int right = (left == gsteps ? gsteps : left + 1);
732
733 float rweight = (value * gsteps) - left;
734 float lweight = 1.0 - rweight;
735
736 r = (gradient[left][0] * lweight) + (gradient[right][0] * rweight);
737 g = (gradient[left][1] * lweight) + (gradient[right][1] * rweight);
738 b = (gradient[left][2] * lweight) + (gradient[right][2] * rweight);
739
740 switch (selected) {
742 // not dimmed
743 break;
744
746 float temp;
747 temp = r;
748 r = g;
749 g = b;
750 b = temp;
751 break;
752
754 // partly dimmed
755 r *= 0.75f;
756 g *= 0.75f;
757 b *= 0.75f;
758 break;
759
760
761 // For now edge colour is just black (or white if grey-scale)
762 // Later we might invert or something else funky.
764 // fully dimmed
765 r = 0;
766 g = 0;
767 b = 0;
768 break;
769 }
770 gradient_pre[selected][1][i][0] = (unsigned char) (255 * r);
771 gradient_pre[selected][1][i][1] = (unsigned char) (255 * g);
772 gradient_pre[selected][1][i][2] = (unsigned char) (255 * b);
773 }
774
775 // colorScheme 3: Inverse Grayscale
776 for (int i = 0; i < gradientSteps; i++) {
777 float r, g, b;
778 float value = float(i) / gradientSteps;
779
780 r = g = b = value;
781
782 switch (selected) {
784 // not dimmed
785 break;
786
788 // else fall through to SAME grayscale colour as normal selection.
789 // The white lines show it up clearly enough.
790
792 // partly dimmed
793 r = r * 0.75f + 0.25f;
794 g = g * 0.75f + 0.25f;
795 b = b * 0.75f + 0.25f;
796 break;
797
799 r = 1.0f;
800 g = 1.0f;
801 b = 1.0f;
802 break;
803 }
804 gradient_pre[selected][3][i][0] = (unsigned char)(255 * r);
805 gradient_pre[selected][3][i][1] = (unsigned char)(255 * g);
806 gradient_pre[selected][3][i][2] = (unsigned char)(255 * b);
807 }
808
809 // colorScheme 2: Grayscale (=Old grayscale)
810 for (int i = 0; i<gradientSteps; i++) {
811 float r, g, b;
812 float value = float(i)/gradientSteps;
813
814 r = g = b = 0.84 - 0.84 * value;
815
816 switch (selected) {
818 // not dimmed
819 break;
820
822 // else fall through to SAME grayscale colour as normal selection.
823 // The white lines show it up clearly enough.
824
826 // partly dimmed
827 r *= 0.75f;
828 g *= 0.75f;
829 b *= 0.75f;
830 break;
831
832
833 // For now edge colour is just black (or white if grey-scale)
834 // Later we might invert or something else funky.
836 // fully dimmed
837 r = 1.0f;
838 g = 1.0f;
839 b = 1.0f;
840 break;
841 }
842 gradient_pre[selected][2][i][0] = (unsigned char) (255 * r);
843 gradient_pre[selected][2][i][1] = (unsigned char) (255 * g);
844 gradient_pre[selected][2][i][2] = (unsigned char) (255 * b);
845 }
846 }
847}
const unsigned char specColormap[256][3]
const unsigned char freqSelColormap[256][3]
const unsigned char selColormap[256][3]
static const int gradientSteps
Definition: AColor.h:132
static unsigned char gradient_pre[ColorGradientTotal][colorSchemes][gradientSteps][3]
Definition: AColor.h:133
static bool gradient_inited
Definition: AColor.h:130

References ColorGradientEdge, ColorGradientTimeAndFrequencySelected, ColorGradientTimeSelected, ColorGradientTotal, ColorGradientUnselected, ThemeBase::Colour(), freqSelColormap, gradient_inited, gradient_pre, gradientSteps, selColormap, specColormap, and theTheme.

Referenced by anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), and ReInit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReInit()

void AColor::ReInit ( )
static

Definition at line 504 of file AColor.cpp.

505{
506 inited=false;
507 Init();
510}
static void PreComputeGradient()
Definition: AColor.cpp:698

References gradient_inited, Init(), inited, and PreComputeGradient().

Referenced by ApplyUpdatedImages().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SnapGuidePen()

void AColor::SnapGuidePen ( wxDC *  dc)
static

Definition at line 465 of file AColor.cpp.

466{
467 if (!inited)
468 Init();
469 dc->SetPen(snapGuidePen);
470}

References Init(), inited, and snapGuidePen.

Referenced by AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), and SnapManager::Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Solo()

void AColor::Solo ( wxDC *  dc,
bool  on,
bool  selected 
)
static

Definition at line 487 of file AColor.cpp.

488{
489 if (!inited)
490 Init();
491 int index = (int) selected;
492 if (on) {
493 dc->SetPen(*wxBLACK_PEN);
494 dc->SetBrush(soloBrush);
495 }
496 else {
497 dc->SetPen(*wxTRANSPARENT_PEN);
498 dc->SetBrush(mediumBrush[index]);
499 }
500}

References Init(), inited, mediumBrush, and soloBrush.

Referenced by anonymous_namespace{PlayableTrackControls.cpp}::MuteOrSoloDrawFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrackFocusPen()

void AColor::TrackFocusPen ( wxDC *  dc,
int  level 
)
static

Definition at line 458 of file AColor.cpp.

459{
460 if (!inited)
461 Init();
462 dc->SetPen(trackFocusPens[level]);
463}

References Init(), inited, and trackFocusPens.

Referenced by anonymous_namespace{TrackPanel.cpp}::LabeledChannelGroup::Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrackPanelBackground()

void AColor::TrackPanelBackground ( wxDC *  dc,
bool  selected 
)
static

Definition at line 431 of file AColor.cpp.

432{
433#ifdef EXPERIMENTAL_THEMING
434 UseThemeColour( dc, selected ? clrMediumSelected : clrTrackBackground );
435#else
436 Dark( dc, selected );
437#endif
438}

References Dark(), and UseThemeColour().

Referenced by anonymous_namespace{TrackPanel.cpp}::EmptyCell::Draw(), TrackPanelResizerCell::Draw(), and BackgroundCell::Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UseThemeColour() [1/2]

void AColor::UseThemeColour ( wxDC *  dc,
int  iBrush,
int  iPen = -1,
int  alpha = 255 
)
static

Definition at line 349 of file AColor.cpp.

350{
351 if (!inited)
352 Init();
353 // do nothing if no colours set.
354 if( (iBrush == -1) && ( iPen ==-1))
355 return;
356 wxColour col = wxColour(0,0,0);
357 if( iBrush !=-1 ){
358 col = theTheme.Colour( iBrush );
359 col.Set( col.Red(), col.Green(), col.Blue(), alpha);
360 spareBrush.SetColour( col );
361 dc->SetBrush( spareBrush );
362 }
363 if( iPen != -1)
364 col = theTheme.Colour( iPen );
365 sparePen.SetColour( col );
366 dc->SetPen( sparePen );
367}
static wxPen sparePen
Definition: AColor.h:140
static wxBrush spareBrush
Definition: AColor.h:141

References ThemeBase::Colour(), Init(), inited, spareBrush, sparePen, and theTheme.

Referenced by AdornedRulerPanel::DoDrawBackground(), anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::Draw(), TrackArt::DrawClipAffordance(), TrackArt::DrawClipEdges(), TrackArt::DrawClipFolded(), DrawFocus(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), LWSlider::DrawToBitmap(), anonymous_namespace{TrackPanel.cpp}::DrawTrackName(), MixerBoard::MakeButtonBitmap(), MediumTrackInfo(), and TrackPanelBackground().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UseThemeColour() [2/2]

void AColor::UseThemeColour ( wxGraphicsContext *  gc,
int  iBrush,
int  iPen = -1,
int  alpha = 255 
)
static

Definition at line 369 of file AColor.cpp.

370{
371 if (!inited)
372 Init();
373 // do nothing if no colours set.
374 if( (iBrush == -1) && ( iPen ==-1))
375 return;
376 wxColour col = wxColour(0,0,0);
377 if( iBrush !=-1 ){
378 col = theTheme.Colour( iBrush );
379 col.Set( col.Red(), col.Green(), col.Blue(), alpha);
380 spareBrush.SetColour( col );
381 gc->SetBrush( spareBrush );
382 }
383 if( iPen != -1)
384 col = theTheme.Colour( iPen );
385 sparePen.SetColour( col );
386 gc->SetPen( sparePen );
387}

References ThemeBase::Colour(), Init(), inited, spareBrush, sparePen, and theTheme.

Here is the call graph for this function:

Member Data Documentation

◆ clippingPen

wxPen AColor::clippingPen
static

Definition at line 108 of file AColor.h.

Referenced by Init().

◆ colorSchemes

const int AColor::colorSchemes = 4
static

Definition at line 131 of file AColor.h.

Referenced by SpectrogramSettings::GetColorSchemeNames().

◆ cursorPen

wxPen AColor::cursorPen
static

Definition at line 99 of file AColor.h.

Referenced by CursorColor(), and Init().

◆ darkBrush

wxBrush AColor::darkBrush
static

Definition at line 94 of file AColor.h.

Referenced by Dark(), and Init().

◆ darkPen

wxPen AColor::darkPen
static

Definition at line 97 of file AColor.h.

Referenced by Dark(), and Init().

◆ envelopeBrush

wxBrush AColor::envelopeBrush
static

Definition at line 112 of file AColor.h.

Referenced by EnvelopeEditor::DrawPoints(), Init(), and ExportMixerPanel::OnPaint().

◆ envelopePen

wxPen AColor::envelopePen
static

◆ gradient_inited

bool AColor::gradient_inited = 0
static

◆ gradient_pre

unsigned char AColor::gradient_pre
static

Definition at line 133 of file AColor.h.

Referenced by GetColorGradient(), and PreComputeGradient().

◆ gradientSteps

const int AColor::gradientSteps = 256
static

Definition at line 132 of file AColor.h.

Referenced by GetColorGradient(), and PreComputeGradient().

◆ indicatorBrush

wxBrush AColor::indicatorBrush
static

Definition at line 101 of file AColor.h.

Referenced by IndicatorColor(), and Init().

◆ indicatorPen

wxPen AColor::indicatorPen
static

Definition at line 100 of file AColor.h.

Referenced by IndicatorColor(), and Init().

◆ inited

bool AColor::inited = false
staticprivate

◆ labelSelectedBrush

wxBrush AColor::labelSelectedBrush
static

◆ labelSelectedPen

wxPen AColor::labelSelectedPen
static

Definition at line 120 of file AColor.h.

Referenced by Init().

◆ labelSurroundPen

wxPen AColor::labelSurroundPen
static

Definition at line 122 of file AColor.h.

Referenced by LabelTrackView::Draw(), and Init().

◆ labelSyncLockSelBrush

wxBrush AColor::labelSyncLockSelBrush
static

Definition at line 118 of file AColor.h.

Referenced by Init().

◆ labelSyncLockSelPen

wxPen AColor::labelSyncLockSelPen
static

Definition at line 121 of file AColor.h.

Referenced by Init().

◆ labelTextEditBrush

wxBrush AColor::labelTextEditBrush
static

Definition at line 115 of file AColor.h.

Referenced by LabelTrackView::Draw(), and Init().

◆ labelTextNormalBrush

wxBrush AColor::labelTextNormalBrush
static

Definition at line 114 of file AColor.h.

Referenced by LabelTrackView::Draw(), and Init().

◆ labelUnselectedBrush

wxBrush AColor::labelUnselectedBrush
static

◆ labelUnselectedPen

wxPen AColor::labelUnselectedPen
static

Definition at line 119 of file AColor.h.

Referenced by Init().

◆ lightBrush

wxBrush AColor::lightBrush
static

Definition at line 92 of file AColor.h.

Referenced by Init(), and Light().

◆ lightPen

wxPen AColor::lightPen
static

Definition at line 95 of file AColor.h.

Referenced by Init(), and Light().

◆ mediumBrush

wxBrush AColor::mediumBrush
static

Definition at line 93 of file AColor.h.

Referenced by Init(), Medium(), Mute(), and Solo().

◆ mediumPen

wxPen AColor::mediumPen
static

Definition at line 96 of file AColor.h.

Referenced by Init(), and Medium().

◆ muteBrush

wxBrush AColor::muteBrush
static

Definition at line 105 of file AColor.h.

Referenced by Init(), and Mute().

◆ playRegionBrush

wxBrush AColor::playRegionBrush
static

Definition at line 103 of file AColor.h.

Referenced by Init(), and ExportMixerPanel::OnPaint().

◆ snapGuidePen

wxPen AColor::snapGuidePen
static

Definition at line 125 of file AColor.h.

Referenced by Init(), and SnapGuidePen().

◆ soloBrush

wxBrush AColor::soloBrush
static

Definition at line 106 of file AColor.h.

Referenced by Init(), and Solo().

◆ spareBrush

wxBrush AColor::spareBrush
staticprivate

Definition at line 141 of file AColor.h.

Referenced by UseThemeColour().

◆ sparePen

wxPen AColor::sparePen
staticprivate

Definition at line 140 of file AColor.h.

Referenced by UseThemeColour().

◆ tooltipBrush

wxBrush AColor::tooltipBrush
static

Definition at line 128 of file AColor.h.

Referenced by Init(), and TipWindow::OnPaint().

◆ tooltipPen

wxPen AColor::tooltipPen
static

Definition at line 127 of file AColor.h.

Referenced by Init(), and TipWindow::OnPaint().

◆ trackFocusPens

wxPen AColor::trackFocusPens
static

Definition at line 124 of file AColor.h.

Referenced by Init(), and TrackFocusPen().

◆ uglyBrush

wxBrush AColor::uglyBrush
static

◆ uglyPen

wxPen AColor::uglyPen
static

◆ WideEnvelopePen

wxPen AColor::WideEnvelopePen
static

Definition at line 111 of file AColor.h.

Referenced by Init(), and EffectCompressorPanel::OnPaint().


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