MuseScore
3.4
Music composition and notation
|
Helper class for writing Spanners. More...
Public Member Functions | |
SpannerWriter (XmlWriter &xml, const Element *current, const Spanner *spanner, int track, Fraction frac, bool start) | |
Public Member Functions inherited from Ms::ConnectorInfoWriter | |
ConnectorInfoWriter (XmlWriter &xml, const Element *current, const Element *connector, int track=-1, Fraction={ -1, 1}) | |
ConnectorInfoWriter * | prev () const |
ConnectorInfoWriter * | next () const |
const Element * | connector () const |
void | write () |
Public Member Functions inherited from Ms::ConnectorInfo | |
ConnectorInfo (const Element *current, int track=-1, Fraction={ -1, 1}) | |
ConnectorInfo (const Score *score, const Location ¤tLocation) | |
ConnectorInfo * | prev () const |
ConnectorInfo * | next () const |
ConnectorInfo * | start () |
ConnectorInfo * | end () |
ElementType | type () const |
const Location & | location () const |
bool | connect (ConnectorInfo *other) |
bool | finished () const |
int | connectionDistance (const ConnectorInfo &c2) const |
void | forceConnect (ConnectorInfo *c2) |
bool | hasPrevious () const |
bool | hasNext () const |
bool | isStart () const |
bool | isMiddle () const |
bool | isEnd () const |
Static Public Member Functions | |
static void | fillSpannerPosition (Location &l, const MeasureBase *endpoint, const Fraction &tick, bool clipboardmode) |
Protected Member Functions | |
const char * | tagName () const override |
Protected Member Functions inherited from Ms::ConnectorInfo | |
void | updateLocation (const Element *e, Location &i, bool clipboardmode) |
void | updateCurrentInfo (bool clipboardmode) |
bool | currentUpdated () const |
void | setCurrentUpdated (bool v) |
ConnectorInfo * | findFirst () |
const ConnectorInfo * | findFirst () const |
ConnectorInfo * | findLast () |
const ConnectorInfo * | findLast () const |
Additional Inherited Members | |
Protected Attributes inherited from Ms::ConnectorInfoWriter | |
const Element * | _connector |
Protected Attributes inherited from Ms::ConnectorInfo | |
ElementType | _type { ElementType::INVALID } |
Location | _currentLoc |
Location | _prevLoc { Location::absolute() } |
Location | _nextLoc { Location::absolute() } |
ConnectorInfo * | _prev { 0 } |
ConnectorInfo * | _next { 0 } |
Helper class for writing Spanners.
Ms::SpannerWriter::SpannerWriter | ( | XmlWriter & | xml, |
const Element * | current, | ||
const Spanner * | spanner, | ||
int | track, | ||
Fraction | frac, | ||
bool | start | ||
) |
|
static |
|
inlineoverrideprotectedvirtual |
Implements Ms::ConnectorInfoWriter.