48 : _staff(staff), _voice(voice), _measure(measure), _frac(frac), _graceIndex(graceIndex), _note(note), _rel(rel) {}
int _graceIndex
Definition: location.h:37
int track() const
Definition: location.cpp:30
int graceIndex() const
Definition: location.h:72
int note() const
Definition: location.h:74
constexpr Location(int staff, int voice, int measure, Fraction frac, int graceIndex, int note, bool rel)
Definition: location.h:47
Pid
Definition: property.h:62
void setFrac(Fraction frac)
Definition: location.h:71
void setTrack(int track)
Definition: location.cpp:41
bool operator!=(const Location &other) const
Definition: location.h:84
Base class of score layout elements.
Definition: element.h:158
int _measure
Definition: location.h:35
void setGraceIndex(int index)
Definition: location.h:73
int measure() const
Definition: location.h:68
void read(XmlReader &e)
Definition: location.cpp:69
void setMeasure(int measure)
Definition: location.h:69
void toRelative(const Location &ref)
Definition: location.cpp:111
void fillPositionForElement(const Element *e, bool absfrac=true)
Definition: location.cpp:131
int _voice
Definition: location.h:34
int _staff
Definition: location.h:33
void setNote(int note)
Definition: location.h:75
bool isRelative() const
Definition: location.h:60
void setVoice(int voice)
Definition: location.h:65
static constexpr Location absolute()
Definition: location.h:50
Fraction frac() const
Definition: location.h:70
bool _rel
Definition: location.h:39
Definition: aeolus.cpp:26
int staff() const
Definition: location.h:62
bool operator==(const Location &other) const
Definition: location.cpp:282
void write(XmlWriter &xml) const
Definition: location.cpp:52
void setStaff(int staff)
Definition: location.h:63
Definition: xmlwriter.h:26
bool isAbsolute() const
Definition: location.h:59
int voice() const
Definition: location.h:64
int _note
Definition: location.h:38
Definition: location.h:32
Definition: xmlreader.h:28
void toAbsolute(const Location &ref)
Definition: location.cpp:95
Definition: fraction.h:46
static QVariant getLocationProperty(Pid pid, const Element *start, const Element *end)
Definition: location.cpp:258
void fillForElement(const Element *e, bool absfrac=true)
Definition: location.cpp:153
static constexpr Location relative()
Definition: location.h:51
static Location forElement(const Element *e, bool absfrac=true)
Definition: location.cpp:170
static Location positionForElement(const Element *e, bool absfrac=true)
Definition: location.cpp:181
Fraction _frac
Definition: location.h:36