MuseScore  3.4
Music composition and notation
tie.h
Go to the documentation of this file.
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 
19 namespace Ms {
20 namespace PluginAPI {
21 
22 //---------------------------------------------------------
23 // Tie
26 //---------------------------------------------------------
27 
28 class 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 
48 extern Tie* tieWrap(Ms::Tie* tie);
49 
50 } // namespace PluginAPI
51 } // namespace Ms
52 #endif
Definition: elements.h:75
Tie * tieWrap(Ms::Tie *tie)
Definition: tie.cpp:34
Provides access to internal Ms::Tie objects.
Definition: tie.h:28
Ownership
Definition: scoreelement.h:32
Definition: aeolus.cpp:26
a Tie has a Note as startElement/endElement
Definition: tie.h:60
Main class of the plugins framework. Named as MuseScore in QML.
Definition: qmlpluginapi.h:54
Definition: elements.h:395