MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Ms::ConnectorInfoWriter Class Referenceabstract

Helper class for writing connecting elements. More...

#include <connector.h>

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

Public Member Functions

 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
 

Protected Member Functions

virtual const char * tagName () const =0
 
- 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
 

Protected Attributes

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 }
 

Private Attributes

XmlWriter_xml
 

Detailed Description

Helper class for writing connecting elements.

Subclasses should fill _prevInfo and _nextInfo with the proper information on the connector's endpoints.

Constructor & Destructor Documentation

◆ ConnectorInfoWriter()

Ms::ConnectorInfoWriter::ConnectorInfoWriter ( XmlWriter xml,
const Element current,
const Element connector,
int  track = -1,
Fraction  frac = { -1, 1} 
)

Member Function Documentation

◆ connector()

const Element* Ms::ConnectorInfoWriter::connector ( ) const
inline

◆ next()

ConnectorInfoWriter* Ms::ConnectorInfoWriter::next ( ) const
inline

◆ prev()

ConnectorInfoWriter* Ms::ConnectorInfoWriter::prev ( ) const
inline

◆ tagName()

virtual const char* Ms::ConnectorInfoWriter::tagName ( ) const
protectedpure virtual

Implemented in Ms::SpannerWriter.

◆ write()

void Ms::ConnectorInfoWriter::write ( )

Member Data Documentation

◆ _connector

const Element* Ms::ConnectorInfoWriter::_connector
protected

◆ _xml

XmlWriter* Ms::ConnectorInfoWriter::_xml
private

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