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 Line (wxDC &dc, const wxPoint &from, const wxPoint &to)
 
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 DrawHStretch (wxDC &dc, const wxRect &rect, wxBitmap &bitmap)
 
static void DrawFrame (wxDC &dc, const wxRect &r, wxBitmap &bitmap, int mid)
 
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 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 841 of file AColor.cpp.

842{
843 ReInit();
844 theTheme.Publish({});
845}
THEME_API Theme theTheme
Definition: Theme.cpp:82
static void ReInit()
Definition: AColor.cpp:501
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 167 of file AColor.cpp.

168{
169 if (width & 0x01) {
170 width--;
171 }
172
173 wxPoint pt[3];
174 int half = width / 2;
175
176 if (down) {
177 pt[0].x = 0; pt[0].y = 0;
178 pt[1].x = width; pt[1].y = 0;
179 pt[2].x = half; pt[2].y = half;
180 }
181 else {
182 pt[0].x = 0; pt[0].y = half;
183 pt[1].x = half; pt[1].y = 0;
184 pt[2].x = width; pt[2].y = half;
185 }
186
187 dc.DrawPolygon(3, pt, x, y);
188}

Referenced by NumericTextCtrl::Layout().

Here is the caller graph for this function:

◆ Bevel()

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

Definition at line 278 of file AColor.cpp.

279{
280 AColor::Dark(&dc, false);
281
282 AColor::Line(dc, r.x, r.y, r.x + r.width, r.y);
283 AColor::Line(dc, r.x, r.y, r.x, r.y + r.height);
284
285 AColor::Line(dc, r.x + r.width, r.y, r.x + r.width, r.y + r.height);
286 AColor::Line(dc, r.x, r.y + r.height, r.x + r.width, r.y + r.height);
287}
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
Definition: AColor.cpp:194
static void Dark(wxDC *dc, bool selected, bool highlight=false)
Definition: AColor.cpp:421

References Dark(), and Line().

Referenced by BevelTrackInfo(), MixerBoard::LoadMusicalInstruments(), and MixerTrackCluster::OnPaint().

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 298 of file AColor.cpp.

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

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

Referenced by CommonTrackInfo::DrawCloseButton(), MixerBoard::MakeButtonBitmap(), 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 344 of file AColor.cpp.

345{
346 Bevel( dc, up, r );
347}
static void Bevel(wxDC &dc, bool up, const wxRect &r)
Definition: AColor.cpp:278

References Bevel().

Here is the call graph for this function:

◆ Blend()

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

Definition at line 335 of file AColor.cpp.

336{
337 wxColour c3(
338 (c1.Red() + c2.Red())/2,
339 (c1.Green() + c2.Green())/2,
340 (c1.Blue() + c2.Blue())/2);
341 return c3;
342}

◆ 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 289 of file AColor.cpp.

290{
292 dc,
293 theTheme.Bitmap(GetButtonImageIndex(up, selected, highlight)),
294 r, 2
295 );
296}
void DrawNinePatch(wxDC &dc, wxBitmap &bitmap, const wxRect &r, int mid=1)
Definition: AColor.cpp:82

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 437 of file AColor.cpp.

438{
439 if (!inited)
440 Init();
441
442 dc->SetLogicalFunction(wxCOPY);
443 dc->SetPen(cursorPen);
444}
static bool inited
Definition: AColor.h:146
static wxPen cursorPen
Definition: AColor.h:105
static void Init()
Definition: AColor.cpp:531

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 421 of file AColor.cpp.

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

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

Referenced by Bevel(), anonymous_namespace{TrackPanel.cpp}::ChannelStack::Draw(), TrackPanelResizerCell::Draw(), anonymous_namespace{WaveformView.cpp}::DrawTimeSlider(), ToolBarResizer::OnPaint(), and ToolDock::OnPaint().

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 668 of file AColor.cpp.

669{
670 if (channel >= 1 && channel <= 16) {
671 const int *colors = AColor_midicolors[channel - 1];
672
673 dc->SetPen(wxPen(wxColour(colors[0] / 2,
674 colors[1] / 2,
675 colors[2] / 2), 1, wxPENSTYLE_SOLID));
676 dc->SetBrush(wxBrush(wxColour(colors[0] / 2,
677 colors[1] / 2,
678 colors[2] / 2), wxBRUSHSTYLE_SOLID));
679 } else {
680 dc->SetPen(wxPen(wxColour(102, 102, 102), 1, wxPENSTYLE_SOLID));
681 dc->SetBrush(wxBrush(wxColour(102, 102, 102), wxBRUSHSTYLE_SOLID));
682 }
683
684}
const int AColor_midicolors[16][3]
Definition: AColor.cpp:614

References AColor_midicolors.

Referenced by anonymous_namespace{NoteTrackControls.cpp}::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 247 of file AColor.cpp.

248{
249 // draw the pixels manually: note that to behave in the same manner as
250 // DrawRect(), we must exclude the bottom and right borders from the
251 // rectangle
252 wxCoord x1 = rect.GetLeft(),
253 y1 = rect.GetTop(),
254 x2 = rect.GetRight(),
255 y2 = rect.GetBottom();
256
257 // -1 for brush, so it just sets the pen colour, and does not change the brush.
258 UseThemeColour( &dc, -1, clrTrackPanelText );
259
260 wxCoord z;
261 for ( z = x1 + 1; z < x2; z += 2 )
262 dc.DrawPoint(z, y1);
263
264 wxCoord shift = z == x2 ? 0 : 1;
265 for ( z = y1 + shift; z < y2; z += 2 )
266 dc.DrawPoint(x2, z);
267
268 shift = z == y2 ? 0 : 1;
269 for ( z = x2 - shift; z > x1; z -= 2 )
270 dc.DrawPoint(z, y2);
271
272 shift = z == x1 ? 0 : 1;
273 for ( z = y2 - shift; z > y1; z -= 2 )
274 dc.DrawPoint(x1, z);
275
276}
static void UseThemeColour(wxDC *dc, int iBrush, int iPen=-1, int alpha=255)
Definition: AColor.cpp:354

References UseThemeColour().

Referenced by KeyView::OnDrawBackground(), anonymous_namespace{RealtimeEffectPanel.cpp}::RealtimeEffectControl::OnPaint(), AButton::OnPaint(), ASlider::OnPaint(), ListNavigationPanel::OnPaint(), anonymous_namespace{RealtimeEffectPanel.cpp}::HyperLinkCtrlWrapper::OnPaint(), auStaticText::OnPaint(), and MeterPanel::OnPaint().

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

◆ DrawFrame()

void AColor::DrawFrame ( wxDC &  dc,
const wxRect &  r,
wxBitmap &  bitmap,
int  mid = 1 
)
static

Definition at line 329 of file AColor.cpp.

330{
331 DrawNinePatch(dc, bitmap, r, mid);
332}

References anonymous_namespace{AColor.cpp}::DrawNinePatch().

Referenced by anonymous_namespace{CommonTrackInfo.cpp}::DrawToolButtonBackground(), and AButton::OnPaint().

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

◆ DrawHStretch()

void AColor::DrawHStretch ( wxDC &  dc,
const wxRect &  rect,
wxBitmap &  bitmap 
)
static

Definition at line 312 of file AColor.cpp.

313{
314 wxMemoryDC srcDC;
315 srcDC.SelectObject(bitmap);
316
317 const auto sh = bitmap.GetHeight();
318 const auto dh = rect.height;
319 const auto w0 = std::min((bitmap.GetWidth() - 1) / 2, rect.width / 2);
320 const auto dx0 = rect.x;
321 const auto dx1 = rect.x + w0;
322 const auto dx2 = rect.x + rect.width - w0;
323
324 dc.StretchBlit(dx0, rect.y, w0, dh, &srcDC, 0, 0, w0, sh, wxCOPY, true);
325 dc.StretchBlit(dx1, rect.y, rect.width - w0 * 2, dh, &srcDC, w0, 0, 1, sh, wxCOPY, true);
326 dc.StretchBlit(dx2, rect.y, w0, dh, &srcDC, bitmap.GetWidth() - w0, 0, w0, sh, wxCOPY, true);
327}

References min().

Referenced by AButton::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 446 of file AColor.cpp.

447{
448 if (!inited)
449 Init();
450 int index = (int) bIsNotRecording;
451 dc->SetPen(indicatorPen[index]);
452 dc->SetBrush(indicatorBrush[index]);
453}
static wxBrush indicatorBrush[2]
Definition: AColor.h:107
static wxPen indicatorPen[2]
Definition: AColor.h:106

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 531 of file AColor.cpp.

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

396{
397 if (!inited)
398 Init();
399 int index = (int) selected;
400 auto &brush = highlight ? AColor::uglyBrush : lightBrush[index];
401 dc->SetBrush( brush );
402 auto &pen = highlight ? AColor::uglyPen : lightPen[index];
403 dc->SetPen( pen );
404}

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

Referenced by 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 650 of file AColor.cpp.

651{
652 if (channel >= 1 && channel <= 16) {
653 const int *colors = AColor_midicolors[channel - 1];
654
655 dc->SetPen(wxPen(wxColour(127 + colors[0] / 2,
656 127 + colors[1] / 2,
657 127 + colors[2] / 2), 1, wxPENSTYLE_SOLID));
658 dc->SetBrush(wxBrush(wxColour(127 + colors[0] / 2,
659 127 + colors[1] / 2,
660 127 + colors[2] / 2), wxBRUSHSTYLE_SOLID));
661 } else {
662 dc->SetPen(wxPen(wxColour(204, 204, 204), 1, wxPENSTYLE_SOLID));
663 dc->SetBrush(wxBrush(wxColour(204, 204, 204), wxBRUSHSTYLE_SOLID));
664 }
665
666}

References AColor_midicolors.

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

Here is the caller graph for this function:

◆ Line() [1/2]

void AColor::Line ( wxDC &  dc,
const wxPoint &  from,
const wxPoint &  to 
)
static

Definition at line 200 of file AColor.cpp.

201{
202 Line( dc, from.x, from.y, to.x, to.y);
203}

References Line().

Here is the call graph for this function:

◆ Line() [2/2]

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

Definition at line 194 of file AColor.cpp.

195{
196 const wxPoint points[] { { x1, y1 }, { x2, y2 } };
197 Lines( dc, 2, points );
198}
static void Lines(wxDC &dc, size_t nPoints, const wxPoint points[])
Definition: AColor.cpp:206

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}::ChannelStack::Draw(), anonymous_namespace{TrackPanel.cpp}::LabeledChannelGroup::Draw(), TrackPanelResizerCell::Draw(), NoteTrackVRulerControls::Draw(), Ruler::Draw(), WaveChannelSubView::DrawBoldBoundaries(), TrackArt::DrawClipEdges(), TrackArt::DrawCursor(), anonymous_namespace{WaveformView.cpp}::DrawEnvLine(), Ruler::DrawGrid(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), anonymous_namespace{NoteTrackControls.cpp}::DrawLabelControls(), LabelTrackView::DrawLines(), MeterPanel::DrawMeterBar(), TrackArt::DrawNegativeOffsetTrackArrows(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteBackground(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack(), FrequencyPlotDialog::DrawPlot(), TrackArt::DrawSnapLines(), anonymous_namespace{WaveformView.cpp}::DrawTimeSlider(), LWSlider::DrawToBitmap(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), Line(), KeyView::OnDrawBackground(), KeyView::OnDrawItem(), EqualizationPanel::OnPaint(), ExportMixerPanel::OnPaint(), ToolBarResizer::OnPaint(), ToolDock::OnPaint(), EffectAutoDuck::Panel::OnPaint(), EffectLegacyCompressorPanel::OnPaint(), EffectScienFilterPanel::OnPaint(), MeterPanel::OnPaint(), ToolFrame::OnPaint(), 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 206 of file AColor.cpp.

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

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 406 of file AColor.cpp.

407{
408 if (!inited)
409 Init();
410 int index = (int) selected;
411 dc->SetBrush(mediumBrush[index]);
412 dc->SetPen(mediumPen[index]);
413}

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

Referenced by Grabber::DrawGrabber().

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 415 of file AColor.cpp.

416{
417 UseThemeColour( dc, selected ? clrTrackInfoSelected : clrTrackInfo );
418}

References UseThemeColour().

Referenced by anonymous_namespace{TrackPanel.cpp}::ChannelStack::Draw(), CommonTrackControls::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 634 of file AColor.cpp.

635{
636 if (channel >= 1 && channel <= 16) {
637 const int *colors = AColor_midicolors[channel - 1];
638
639 dc->SetPen(wxPen(wxColour(colors[0],
640 colors[1], colors[2]), 1, wxPENSTYLE_SOLID));
641 dc->SetBrush(wxBrush(wxColour(colors[0],
642 colors[1], colors[2]), wxBRUSHSTYLE_SOLID));
643 } else {
644 dc->SetPen(wxPen(wxColour(153, 153, 153), 1, wxPENSTYLE_SOLID));
645 dc->SetBrush(wxBrush(wxColour(153, 153, 153), wxBRUSHSTYLE_SOLID));
646 }
647
648}

References AColor_midicolors.

Referenced by anonymous_namespace{NoteTrackControls.cpp}::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 469 of file AColor.cpp.

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

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 690 of file AColor.cpp.

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

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 501 of file AColor.cpp.

502{
503 inited=false;
504 Init();
507}
static void PreComputeGradient()
Definition: AColor.cpp:690

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 462 of file AColor.cpp.

463{
464 if (!inited)
465 Init();
466 dc->SetPen(snapGuidePen);
467}

References Init(), inited, and snapGuidePen.

Referenced by AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), and TrackArt::DrawSnapLines().

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 484 of file AColor.cpp.

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

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 455 of file AColor.cpp.

456{
457 if (!inited)
458 Init();
459 dc->SetPen(trackFocusPens[level]);
460}

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 432 of file AColor.cpp.

433{
434 UseThemeColour( dc, selected ? clrMediumSelected : clrTrackBackground );
435}

References 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 354 of file AColor.cpp.

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

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

Referenced by AdornedRulerPanel::DoDrawBackground(), TrackArt::DrawClipAffordance(), TrackArt::DrawClipEdges(), TrackArt::DrawClipFolded(), DrawFocus(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), LWSlider::DrawToBitmap(), 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 374 of file AColor.cpp.

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

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 114 of file AColor.h.

Referenced by Init().

◆ colorSchemes

const int AColor::colorSchemes = 4
static

Definition at line 135 of file AColor.h.

◆ cursorPen

wxPen AColor::cursorPen
static

Definition at line 105 of file AColor.h.

Referenced by CursorColor(), and Init().

◆ darkBrush

wxBrush AColor::darkBrush
static

Definition at line 100 of file AColor.h.

Referenced by Dark(), and Init().

◆ darkPen

wxPen AColor::darkPen
static

Definition at line 103 of file AColor.h.

Referenced by Dark(), Init(), and MeterPanel::OnPaint().

◆ envelopeBrush

wxBrush AColor::envelopeBrush
static

Definition at line 118 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 137 of file AColor.h.

Referenced by GetColorGradient(), and PreComputeGradient().

◆ gradientSteps

const int AColor::gradientSteps = 256
static

Definition at line 136 of file AColor.h.

Referenced by GetColorGradient(), and PreComputeGradient().

◆ indicatorBrush

wxBrush AColor::indicatorBrush
static

Definition at line 107 of file AColor.h.

Referenced by IndicatorColor(), and Init().

◆ indicatorPen

wxPen AColor::indicatorPen
static

Definition at line 106 of file AColor.h.

Referenced by IndicatorColor(), and Init().

◆ inited

bool AColor::inited = false
staticprivate

◆ labelSelectedBrush

wxBrush AColor::labelSelectedBrush
static

◆ labelSurroundPen

wxPen AColor::labelSurroundPen
static

Definition at line 126 of file AColor.h.

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

◆ labelSyncLockSelBrush

wxBrush AColor::labelSyncLockSelBrush
static

Definition at line 124 of file AColor.h.

Referenced by Init().

◆ labelSyncLockSelPen

wxPen AColor::labelSyncLockSelPen
static

Definition at line 125 of file AColor.h.

Referenced by Init().

◆ labelTextEditBrush

wxBrush AColor::labelTextEditBrush
static

Definition at line 121 of file AColor.h.

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

◆ labelTextNormalBrush

wxBrush AColor::labelTextNormalBrush
static

Definition at line 120 of file AColor.h.

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

◆ labelUnselectedBrush

wxBrush AColor::labelUnselectedBrush
static

◆ lightBrush

wxBrush AColor::lightBrush
static

Definition at line 98 of file AColor.h.

Referenced by Init(), and Light().

◆ lightPen

wxPen AColor::lightPen
static

Definition at line 101 of file AColor.h.

Referenced by Init(), and Light().

◆ mediumBrush

wxBrush AColor::mediumBrush
static

Definition at line 99 of file AColor.h.

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

◆ mediumPen

wxPen AColor::mediumPen
static

Definition at line 102 of file AColor.h.

Referenced by Init(), and Medium().

◆ muteBrush

wxBrush AColor::muteBrush
static

Definition at line 111 of file AColor.h.

Referenced by Init(), and Mute().

◆ playRegionBrush

wxBrush AColor::playRegionBrush
static

Definition at line 109 of file AColor.h.

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

◆ snapGuidePen

wxPen AColor::snapGuidePen
static

Definition at line 129 of file AColor.h.

Referenced by Init(), and SnapGuidePen().

◆ soloBrush

wxBrush AColor::soloBrush
static

Definition at line 112 of file AColor.h.

Referenced by Init(), and Solo().

◆ spareBrush

wxBrush AColor::spareBrush
staticprivate

Definition at line 145 of file AColor.h.

Referenced by UseThemeColour().

◆ sparePen

wxPen AColor::sparePen
staticprivate

Definition at line 144 of file AColor.h.

Referenced by UseThemeColour().

◆ tooltipBrush

wxBrush AColor::tooltipBrush
static

Definition at line 132 of file AColor.h.

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

◆ tooltipPen

wxPen AColor::tooltipPen
static

Definition at line 131 of file AColor.h.

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

◆ trackFocusPens

wxPen AColor::trackFocusPens
static

Definition at line 128 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 117 of file AColor.h.

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


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