|
void | Update () |
|
unsigned | SequenceNumber () const override |
| This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect. More...
|
|
std::pair< wxRect, bool > | DoGetRectangle (wxSize size) override |
|
void | Draw (OverlayPanel &panel, wxDC &dc) override |
|
Definition at line 460 of file AdornedRulerPanel.cpp.
◆ TrackPanelGuidelineOverlay()
AdornedRulerPanel::TrackPanelGuidelineOverlay::TrackPanelGuidelineOverlay |
( |
AudacityProject * |
project | ) |
|
◆ DoGetRectangle()
std::pair< wxRect, bool > AdornedRulerPanel::TrackPanelGuidelineOverlay::DoGetRectangle |
( |
wxSize |
size | ) |
|
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 628 of file AdornedRulerPanel.cpp.
629{
631
633 return std::make_pair(
634 rect,
638 );
639}
std::shared_ptr< ScrubbingRulerOverlay > mPartner
References size.
◆ Draw()
void AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw |
( |
OverlayPanel & |
panel, |
|
|
wxDC & |
dc |
|
) |
| |
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 641 of file AdornedRulerPanel.cpp.
643{
647
651 if (auto pHandle =
652 dynamic_cast<PlayRegionAdjustingHandle*
>(
ruler.Target().get());
653 pHandle != nullptr && pHandle->Clicked())
654
655 return;
656 }
657
661 ?
AColor::SnapGuidePen(&dc)
663
664
665 auto pCellularPanel =
dynamic_cast<CellularPanel*
>( &panel );
666 if ( !pCellularPanel ) {
667 wxASSERT( false );
668 return;
669 }
670 pCellularPanel
672 const auto pChannelView =
dynamic_cast<ChannelView*
>(&cell);
673 if (!pChannelView)
674 return;
675
676
679 rect.GetTop(),
681 rect.GetBottom());
682 } );
683 }
684}
AColor Manages color brushes and pens.
static void IndicatorColor(wxDC *dc, bool bIsNotRecording)
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
static AdornedRulerPanel & Get(AudacityProject &project)
Formerly part of TrackPanel, this abstract base class has no special knowledge of Track objects and i...
References AdornedRulerPanel::CommonRulerHandle::Clicked(), AdornedRulerPanel::Get(), AColor::IndicatorColor(), AColor::Light(), AColor::Line(), AdornedRulerPanel::mProject, anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), and AColor::SnapGuidePen().
◆ SequenceNumber()
unsigned AdornedRulerPanel::TrackPanelGuidelineOverlay::SequenceNumber |
( |
| ) |
const |
|
overrideprivatevirtual |
This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect.
Implements Overlay.
Definition at line 609 of file AdornedRulerPanel.cpp.
◆ Update()
void AdornedRulerPanel::TrackPanelGuidelineOverlay::Update |
( |
| ) |
|
|
private |
◆ AdornedRulerPanel
friend AdornedRulerPanel::TrackPanelGuidelineOverlay::AdornedRulerPanel |
|
private |
◆ mNewPreviewingScrub
bool AdornedRulerPanel::TrackPanelGuidelineOverlay::mNewPreviewingScrub {} |
|
private |
◆ mOldIndicatorSnapped
int AdornedRulerPanel::TrackPanelGuidelineOverlay::mOldIndicatorSnapped { -1 } |
|
private |
◆ mOldPreviewingScrub
bool AdornedRulerPanel::TrackPanelGuidelineOverlay::mOldPreviewingScrub {} |
|
private |
◆ mOldQPIndicatorPos
int AdornedRulerPanel::TrackPanelGuidelineOverlay::mOldQPIndicatorPos { -1 } |
|
private |
◆ mPartner
◆ mProject
◆ ScrubbingRulerOverlay
friend AdornedRulerPanel::TrackPanelGuidelineOverlay::ScrubbingRulerOverlay |
|
private |
The documentation for this class was generated from the following file: