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

#include <sym.h>

Public Member Functions

 Sym ()
 
bool isValid () const
 
void setSymList (const std::vector< SymId > &sl)
 
const std::vector< SymId > & symList () const
 
FT_UInt index () const
 
void setIndex (FT_UInt i)
 
int code () const
 
void setCode (int val)
 
QRectF bbox () const
 
void setBbox (QRectF val)
 
qreal advance () const
 
void setAdvance (qreal val)
 
QPointF stemDownNW () const
 
void setStemDownNW (const QPointF &r)
 
QPointF stemUpSE () const
 
void setStemUpSE (const QPointF &r)
 
QPointF cutOutNE () const
 
void setCutOutNE (const QPointF &r)
 
QPointF cutOutNW () const
 
void setCutOutNW (const QPointF &r)
 
QPointF cutOutSE () const
 
void setCutOutSE (const QPointF &r)
 
QPointF cutOutSW () const
 
void setCutOutSW (const QPointF &r)
 

Static Public Member Functions

static SymId name2id (const QString &s)
 
static SymId oldName2id (const QString s)
 
static const char * id2name (SymId id)
 
static QString id2userName (SymId id)
 
static SymId userName2id (const QString &s)
 

Static Public Attributes

static const std::array< const char *, int(SymId::lastSym)+1 > symNames
 
static const std::array< const char *, int(SymId::lastSym)+1 > symUserNames
 
static const QVector< SymIdcommonScoreSymbols
 
static QHash< QString, SymIdlnhash
 
static QHash< QString, SymIdlonhash
 

Protected Attributes

int _code = -1
 
FT_UInt _index
 
QRectF _bbox
 
qreal _advance
 
QPointF _stemDownNW
 
QPointF _stemUpSE
 
QPointF _cutOutNE
 
QPointF _cutOutNW
 
QPointF _cutOutSE
 
QPointF _cutOutSW
 
std::vector< SymId_ids
 

Friends

class ScoreFont
 

Constructor & Destructor Documentation

◆ Sym()

Ms::Sym::Sym ( )
inline

Member Function Documentation

◆ advance()

qreal Ms::Sym::advance ( ) const
inline

◆ bbox()

QRectF Ms::Sym::bbox ( ) const
inline

◆ code()

int Ms::Sym::code ( ) const
inline

◆ cutOutNE()

QPointF Ms::Sym::cutOutNE ( ) const
inline

◆ cutOutNW()

QPointF Ms::Sym::cutOutNW ( ) const
inline

◆ cutOutSE()

QPointF Ms::Sym::cutOutSE ( ) const
inline

◆ cutOutSW()

QPointF Ms::Sym::cutOutSW ( ) const
inline

◆ id2name()

const char * Ms::Sym::id2name ( SymId  id)
static

◆ id2userName()

static QString Ms::Sym::id2userName ( SymId  id)
inlinestatic

◆ index()

FT_UInt Ms::Sym::index ( ) const
inline

◆ isValid()

bool Ms::Sym::isValid ( ) const
inline

◆ name2id()

static SymId Ms::Sym::name2id ( const QString &  s)
inlinestatic

◆ oldName2id()

static SymId Ms::Sym::oldName2id ( const QString  s)
inlinestatic

◆ setAdvance()

void Ms::Sym::setAdvance ( qreal  val)
inline

◆ setBbox()

void Ms::Sym::setBbox ( QRectF  val)
inline

◆ setCode()

void Ms::Sym::setCode ( int  val)
inline

◆ setCutOutNE()

void Ms::Sym::setCutOutNE ( const QPointF &  r)
inline

◆ setCutOutNW()

void Ms::Sym::setCutOutNW ( const QPointF &  r)
inline

◆ setCutOutSE()

void Ms::Sym::setCutOutSE ( const QPointF &  r)
inline

◆ setCutOutSW()

void Ms::Sym::setCutOutSW ( const QPointF &  r)
inline

◆ setIndex()

void Ms::Sym::setIndex ( FT_UInt  i)
inline

◆ setStemDownNW()

void Ms::Sym::setStemDownNW ( const QPointF &  r)
inline

◆ setStemUpSE()

void Ms::Sym::setStemUpSE ( const QPointF &  r)
inline

◆ setSymList()

void Ms::Sym::setSymList ( const std::vector< SymId > &  sl)
inline

◆ stemDownNW()

QPointF Ms::Sym::stemDownNW ( ) const
inline

◆ stemUpSE()

QPointF Ms::Sym::stemUpSE ( ) const
inline

◆ symList()

const std::vector<SymId>& Ms::Sym::symList ( ) const
inline

◆ userName2id()

SymId Ms::Sym::userName2id ( const QString &  s)
static

Friends And Related Function Documentation

◆ ScoreFont

friend class ScoreFont
friend

Member Data Documentation

◆ _advance

qreal Ms::Sym::_advance
protected

◆ _bbox

QRectF Ms::Sym::_bbox
protected

◆ _code

int Ms::Sym::_code = -1
protected

◆ _cutOutNE

QPointF Ms::Sym::_cutOutNE
protected

◆ _cutOutNW

QPointF Ms::Sym::_cutOutNW
protected

◆ _cutOutSE

QPointF Ms::Sym::_cutOutSE
protected

◆ _cutOutSW

QPointF Ms::Sym::_cutOutSW
protected

◆ _ids

std::vector<SymId> Ms::Sym::_ids
protected

◆ _index

FT_UInt Ms::Sym::_index
protected

◆ _stemDownNW

QPointF Ms::Sym::_stemDownNW
protected

◆ _stemUpSE

QPointF Ms::Sym::_stemUpSE
protected

◆ commonScoreSymbols

const QVector< SymId > Ms::Sym::commonScoreSymbols
static

◆ lnhash

QHash< QString, SymId > Ms::Sym::lnhash
static

◆ lonhash

QHash< QString, SymId > Ms::Sym::lonhash
static

◆ symNames

const std::array< const char *, int(SymId::lastSym)+1 > Ms::Sym::symNames
static

◆ symUserNames

const std::array< const char *, int(SymId::lastSym)+1 > Ms::Sym::symUserNames
static

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