CurveStyle.hpp
1 #pragma once
2 #include <QPen>
3 
4 #include <score_plugin_curve_export.h>
5 
6 namespace score
7 {
8 class Skin;
9 }
10 namespace Curve
11 {
12 struct 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  void init(const score::Skin& s);
33  void update();
34 };
35 
36 struct SCORE_PLUGIN_CURVE_EXPORT StyleInterface
37 {
38  virtual ~StyleInterface();
39  virtual const Curve::Style& style() const = 0;
40 };
41 }
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:37