20 #ifndef __PLUGIN_API_STYLE_H__ 21 #define __PLUGIN_API_STYLE_H__ 23 #include "libmscore/style.h" 53 static Sid keyToSid(
const QString& key);
57 MStyle(Ms::MStyle* style, Ms::Score* score)
58 : QObject(), _style(style), _score(score) {}
61 Q_INVOKABLE QVariant
value(
const QString& key)
const;
62 Q_INVOKABLE
void setValue(
const QString& key, QVariant value);
65 extern MStyle* wrap(Ms::MStyle*, Ms::Score*);
Sid
Enumerates the list of score style settings.
Definition: style.h:50
Definition: cursor.cpp:30
Provides an access to score style settings.
Definition: style.h:47
Q_INVOKABLE void setValue(const QString &key, QVariant value)
Sets the value of style setting named key to value.
Definition: style.cpp:86
Q_INVOKABLE QVariant value(const QString &key) const
Returns a value of style setting named key.
Definition: style.cpp:66