MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Ms::SpannerWriter Class Reference

Helper class for writing Spanners. More...

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

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})
 
ConnectorInfoWriterprev () const
 
ConnectorInfoWriternext () const
 
const Elementconnector () 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 &currentLocation)
 
ConnectorInfoprev () const
 
ConnectorInfonext () const
 
ConnectorInfostart ()
 
ConnectorInfoend ()
 
ElementType type () const
 
const Locationlocation () 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)
 
ConnectorInfofindFirst ()
 
const ConnectorInfofindFirst () const
 
ConnectorInfofindLast ()
 
const ConnectorInfofindLast () 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 }
 

Detailed Description

Helper class for writing Spanners.

Constructor & Destructor Documentation

◆ SpannerWriter()

Ms::SpannerWriter::SpannerWriter ( XmlWriter xml,
const Element current,
const Spanner spanner,
int  track,
Fraction  frac,
bool  start 
)

Member Function Documentation

◆ fillSpannerPosition()

void Ms::SpannerWriter::fillSpannerPosition ( Location l,
const MeasureBase endpoint,
const Fraction tick,
bool  clipboardmode 
)
static

◆ tagName()

const char* Ms::SpannerWriter::tagName ( ) const
inlineoverrideprotectedvirtual

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