MuseScore Plugins 3.3
Plugins API for MuseScore
Loading...
Searching...
No Matches
tie.h
1//=============================================================================
2// MuseScore
3// Music Composition & Notation
4//
5// Copyright (C) 2019 Werner Schweer and others
6//
7// This program is free software; you can redistribute it and/or modify
8// it under the terms of the GNU General Public License version 2
9// as published by the Free Software Foundation and appearing in
10// the file LICENCE.GPL
11//=============================================================================
12
13#ifndef __PLUGIN_API_TIE_H__
14#define __PLUGIN_API_TIE_H__
15
16#include "elements.h"
17#include "libmscore/tie.h"
18
19namespace Ms {
20namespace PluginAPI {
21
22//---------------------------------------------------------
23// Tie
26//---------------------------------------------------------
27
28class Tie : public Element {
29 Q_OBJECT
35 Q_PROPERTY(Ms::PluginAPI::Note* endNote READ endNote)
36
38
39 public:
40 Tie(Ms::Tie* tie, Ownership own = Ownership::PLUGIN) : Element(tie, own) {}
41
42 Note* startNote();
43 Note* endNote();
44
46};
47
48extern Tie* tieWrap(Ms::Tie* tie);
49
50} // namespace PluginAPI
51} // namespace Ms
52#endif
Definition elements.h:85
Definition elements.h:429
Main class of the plugins framework. Named as MuseScore in QML.
Definition qmlpluginapi.h:62
Provides access to internal Ms::Tie objects.
Definition tie.h:28
Ms::PluginAPI::Note * startNote
The starting note of the tie.
Definition tie.h:32
Ms::PluginAPI::Note * endNote
The ending note of the tie.
Definition tie.h:35
Definition cursor.cpp:30