32 constexpr qreal
val()
const {
return _val; }
38 bool isZero()
const {
return _val == 0.0; }
64 operator QVariant()
const {
return QVariant::fromValue(*
this); }
Spatium & operator-=(const Spatium &a)
Definition: spatium.h:44
bool isZero() const
Definition: spatium.h:38
constexpr Spatium()
Definition: spatium.h:29
qreal _val
Definition: spatium.h:26
static double toDouble(const Spatium &v)
Definition: spatium.h:66
Fraction operator*(const Fraction &f, int v)
Definition: fraction.h:252
Spatium & operator*=(qreal d)
Definition: spatium.h:59
Spatium(qreal v)
Definition: spatium.h:30
constexpr qreal val() const
Definition: spatium.h:32
bool operator>(const Spatium &a) const
Definition: spatium.h:34
Definition: aeolus.cpp:26
Pos operator+(const Pos &a, int b)
Definition: pos.cpp:184
Spatium & operator+=(const Spatium &a)
Definition: spatium.h:40
qreal operator/(const Spatium &b)
Definition: spatium.h:52
Spatium & operator*=(int d)
Definition: spatium.h:55
Spatium & operator/=(qreal d)
Definition: spatium.h:48
Spatium operator-() const
Definition: spatium.h:63
bool operator!=(const Spatium &a) const
Definition: spatium.h:37
bool operator==(const Spatium &a) const
Definition: spatium.h:36
bool operator<(const Spatium &a) const
Definition: spatium.h:35