Audacity 3.2.0
Public Member Functions | Static Public Member Functions | List of all members
TrackPanelDrawable Class Referenceabstract

Drawing interface common to cells, groups of cells, and temporary handles in CellularPanel. More...

#include <TrackPanelDrawable.h>

Inheritance diagram for TrackPanelDrawable:
[legend]

Public Member Functions

virtual ~TrackPanelDrawable ()=0
 
virtual void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
 
virtual wxRect DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass)
 

Static Public Member Functions

static wxRect MaximizeWidth (const wxRect &rect, const wxRect &panelRect)
 
static wxRect MaximizeHeight (const wxRect &rect, const wxRect &panelRect)
 

Detailed Description

Drawing interface common to cells, groups of cells, and temporary handles in CellularPanel.

Definition at line 22 of file TrackPanelDrawable.h.

Constructor & Destructor Documentation

◆ ~TrackPanelDrawable()

TrackPanelDrawable::~TrackPanelDrawable ( )
pure virtual

Definition at line 13 of file TrackPanelDrawable.cpp.

14{
15}

Member Function Documentation

◆ Draw()

void TrackPanelDrawable::Draw ( TrackPanelDrawingContext context,
const wxRect &  rect,
unsigned  iPass 
)
virtual

◆ DrawingArea()

wxRect TrackPanelDrawable::DrawingArea ( TrackPanelDrawingContext context,
const wxRect &  rect,
const wxRect &  panelRect,
unsigned  iPass 
)
virtual

Reimplemented in anonymous_namespace{TrackPanel.cpp}::LabeledChannelGroup, NoteTrackVZoomHandle, SpectrumVZoomHandle, WaveClipAdjustBorderHandle, WaveformVZoomHandle, BackgroundCell, ChannelVRulerControls, CommonTrackControls, SelectHandle, TimeShiftHandle, and ZoomHandle.

Definition at line 22 of file TrackPanelDrawable.cpp.

25{
26 return rect;
27}

Referenced by CellularPanel::Draw().

Here is the caller graph for this function:

◆ MaximizeHeight()

static wxRect TrackPanelDrawable::MaximizeHeight ( const wxRect &  rect,
const wxRect &  panelRect 
)
inlinestatic

Definition at line 52 of file TrackPanelDrawable.h.

53 {
54 return { rect.x, panelRect.y, rect.width, panelRect.height };
55 }

Referenced by AdjustClipBorder::DrawingArea(), SelectHandle::DrawingArea(), TimeShiftHandle::DrawingArea(), and ZoomHandle::DrawingArea().

Here is the caller graph for this function:

◆ MaximizeWidth()

static wxRect TrackPanelDrawable::MaximizeWidth ( const wxRect &  rect,
const wxRect &  panelRect 
)
inlinestatic

Definition at line 47 of file TrackPanelDrawable.h.

48 {
49 return { panelRect.x, rect.y, panelRect.width, rect.height };
50 }

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