Lines Matching defs:SkPaint
28 /** \class SkPaint
29 SkPaint controls options applied when drawing. SkPaint collects all
34 SkPaint collects effects and filters that describe single-pass and multiple-pass
36 SkPaint does not directly implement dashing or blur, but contains the objects that do so.
38 class SK_API SkPaint {
41 /** Constructs SkPaint with default values.
43 @return default initialized SkPaint
47 SkPaint();
49 /** Constructs SkPaint with default values and the given color.
58 @return SkPaint with the given color
60 explicit SkPaint(const SkColor4f& color, SkColorSpace* colorSpace = nullptr);
62 /** Makes a shallow copy of SkPaint. SkPathEffect, SkShader,
69 This prevents objects with SkRefCnt from being modified once SkPaint refers to them.
76 SkPaint(const SkPaint& paint);
88 SkPaint(SkPaint&& paint);
90 /** Decreases SkPaint SkRefCnt of owned objects: SkPathEffect, SkShader,
94 ~SkPaint();
96 /** Makes a shallow copy of SkPaint. SkPathEffect, SkShader,
108 SkPaint& operator=(const SkPaint& paint);
122 SkPaint& operator=(SkPaint&& paint);
128 @param a SkPaint to compare
129 @param b SkPaint to compare
130 @return true if SkPaint pair are equivalent
132 SK_API friend bool operator==(const SkPaint& a, const SkPaint& b);
138 @param a SkPaint to compare
139 @param b SkPaint to compare
140 @return true if SkPaint pair are not equivalent
142 friend bool operator!=(const SkPaint& a, const SkPaint& b) {
146 /** Sets all SkPaint contents to their initial values. This is equivalent to replacing
147 SkPaint with the result of SkPaint().
178 /** \enum SkPaint::Style
192 /** May be used to verify that SkPaint::Style is a legal value.
201 Has no effect if style is not a legal SkPaint::Style value.
287 /** Returns the thickness of the pen used by SkPaint to
322 /** \enum SkPaint::Cap
333 /** May be used to verify that SkPaint::Cap is a legal value.
337 /** \enum SkPaint::Join
358 /** May be used to verify that SkPaint::Join is a legal value.
607 /** Returns true if SkPaint prevents all drawing;
608 otherwise, the SkPaint may or may not allow drawing.
613 @return true if SkPaint prevents all drawing
620 Returns true if SkPaint does not include elements requiring extensive computation
621 to compute SkBaseDevice bounds of drawn geometry. For instance, SkPaint with SkPathEffect
624 @return true if SkPaint allows for fast computation of bounds
648 @param orig geometry modified by SkPaint when drawn
655 SkPaint::Style style = this->getStyle();
672 @param orig geometry modified by SkPaint when drawn
682 Computes the bounds, overriding the SkPaint SkPaint::Style. This can be used to
684 altering SkPaint::Style set to fill.
686 @param orig geometry modified by SkPaint when drawn
688 @param style overrides SkPaint::Style