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