File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ GUIDO Library
3
+ Copyright (C) 2025 D. Fober
4
+
5
+ This Source Code Form is subject to the terms of the Mozilla Public
6
+ License, v. 2.0. If a copy of the MPL was not distributed with this
7
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
+ */
9
+
10
+ #include < iostream>
11
+ using namespace std ;
12
+
13
+ #include " ARColor.h"
14
+ #include " GRColor.h"
15
+
16
+ // ----------------------------------------------------------------------------------
17
+ GRColor::GRColor ( const ARColor* ar) : GRARNotationElement (ar) {
18
+ fColor = ar->getColor ();
19
+ }
20
+
21
+ // ----------------------------------------------------------------------------------
22
+ void GRColor::OnDraw ( VGDevice & hdc ) const
23
+ {
24
+ hdc.SelectPenColor (fColor );
25
+ hdc.SelectFillColor (fColor );
26
+ hdc.SetFontColor (fColor );
27
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ GUIDO Library
3
+ Copyright (C) 2025 D. Fober
4
+
5
+ This Source Code Form is subject to the terms of the Mozilla Public
6
+ License, v. 2.0. If a copy of the MPL was not distributed with this
7
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include " GRARNotationElement.h"
13
+ #include " VGDevice.h"
14
+
15
+ class ARColor ;
16
+
17
+ /* * \brief Voice color management
18
+ */
19
+
20
+ class GRColor : public GRARNotationElement
21
+ {
22
+ VGColor fColor ;
23
+
24
+ public:
25
+ GRColor (const ARColor* color);
26
+ virtual ~GRColor () {}
27
+
28
+ virtual void OnDraw ( VGDevice & hdc ) const ;
29
+ };
30
+
31
+
You can’t perform that action at this time.
0 commit comments