MuseScore
3.4
Music composition and notation
|
Base class for most of object wrappers exposed to QML. More...
#include <scoreelement.h>
Public Member Functions | |
ScoreElement (Ms::ScoreElement *_e=nullptr, Ownership own=Ownership::PLUGIN) | |
ScoreElement (const ScoreElement &)=delete | |
ScoreElement & | operator= (const ScoreElement &)=delete |
virtual | ~ScoreElement () |
Ownership | ownership () const |
void | setOwnership (Ownership o) |
Ms::ScoreElement * | element () |
const Ms::ScoreElement * | element () const |
QString | name () const |
int | type () const |
QVariant | get (Ms::Pid pid) const |
void | set (Ms::Pid pid, QVariant val) |
Q_INVOKABLE QString | userName () const |
Human-readable element type name. More... | |
Q_INVOKABLE bool | is (Ms::PluginAPI::ScoreElement *other) |
Checks whether two variables represent the same object. More... | |
Protected Attributes | |
Ms::ScoreElement *const | e |
Properties | |
int | type |
Type of this element. More... | |
QString | name |
Name of this element's type, not localized. More... | |
Private Attributes | |
Ownership | _ownership |
Related Functions | |
(Note that these are not member functions.) | |
template<class Wrapper , class T > | |
Wrapper * | wrap (T *t, Ownership own=Ownership::SCORE) |
Base class for most of object wrappers exposed to QML.
|
inline |
|
delete |
|
virtual |
|
inline |
|
inline |
QVariant Ms::PluginAPI::ScoreElement::get | ( | Ms::Pid | pid | ) | const |
|
inline |
Checks whether two variables represent the same object.
QString Ms::PluginAPI::ScoreElement::name | ( | ) | const |
|
delete |
|
inline |
void Ms::PluginAPI::ScoreElement::set | ( | Ms::Pid | pid, |
QVariant | val | ||
) |
|
inline |
int Ms::PluginAPI::ScoreElement::type | ( | ) | const |
QString Ms::PluginAPI::ScoreElement::userName | ( | ) | const |
Human-readable element type name.
|
related |
|
private |
|
protected |
|
read |
Name of this element's type, not localized.
Use ScoreElement::userName() to obtain a localized element name suitable for usage in a user interface.
|
read |
Type of this element.
See PluginAPI::PluginAPI::Element for the list of possible values.