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

#include <spatium.h>

Public Member Functions

constexpr Spatium ()
 
 Spatium (qreal v)
 
constexpr qreal val () const
 
bool operator> (const Spatium &a) const
 
bool operator< (const Spatium &a) const
 
bool operator== (const Spatium &a) const
 
bool operator!= (const Spatium &a) const
 
bool isZero () const
 
Spatiumoperator+= (const Spatium &a)
 
Spatiumoperator-= (const Spatium &a)
 
Spatiumoperator/= (qreal d)
 
qreal operator/ (const Spatium &b)
 
Spatiumoperator*= (int d)
 
Spatiumoperator*= (qreal d)
 
Spatium operator- () const
 
 operator QVariant () const
 

Static Public Member Functions

static double toDouble (const Spatium &v)
 

Private Attributes

qreal _val
 

Constructor & Destructor Documentation

◆ Spatium() [1/2]

constexpr Ms::Spatium::Spatium ( )
inline

◆ Spatium() [2/2]

Ms::Spatium::Spatium ( qreal  v)
inlineexplicit

Member Function Documentation

◆ isZero()

bool Ms::Spatium::isZero ( ) const
inline

◆ operator QVariant()

Ms::Spatium::operator QVariant ( ) const
inline

◆ operator!=()

bool Ms::Spatium::operator!= ( const Spatium a) const
inline

◆ operator*=() [1/2]

Spatium& Ms::Spatium::operator*= ( int  d)
inline

◆ operator*=() [2/2]

Spatium& Ms::Spatium::operator*= ( qreal  d)
inline

◆ operator+=()

Spatium& Ms::Spatium::operator+= ( const Spatium a)
inline

◆ operator-()

Spatium Ms::Spatium::operator- ( ) const
inline

◆ operator-=()

Spatium& Ms::Spatium::operator-= ( const Spatium a)
inline

◆ operator/()

qreal Ms::Spatium::operator/ ( const Spatium b)
inline

◆ operator/=()

Spatium& Ms::Spatium::operator/= ( qreal  d)
inline

◆ operator<()

bool Ms::Spatium::operator< ( const Spatium a) const
inline

◆ operator==()

bool Ms::Spatium::operator== ( const Spatium a) const
inline

◆ operator>()

bool Ms::Spatium::operator> ( const Spatium a) const
inline

◆ toDouble()

static double Ms::Spatium::toDouble ( const Spatium v)
inlinestatic

◆ val()

constexpr qreal Ms::Spatium::val ( ) const
inline

Member Data Documentation

◆ _val

qreal Ms::Spatium::_val
private

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