13 #ifndef __PLUGIN_API_PLAYEVENT_H__ 14 #define __PLUGIN_API_PLAYEVENT_H__ 60 : QObject(), ne(_ne), parentNote(_parent) {}
88 QQmlEngine::setObjectOwnership(w, QQmlEngine::JavaScriptOwnership);
106 : QQmlListProperty<
PlayEvent>(obj, &container, &append, &count, &at, &clear) {};
108 static int count(QQmlListProperty<PlayEvent>* l) {
return int(static_cast<NoteEventList*>(l->data)->size()); }
109 static PlayEvent*
at(QQmlListProperty<PlayEvent>* l,
int i) {
return playEventWrap(&(*(static_cast<NoteEventList*>(l->data)))[i], reinterpret_cast<Note*>(l->object)); }
110 static void clear(QQmlListProperty<PlayEvent>* l);
111 static void append(QQmlListProperty<PlayEvent>* l,
PlayEvent *v);
int ontime() const
Definition: playevent.h:69
Definition: noteevent.h:25
static int count(QQmlListProperty< PlayEvent > *l)
Definition: playevent.h:108
int ontime() const
Definition: noteevent.h:40
Note * parentNote
Definition: playevent.h:55
void setParentNote(Note *parent)
Definition: playevent.h:65
Definition: playevent.h:103
QmlPlayEventsListAccess(QObject *obj, NoteEventList &container)
Definition: playevent.h:105
PlayEvent * playEventWrap(Ms::NoteEvent *t, Note *parent)
Definition: playevent.h:84
int pitch() const
Definition: playevent.h:68
Definition: noteevent.h:53
void setPitch(int v)
Definition: playevent.cpp:26
Definition: playevent.h:32
Note * note()
Definition: playevent.h:66
virtual ~PlayEvent()
Definition: playevent.h:62
Definition: aeolus.cpp:26
PlayEvent(Ms::NoteEvent *_ne=new Ms::NoteEvent(), Note *_parent=nullptr)
Definition: playevent.h:59
int len() const
Definition: playevent.h:71
void setOntime(int v)
Definition: playevent.cpp:70
Ms::NoteEvent * ne
Definition: playevent.h:54
QmlPlayEventsListAccess wrapPlayEventsContainerProperty(QObject *obj, NoteEventList &c)
Definition: playevent.h:115
Graphic representation of a note.
Definition: note.h:212
void setLen(int v)
Definition: playevent.cpp:102
int pitch() const
Definition: noteevent.h:39
static PlayEvent * at(QQmlListProperty< PlayEvent > *l, int i)
Definition: playevent.h:109
const Ms::NoteEvent & getNoteEvent()
Definition: playevent.h:64
int len() const
Definition: noteevent.h:42
int offtime() const
Definition: noteevent.h:41
Definition: elements.h:395
int offtime() const
Definition: playevent.h:70