MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::Rest Class Reference

This class implements a rest. More...

#include <rest.h>

Inheritance diagram for Ms::Rest:
Inheritance graph
[legend]
Collaboration diagram for Ms::Rest:
Collaboration graph
[legend]

Public Member Functions

 Rest (Score *s=0)
 
 Rest (Score *, const TDuration &)
 
 Rest (const Rest &, bool link=false)
 
 ~Rest ()
 
virtual ElementType type () const override
 
Restoperator= (const Rest &)=delete
 
virtual Restclone () const override
 
virtual ElementlinkedClone ()
 
virtual Measuremeasure () const override
 
virtual qreal mag () const override
 
virtual void draw (QPainter *) const override
 
virtual void scanElements (void *data, void(*func)(void *, Element *), bool all=true) override
 
void setTrack (int val)
 
virtual bool acceptDrop (EditData &) const override
 Return true if this element accepts a drop at canvas relative pos of given element type and subtype. More...
 
virtual Elementdrop (EditData &) override
 Handle a dropped element at canvas relative pos of given element type and subtype. More...
 
virtual void layout () override
 
bool isGap () const
 
virtual void setGap (bool v)
 
virtual void reset () override
 
virtual void add (Element *)
 
virtual void remove (Element *)
 
virtual void read (XmlReader &) override
 
virtual void write (XmlWriter &xml) const override
 
void layoutMMRest (qreal val)
 
qreal mmWidth () const
 
SymId getSymbol (TDuration::DurationType type, int line, int lines, int *yoffset)
 
void checkDots ()
 
void layoutDots ()
 
NoteDotdot (int n)
 
int getDotline () const
 
SymId sym () const
 
bool accent ()
 
void setAccent (bool flag)
 
int computeLineOffset (int lines)
 
virtual int upLine () const
 
virtual int downLine () const
 
virtual QPointF stemPos () const
 
virtual qreal stemPosX () const
 
virtual QPointF stemPosBeam () const
 
virtual void localSpatiumChanged (qreal oldValue, qreal newValue) override
 
virtual bool setProperty (Pid propertyId, const QVariant &v) override
 
void undoChangeDotsVisible (bool v)
 
virtual QVariant getProperty (Pid propertyId) const override
 
virtual QVariant propertyDefault (Pid) const override
 
virtual ElementnextElement () override
 
virtual ElementprevElement () override
 
virtual QString accessibleInfo () const override
 
virtual QString screenReaderInfo () const override
 
Shape shape () const override
 
- Public Member Functions inherited from Ms::ChordRest
 ChordRest (Score *)
 
 ChordRest (const ChordRest &, bool link=false)
 
ChordRestoperator= (const ChordRest &)=delete
 
 ~ChordRest ()
 
virtual void undoUnlink () override
 
virtual Segmentsegment () const
 
virtual void writeProperties (XmlWriter &xml) const
 
virtual bool readProperties (XmlReader &)
 
virtual void readAddConnector (ConnectorInfoReader *info, bool pasteMode) override
 
void setBeamMode (Beam::Mode m)
 
void undoSetBeamMode (Beam::Mode m)
 
Beam::Mode beamMode () const
 
void setBeam (Beam *b)
 
virtual Beambeam () const final
 
int beams () const
 
int line (bool up) const
 
int line () const
 
bool up () const
 
void setUp (bool val)
 
bool small () const
 
void setSmall (bool val)
 
void undoSetSmall (bool val)
 
int staffMove () const
 
void setStaffMove (int val)
 
virtual int vStaffIdx () const override
 
const TDuration durationType () const
 
const TDuration actualDurationType () const
 
void setDurationType (TDuration::DurationType t)
 
void setDurationType (const QString &s)
 
void setDurationType (const Fraction &ticks)
 
void setDurationType (TDuration v)
 
void setDots (int n)
 
int dots () const
 
int actualDots () const
 
Fraction durationTypeTicks ()
 
QString durationUserName () const
 
const std::vector< Lyrics * > & lyrics () const
 
std::vector< Lyrics * > & lyrics ()
 
Lyricslyrics (int verse, Placement) const
 
int lastVerse (Placement) const
 
void removeDeleteBeam (bool beamed)
 
ElementListel ()
 
const ElementListel () const
 
CrossMeasure crossMeasure () const
 
void setCrossMeasure (CrossMeasure val)
 
virtual void crossMeasureSetup (bool)
 
TDuration crossMeasureDurationType () const
 
void setCrossMeasureDurationType (TDuration v)
 
bool isGrace () const
 
bool isGraceBefore () const
 
bool isGraceAfter () const
 
void writeBeam (XmlWriter &xml) const
 
SegmentnextSegmentAfterCR (SegmentType types) const
 
virtual void setScore (Score *s) override
 
ElementnextArticulationOrLyric (Element *e)
 
ElementprevArticulationOrLyric (Element *e)
 
ElementlastElementBeforeSegment ()
 
virtual ElementnextSegmentElement () override
 
virtual ElementprevSegmentElement () override
 
virtual QString accessibleExtraInfo () const override
 
virtual void layoutStem1 ()
 
virtual void computeUp ()
 
bool isFullMeasureRest () const
 
virtual void removeMarkings (bool keepTremolo=false)
 
bool isBefore (const ChordRest *) const
 
void undoAddAnnotation (Element *)
 
- Public Member Functions inherited from Ms::DurationElement
 DurationElement (Score *=0, ElementFlags=ElementFlag::MOVABLE|ElementFlag::ON_STAFF)
 
 DurationElement (const DurationElement &e)
 
 ~DurationElement ()
 
void readAddTuplet (Tuplet *t)
 
void writeTupletStart (XmlWriter &xml) const
 
void writeTupletEnd (XmlWriter &xml) const
 
void setTuplet (Tuplet *t)
 
Tuplettuplet () const
 
TuplettopTuplet () const
 
Fraction actualTicks () const
 
virtual Fraction ticks () const
 
Fraction globalTicks () const
 
void setTicks (const Fraction &f)
 
- Public Member Functions inherited from Ms::Element
 Element (Score *=0, ElementFlags=ElementFlag::NOTHING)
 
 Element (const Element &)
 
virtual ~Element ()
 
Elementoperator= (const Element &)=delete
 
Elementparent () const
 
void setParent (Element *e)
 
MeasurefindMeasure ()
 
const MeasurefindMeasure () const
 
MeasureBasefindMeasureBase ()
 
const MeasureBasefindMeasureBase () const
 
virtual bool isElement () const override
 
qreal spatium () const
 
void setFlag (ElementFlag f, bool v)
 
void setFlag (ElementFlag f, bool v) const
 
bool flag (ElementFlag f) const
 
bool selected () const
 
virtual void setSelected (bool f)
 
bool visible () const
 
virtual void setVisible (bool f)
 
virtual bool sizeIsSpatiumDependent () const override
 
void setSizeIsSpatiumDependent (bool v)
 
Placement placement () const
 
void setPlacement (Placement val)
 
bool placeAbove () const
 
bool placeBelow () const
 
bool generated () const
 
void setGenerated (bool val)
 
Spatium minDistance () const
 
void setMinDistance (Spatium v)
 
OffsetChange offsetChanged () const
 
void setOffsetChanged (bool v, bool absolute=true, const QPointF &diff=QPointF())
 
const QPointF & ipos () const
 
virtual const QPointF pos () const
 
virtual qreal x () const
 
virtual qreal y () const
 
void setPos (qreal x, qreal y)
 
void setPos (const QPointF &p)
 
QPointF & rpos ()
 
qreal & rxpos ()
 
qreal & rypos ()
 
virtual void move (const QPointF &s)
 
virtual QPointF pagePos () const
 position in page coordinates More...
 
virtual QPointF canvasPos () const
 position in canvas coordinates More...
 
qreal pageX () const
 
qreal canvasX () const
 
const QPointF & offset () const
 
void setOffset (qreal x, qreal y)
 
QPointF & roffset ()
 
qreal & rxoffset ()
 
qreal & ryoffset ()
 
virtual Fraction tick () const
 
virtual Fraction rtick () const
 
bool isNudged () const
 
virtual const QRectF & bbox () const
 
virtual QRectF & bbox ()
 
virtual qreal height () const
 
virtual void setHeight (qreal v)
 
virtual qreal width () const
 
virtual void setWidth (qreal v)
 
QRectF abbox () const
 
QRectF pageBoundingRect () const
 
QRectF canvasBoundingRect () const
 
virtual void setbbox (const QRectF &r) const
 
virtual void addbbox (const QRectF &r) const
 
bool contains (const QPointF &p) const
 
bool intersects (const QRectF &r) const
 
virtual qreal baseLine () const
 
virtual int subtype () const
 
void drawAt (QPainter *p, const QPointF &pt) const
 
virtual void startDrag (EditData &)
 
virtual void endDrag (EditData &)
 
virtual QLineF dragAnchor () const
 
virtual bool isEditable () const
 
virtual void startEdit (EditData &)
 
virtual bool edit (EditData &)
 
virtual void startEditDrag (EditData &)
 
virtual void editDrag (EditData &)
 
virtual void endEditDrag (EditData &)
 
virtual void endEdit (EditData &)
 
virtual void editCut (EditData &)
 
virtual void editCopy (EditData &)
 
void updateGrips (EditData &) const
 
virtual bool nextGrip (EditData &) const
 
virtual bool prevGrip (EditData &) const
 
virtual QPointF gripAnchor (Grip) const
 
virtual EditBehavior normalModeEditBehavior () const
 
virtual int gripsCount () const
 
virtual Grip initialEditModeGrip () const
 
virtual Grip defaultGrip () const
 
virtual std::vector< QPointF > gripsPositions (const EditData &) const
 
int track () const
 
int z () const
 
void setZ (int val)
 
int staffIdx () const
 
int voice () const
 
void setVoice (int v)
 
Staffstaff () const
 
StaffTypestaffType () const
 
Partpart () const
 
virtual void change (Element *o, Element *n)
 
virtual void spatiumChanged (qreal, qreal)
 
virtual void dump () const
 
virtual Q_INVOKABLE QString subtypeName () const
 
virtual Q_INVOKABLE QString _name () const
 
virtual QColor color () const
 
QColor curColor () const
 
QColor curColor (bool isVisible) const
 
QColor curColor (bool isVisible, QColor normalColor) const
 
virtual void setColor (const QColor &c)
 
void undoSetColor (const QColor &c)
 
void undoSetVisible (bool v)
 
virtual QByteArray mimeData (const QPointF &) const
 
virtual bool mousePress (EditData &)
 delivers mouseEvent to element in edit mode returns true if mouse event is accepted by element More...
 
void setMag (qreal val)
 
qreal magS () const
 
bool isPrintable () const
 
qreal point (const Spatium sp) const
 
bool systemFlag () const
 
void setSystemFlag (bool v) const
 
bool header () const
 
void setHeader (bool v)
 
bool trailer () const
 
void setTrailer (bool val)
 
bool selectable () const
 
void setSelectable (bool val)
 
bool dropTarget () const
 
void setDropTarget (bool v) const
 
bool composition () const
 
void setComposition (bool v) const
 
virtual bool isMovable () const
 
bool enabled () const
 
void setEnabled (bool val)
 
uint tag () const
 
void setTag (uint val)
 
bool autoplace () const
 
virtual void setAutoplace (bool v)
 
bool addToSkyline () const
 
virtual void undoChangeProperty (Pid id, const QVariant &, PropertyFlags ps) override
 
virtual Pid propertyId (const QStringRef &xmlName) const override
 
virtual QString propertyUserValue (Pid) const override
 
virtual ElementpropertyDelegate (Pid)
 
bool custom (Pid) const
 
virtual bool isUserModified () const
 
void drawSymbol (SymId id, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const
 
void drawSymbol (SymId id, QPainter *p, const QPointF &o, int n) const
 
void drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const
 
void drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o, const QSizeF &scale) const
 
qreal symHeight (SymId id) const
 
qreal symWidth (SymId id) const
 
qreal symWidth (const std::vector< SymId > &) const
 
QRectF symBbox (SymId id) const
 
QRectF symBbox (const std::vector< SymId > &) const
 
QPointF symStemDownNW (SymId id) const
 
QPointF symStemUpSE (SymId id) const
 
QPointF symCutOutNE (SymId id) const
 
QPointF symCutOutNW (SymId id) const
 
QPointF symCutOutSE (SymId id) const
 
QPointF symCutOutSW (SymId id) const
 
qreal symAdvance (SymId id) const
 
bool symIsValid (SymId id) const
 
bool concertPitch () const
 
virtual void triggerLayout () const
 
virtual void triggerLayoutAll () const
 
virtual void drawEditMode (QPainter *, EditData &)
 
void autoplaceSegmentElement (bool above, bool add)
 
void autoplaceMeasureElement (bool above, bool add)
 
void autoplaceSegmentElement (bool add=true)
 
void autoplaceMeasureElement (bool add=true)
 
void autoplaceCalculateOffset (QRectF &r, qreal minDistance)
 
qreal rebaseOffset (bool nox=true)
 
bool rebaseMinDistance (qreal &md, qreal &yd, qreal sp, qreal rebase, bool above, bool fix)
 
qreal styleP (Sid idx) const
 
- Public Member Functions inherited from Ms::ScoreElement
 ScoreElement (Score *s)
 
 ScoreElement (const ScoreElement &se)
 
virtual ~ScoreElement ()
 
Scorescore () const
 
MasterScoremasterScore () const
 
const char * name () const
 
virtual QString userName () const
 
virtual void resetProperty (Pid id)
 
QVariant propertyDefault (Pid pid, Tid tid) const
 
virtual void initElementStyle (const ElementStyle *)
 
virtual const ElementStylestyledProperties () const
 
virtual PropertyFlagspropertyFlagsList () const
 
virtual PropertyFlags propertyFlags (Pid) const
 
bool isStyled (Pid pid) const
 
QVariant styleValue (Pid, Sid) const
 
void setPropertyFlags (Pid, PropertyFlags)
 
virtual Sid getPropertyStyle (Pid) const
 
bool readProperty (const QStringRef &, XmlReader &, Pid)
 
void readProperty (XmlReader &, Pid)
 
bool readStyledProperty (XmlReader &e, const QStringRef &tag)
 
virtual void styleChanged ()
 
void undoChangeProperty (Pid id, const QVariant &)
 
void undoResetProperty (Pid id)
 
void undoPushProperty (Pid)
 
void writeProperty (XmlWriter &xml, Pid id) const
 
void writeStyledProperties (XmlWriter &) const
 
QList< ScoreElement * > linkList () const
 
void linkTo (ScoreElement *)
 
void unlink ()
 
bool isLinked (ScoreElement *)
 return true if se is different and linked to this element More...
 
int lid () const
 
LinkedElementslinks () const
 
void setLinks (LinkedElements *le)
 
bool isNote () const
 
bool isRest () const
 
bool isChord () const
 
bool isBarLine () const
 
bool isArticulation () const
 
bool isFermata () const
 
bool isMarker () const
 
bool isClef () const
 
bool isKeySig () const
 
bool isTimeSig () const
 
bool isMeasure () const
 
bool isTempoText () const
 
bool isBreath () const
 
bool isHBox () const
 
bool isVBox () const
 
bool isTBox () const
 
bool isFBox () const
 
bool isTie () const
 
bool isSlur () const
 
bool isGlissando () const
 
bool isGlissandoSegment () const
 
bool isSystemDivider () const
 
bool isRehearsalMark () const
 
bool isHarmony () const
 
bool isVolta () const
 
bool isJump () const
 
bool isOttava () const
 
bool isLayoutBreak () const
 
bool isSegment () const
 
bool isTremolo () const
 
bool isSystem () const
 
bool isLyrics () const
 
bool isStem () const
 
bool isBeam () const
 
bool isHook () const
 
bool isStemSlash () const
 
bool isSlurSegment () const
 
bool isTieSegment () const
 
bool isSpacer () const
 
bool isStaffLines () const
 
bool isAmbitus () const
 
bool isBracket () const
 
bool isInstrumentChange () const
 
bool isStaffTypeChange () const
 
bool isHairpin () const
 
bool isHairpinSegment () const
 
bool isBend () const
 
bool isTremoloBar () const
 
bool isRepeatMeasure () const
 
bool isTuplet () const
 
bool isNoteDot () const
 
bool isDynamic () const
 
bool isInstrumentName () const
 
bool isAccidental () const
 
bool isTextLine () const
 
bool isTextLineSegment () const
 
bool isPedal () const
 
bool isPedalSegment () const
 
bool isOttavaSegment () const
 
bool isLedgerLine () const
 
bool isIcon () const
 
bool isVoltaSegment () const
 
bool isNoteLine () const
 
bool isTrill () const
 
bool isTrillSegment () const
 
bool isLetRing () const
 
bool isLetRingSegment () const
 
bool isVibrato () const
 
bool isPalmMute () const
 
bool isPalmMuteSegment () const
 
bool isVibratoSegment () const
 
bool isSymbol () const
 
bool isFSymbol () const
 
bool isFingering () const
 
bool isNoteHead () const
 
bool isLyricsLine () const
 
bool isLyricsLineSegment () const
 
bool isFiguredBass () const
 
bool isStaffState () const
 
bool isArpeggio () const
 
bool isImage () const
 
bool isChordLine () const
 
bool isFretDiagram () const
 
bool isPage () const
 
bool isText () const
 
bool isMeasureNumber () const
 
bool isStaffText () const
 
bool isSystemText () const
 
bool isBracketItem () const
 
bool isScore () const
 
bool isStaff () const
 
bool isPart () const
 
bool isBagpipeEmbellishment () const
 
bool isLasso () const
 
bool isSticking () const
 
bool isChordRest () const
 
bool isDurationElement () const
 
bool isSlurTieSegment () const
 
bool isSLineSegment () const
 
bool isBox () const
 
bool isVBoxBase () const
 
bool isMeasureBase () const
 
bool isTextBase () const
 
bool isTextLineBaseSegment () const
 
bool isLineSegment () const
 
bool isSpannerSegment () const
 
bool isBSymbol () const
 
bool isTextLineBase () const
 
bool isSLine () const
 
bool isSpanner () const
 
bool isStaffTextBase () const
 

Static Public Member Functions

static int getDotline (TDuration::DurationType durationType)
 
- Static Public Member Functions inherited from Ms::Element
static ElementType readType (XmlReader &node, QPointF *, Fraction *)
 
static ElementreadMimeData (Score *score, const QByteArray &data, QPointF *, Fraction *)
 
static Ms::Elementcreate (Ms::ElementType type, Score *)
 
static Elementname2Element (const QStringRef &, Score *)
 
- Static Public Member Functions inherited from Ms::ScoreElement
static ElementType name2type (const QStringRef &, bool silent=false)
 
static ElementType name2type (const QString &s)
 
static const char * name (ElementType)
 

Private Member Functions

virtual QRectF drag (EditData &) override
 Return update Rect relative to canvas. More...
 
virtual qreal upPos () const override
 
virtual qreal downPos () const override
 
virtual void setOffset (const QPointF &o) override
 

Private Attributes

SymId _sym
 
int dotline { -1 }
 
qreal _mmWidth
 
bool _gap { false }
 
std::vector< NoteDot * > _dots
 

Additional Inherited Members

- Public Types inherited from Ms::Element
enum  EditBehavior { EditBehavior::SelectOnly, EditBehavior::Edit }
 
- Public Attributes inherited from Ms::Element
bool itemDiscovered { false }
 helper flag for bsp More...
 
- Protected Member Functions inherited from Ms::ScoreElement
virtual int getPropertyFlagsIdx (Pid id) const
 
- Protected Attributes inherited from Ms::ChordRest
std::vector< Lyrics * > _lyrics
 
TabDurationSymbol_tabDur
 
Beam_beam
 
Beam::Mode _beamMode
 
bool _up
 
bool _small
 
CrossMeasure _crossMeasure
 0: no cross-measure modification; 1: 1st note of a mod.; -1: 2nd note More...
 
TDuration _crossMeasureTDur
 the total Duration type of the combined notes More...
 
- Protected Attributes inherited from Ms::Element
int _z
 
QColor _color
 element color attribute More...
 
- Protected Attributes inherited from Ms::ScoreElement
const ElementStyle_elementStyle { &emptyStyle }
 
PropertyFlags_propertyFlagsList { 0 }
 
LinkedElements_links { 0 }
 

Detailed Description

This class implements a rest.

Constructor & Destructor Documentation

◆ Rest() [1/3]

Ms::Rest::Rest ( Score s = 0)

◆ Rest() [2/3]

Ms::Rest::Rest ( Score s,
const TDuration d 
)

◆ Rest() [3/3]

Ms::Rest::Rest ( const Rest r,
bool  link = false 
)

◆ ~Rest()

Ms::Rest::~Rest ( )
inline

Member Function Documentation

◆ accent()

bool Ms::Rest::accent ( )

◆ acceptDrop()

bool Ms::Rest::acceptDrop ( EditData ) const
overridevirtual

Return true if this element accepts a drop at canvas relative pos of given element type and subtype.

Reimplemented by elements that accept drops. Used to change cursor shape while dragging to indicate drop targets.

Reimplemented from Ms::Element.

◆ accessibleInfo()

QString Ms::Rest::accessibleInfo ( ) const
overridevirtual

Reimplemented from Ms::Element.

Reimplemented in Ms::RepeatMeasure.

◆ add()

void Ms::Rest::add ( Element e)
virtual

Reimplemented from Ms::ChordRest.

◆ checkDots()

void Ms::Rest::checkDots ( )

◆ clone()

virtual Rest* Ms::Rest::clone ( ) const
inlineoverridevirtual

Implements Ms::Element.

Reimplemented in Ms::RepeatMeasure.

◆ computeLineOffset()

int Ms::Rest::computeLineOffset ( int  lines)

◆ dot()

NoteDot * Ms::Rest::dot ( int  n)

◆ downLine()

int Ms::Rest::downLine ( ) const
virtual

Implements Ms::ChordRest.

◆ downPos()

qreal Ms::Rest::downPos ( ) const
overrideprivatevirtual

Implements Ms::ChordRest.

◆ drag()

QRectF Ms::Rest::drag ( EditData ed)
overrideprivatevirtual

Return update Rect relative to canvas.

Reimplemented from Ms::Element.

◆ draw()

void Ms::Rest::draw ( QPainter *  painter) const
overridevirtual

Reimplemented from Ms::Element.

Reimplemented in Ms::RepeatMeasure.

◆ drop()

Element * Ms::Rest::drop ( EditData )
overridevirtual

Handle a dropped element at canvas relative pos of given element type and subtype.

Returns dropped element if any. The ownership of element in DropData is transferred to the called element (if not used, element has to be deleted). The returned element will be selected if not in note edit mode.

Reimplemented by elements that accept drops.

Reimplemented from Ms::ChordRest.

◆ getDotline() [1/2]

int Ms::Rest::getDotline ( ) const
inline

◆ getDotline() [2/2]

int Ms::Rest::getDotline ( TDuration::DurationType  durationType)
static

◆ getProperty()

QVariant Ms::Rest::getProperty ( Pid  propertyId) const
overridevirtual

Reimplemented from Ms::ChordRest.

◆ getSymbol()

SymId Ms::Rest::getSymbol ( TDuration::DurationType  type,
int  line,
int  lines,
int *  yoffset 
)

◆ isGap()

bool Ms::Rest::isGap ( ) const
inline

◆ layout()

void Ms::Rest::layout ( )
overridevirtual

Reimplemented from Ms::Element.

Reimplemented in Ms::RepeatMeasure.

◆ layoutDots()

void Ms::Rest::layoutDots ( )

◆ layoutMMRest()

void Ms::Rest::layoutMMRest ( qreal  val)

◆ linkedClone()

virtual Element* Ms::Rest::linkedClone ( )
inlinevirtual

Reimplemented from Ms::Element.

Reimplemented in Ms::RepeatMeasure.

◆ localSpatiumChanged()

void Ms::Rest::localSpatiumChanged ( qreal  oldValue,
qreal  newValue 
)
overridevirtual

Reimplemented from Ms::ChordRest.

◆ mag()

qreal Ms::Rest::mag ( ) const
overridevirtual

Reimplemented from Ms::Element.

◆ measure()

virtual Measure* Ms::Rest::measure ( ) const
inlineoverridevirtual

Implements Ms::ChordRest.

◆ mmWidth()

qreal Ms::Rest::mmWidth ( ) const
inline

◆ nextElement()

Element * Ms::Rest::nextElement ( )
overridevirtual

Reimplemented from Ms::ChordRest.

◆ operator=()

Rest& Ms::Rest::operator= ( const Rest )
delete

◆ prevElement()

Element * Ms::Rest::prevElement ( )
overridevirtual

Reimplemented from Ms::ChordRest.

◆ propertyDefault()

QVariant Ms::Rest::propertyDefault ( Pid  propertyId) const
overridevirtual

Reimplemented from Ms::ChordRest.

◆ read()

void Ms::Rest::read ( XmlReader e)
overridevirtual

Reimplemented from Ms::Element.

◆ remove()

void Ms::Rest::remove ( Element e)
virtual

Reimplemented from Ms::ChordRest.

◆ reset()

void Ms::Rest::reset ( )
overridevirtual

Reimplemented from Ms::Element.

◆ scanElements()

void Ms::Rest::scanElements ( void *  data,
void(*)(void *, Element *)  func,
bool  all = true 
)
overridevirtual

Reimplemented from Ms::ChordRest.

◆ screenReaderInfo()

QString Ms::Rest::screenReaderInfo ( ) const
overridevirtual

Reimplemented from Ms::Element.

◆ setAccent()

void Ms::Rest::setAccent ( bool  flag)

◆ setGap()

virtual void Ms::Rest::setGap ( bool  v)
inlinevirtual

◆ setOffset()

void Ms::Rest::setOffset ( const QPointF &  o)
overrideprivatevirtual

Reimplemented from Ms::Element.

◆ setProperty()

bool Ms::Rest::setProperty ( Pid  propertyId,
const QVariant &  v 
)
overridevirtual

Reimplemented from Ms::ChordRest.

◆ setTrack()

void Ms::Rest::setTrack ( int  val)
virtual

Reimplemented from Ms::ChordRest.

◆ shape()

Shape Ms::Rest::shape ( ) const
overridevirtual

Reimplemented from Ms::ChordRest.

◆ stemPos()

QPointF Ms::Rest::stemPos ( ) const
virtual

Implements Ms::ChordRest.

◆ stemPosBeam()

QPointF Ms::Rest::stemPosBeam ( ) const
virtual

Implements Ms::ChordRest.

◆ stemPosX()

qreal Ms::Rest::stemPosX ( ) const
virtual

Implements Ms::ChordRest.

◆ sym()

SymId Ms::Rest::sym ( ) const
inline

◆ type()

virtual ElementType Ms::Rest::type ( ) const
inlineoverridevirtual

Implements Ms::ChordRest.

Reimplemented in Ms::RepeatMeasure.

◆ undoChangeDotsVisible()

void Ms::Rest::undoChangeDotsVisible ( bool  v)

◆ upLine()

int Ms::Rest::upLine ( ) const
virtual

Implements Ms::ChordRest.

◆ upPos()

qreal Ms::Rest::upPos ( ) const
overrideprivatevirtual

Implements Ms::ChordRest.

◆ write()

void Ms::Rest::write ( XmlWriter xml) const
overridevirtual

Reimplemented from Ms::Element.

Member Data Documentation

◆ _dots

std::vector<NoteDot*> Ms::Rest::_dots
private

◆ _gap

bool Ms::Rest::_gap { false }
private

◆ _mmWidth

qreal Ms::Rest::_mmWidth
private

◆ _sym

SymId Ms::Rest::_sym
private

◆ dotline

int Ms::Rest::dotline { -1 }
private

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