![]() |
Audacity 3.2.0
|
#include <LabelGlyphHandle.h>
Public Member Functions | |
| LabelTrackHit (const std::shared_ptr< LabelTrack > &pLT) | |
| ~LabelTrackHit () | |
| void | OnLabelPermuted (const LabelTrackEvent &e) |
Public Attributes | |
| int | mEdge {} |
| int | mMouseOverLabel { -1 } |
| int | mMouseOverLabelLeft { -1 } |
| Keeps track of which (ranged) label the mouse is currently over. More... | |
| int | mMouseOverLabelRight { -1 } |
| Keeps track of which left label the mouse is currently over. More... | |
| bool | mIsAdjustingLabel {} |
| Keeps track of which right label the mouse is currently over. More... | |
| std::shared_ptr< LabelTrack > | mpLT {} |
| Observer::Subscription | mSubscription |
mEdge: 0 if not over a glyph, else a bitwise or of : 1 if over the left-hand glyph, 2 if over the right-hand glyph on a label, 4 if over center.
mMouseLabelLeft - index of any left label hit mMouseLabelRight - index of any right label hit
Definition at line 33 of file LabelGlyphHandle.h.
| LabelTrackHit::LabelTrackHit | ( | const std::shared_ptr< LabelTrack > & | pLT | ) |
Definition at line 32 of file LabelGlyphHandle.cpp.
References mSubscription, and OnLabelPermuted().
| LabelTrackHit::~LabelTrackHit | ( | ) |
Definition at line 38 of file LabelGlyphHandle.cpp.
| void LabelTrackHit::OnLabelPermuted | ( | const LabelTrackEvent & | e | ) |
Definition at line 42 of file LabelGlyphHandle.cpp.
References LabelTrackEvent::mFormerPosition, mMouseOverLabel, mMouseOverLabelLeft, mMouseOverLabelRight, mpLT, LabelTrackEvent::mPresentPosition, LabelTrackEvent::mpTrack, LabelTrackEvent::Permutation, and LabelTrackEvent::type.
Referenced by LabelTrackHit().
| int LabelTrackHit::mEdge {} |
Definition at line 38 of file LabelGlyphHandle.h.
Referenced by LabelGlyphHandle::HandleGlyphClick(), and LabelTrackView::OverGlyph().
| bool LabelTrackHit::mIsAdjustingLabel {} |
Keeps track of which right label the mouse is currently over.
Definition at line 43 of file LabelGlyphHandle.h.
Referenced by LabelGlyphHandle::HandleGlyphClick(), and LabelGlyphHandle::HandleGlyphDragRelease().
| int LabelTrackHit::mMouseOverLabel { -1 } |
Definition at line 40 of file LabelGlyphHandle.h.
Referenced by LabelGlyphHandle::HandleGlyphClick(), LabelGlyphHandle::HandleGlyphDragRelease(), OnLabelPermuted(), and LabelTrackView::OverGlyph().
| int LabelTrackHit::mMouseOverLabelLeft { -1 } |
Keeps track of which (ranged) label the mouse is currently over.
Definition at line 41 of file LabelGlyphHandle.h.
Referenced by LabelGlyphHandle::HandleGlyphClick(), LabelGlyphHandle::HandleGlyphDragRelease(), LabelGlyphHandle::MayAdjustLabel(), OnLabelPermuted(), and LabelTrackView::OverGlyph().
| int LabelTrackHit::mMouseOverLabelRight { -1 } |
Keeps track of which left label the mouse is currently over.
Definition at line 42 of file LabelGlyphHandle.h.
Referenced by LabelGlyphHandle::HandleGlyphClick(), LabelGlyphHandle::HandleGlyphDragRelease(), LabelGlyphHandle::MayAdjustLabel(), OnLabelPermuted(), and LabelTrackView::OverGlyph().
| std::shared_ptr<LabelTrack> LabelTrackHit::mpLT {} |
Definition at line 45 of file LabelGlyphHandle.h.
Referenced by OnLabelPermuted().
| Observer::Subscription LabelTrackHit::mSubscription |
Definition at line 47 of file LabelGlyphHandle.h.
Referenced by LabelTrackHit().