OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkStrokeRec_DEFINED | 8 #ifndef SkStrokeRec_DEFINED |
9 #define SkStrokeRec_DEFINED | 9 #define SkStrokeRec_DEFINED |
10 | 10 |
11 #include "SkPaint.h" | 11 #include "SkPaint.h" |
12 | 12 |
13 class SkPath; | 13 class SkPath; |
14 | 14 |
15 class SkStrokeRec { | 15 class SkStrokeRec { |
16 public: | 16 public: |
17 enum InitStyle { | 17 enum InitStyle { |
18 kHairline_InitStyle, | 18 kHairline_InitStyle, |
19 kFill_InitStyle | 19 kFill_InitStyle |
20 }; | 20 }; |
21 SkStrokeRec(InitStyle style); | 21 SkStrokeRec(InitStyle style); |
22 | |
23 SkStrokeRec(const SkStrokeRec&); | |
24 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); | 22 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); |
25 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1); | 23 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1); |
26 | 24 |
27 enum Style { | 25 enum Style { |
28 kHairline_Style, | 26 kHairline_Style, |
29 kFill_Style, | 27 kFill_Style, |
30 kStroke_Style, | 28 kStroke_Style, |
31 kStrokeAndFill_Style | 29 kStrokeAndFill_Style |
32 }; | 30 }; |
33 enum { | 31 enum { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 114 |
117 SkScalar fResScale; | 115 SkScalar fResScale; |
118 SkScalar fWidth; | 116 SkScalar fWidth; |
119 SkScalar fMiterLimit; | 117 SkScalar fMiterLimit; |
120 SkPaint::Cap fCap; | 118 SkPaint::Cap fCap; |
121 SkPaint::Join fJoin; | 119 SkPaint::Join fJoin; |
122 bool fStrokeAndFill; | 120 bool fStrokeAndFill; |
123 }; | 121 }; |
124 | 122 |
125 #endif | 123 #endif |
OLD | NEW |