Loading...
Searching...
No Matches
CurveStyle.hpp
1#pragma once
2#include <QObject>
3#include <QPen>
4
5#include <score_plugin_curve_export.h>
6
7namespace score
8{
9class Skin;
10}
11namespace Curve
12{
13struct SCORE_PLUGIN_CURVE_EXPORT Style
14{
15 const QBrush& Point; //{128, 215, 62}; // Tender3
16 const QBrush& PointSelected; //{233, 208, 89}; // Emphasis2
17
18 const QBrush& Segment; //{199, 31, 44}; // Tender1
19 const QBrush& SegmentSelected; //{216, 178, 24}; // Tender2
20 const QBrush& SegmentDisabled; //{127, 127, 127}; // Gray
21
22 QPen PenSegment{};
23 QPen PenSegmentSelected{};
24 QPen PenSegmentTween{};
25 QPen PenSegmentTweenSelected{};
26 QPen PenSegmentDisabled{};
27
28 QPen PenPoint{};
29 QPen PenPointSelected{};
30 QBrush BrushPoint{};
31 QBrush BrushPointSelected{};
32
33 QPen PenDataset{};
34 QPen PenDatasetDisabled{};
35 QObject lifetime{};
36
37 void init(const score::Skin& s);
38 void update();
39};
40
41struct SCORE_PLUGIN_CURVE_EXPORT StyleInterface
42{
43 virtual ~StyleInterface();
44 virtual const Curve::Style& style() const = 0;
45};
46}
Definition Skin.hpp:94
Utilities and base classes for 1D curves.
Definition FocusDispatcher.hpp:12
Base toolkit upon which the software is built.
Definition Application.cpp:97
Definition CurveStyle.hpp:14
Definition CurveStyle.hpp:42