Lines Matching refs:cpaint
49 void sk_paint_delete(sk_paint_t* cpaint) { in sk_paint_delete() argument
50 SkDELETE(AsPaint(cpaint)); in sk_paint_delete()
53 bool sk_paint_is_antialias(const sk_paint_t* cpaint) { in sk_paint_is_antialias() argument
54 return AsPaint(*cpaint).isAntiAlias(); in sk_paint_is_antialias()
57 void sk_paint_set_antialias(sk_paint_t* cpaint, bool aa) { in sk_paint_set_antialias() argument
58 AsPaint(cpaint)->setAntiAlias(aa); in sk_paint_set_antialias()
61 sk_color_t sk_paint_get_color(const sk_paint_t* cpaint) { in sk_paint_get_color() argument
62 return AsPaint(*cpaint).getColor(); in sk_paint_get_color()
65 void sk_paint_set_color(sk_paint_t* cpaint, sk_color_t c) { in sk_paint_set_color() argument
66 AsPaint(cpaint)->setColor(c); in sk_paint_set_color()
69 void sk_paint_set_shader(sk_paint_t* cpaint, sk_shader_t* cshader) { in sk_paint_set_shader() argument
70 AsPaint(cpaint)->setShader(AsShader(cshader)); in sk_paint_set_shader()
73 void sk_paint_set_maskfilter(sk_paint_t* cpaint, sk_maskfilter_t* cfilter) { in sk_paint_set_maskfilter() argument
74 AsPaint(cpaint)->setMaskFilter(AsMaskFilter(cfilter)); in sk_paint_set_maskfilter()
77 bool sk_paint_is_stroke(const sk_paint_t* cpaint) { in sk_paint_is_stroke() argument
78 return AsPaint(*cpaint).getStyle() != SkPaint::kFill_Style; in sk_paint_is_stroke()
81 void sk_paint_set_stroke(sk_paint_t* cpaint, bool doStroke) { in sk_paint_set_stroke() argument
82 AsPaint(cpaint)->setStyle(doStroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style); in sk_paint_set_stroke()
85 float sk_paint_get_stroke_width(const sk_paint_t* cpaint) { in sk_paint_get_stroke_width() argument
86 return AsPaint(*cpaint).getStrokeWidth(); in sk_paint_get_stroke_width()
89 void sk_paint_set_stroke_width(sk_paint_t* cpaint, float width) { in sk_paint_set_stroke_width() argument
90 AsPaint(cpaint)->setStrokeWidth(width); in sk_paint_set_stroke_width()
93 float sk_paint_get_stroke_miter(const sk_paint_t* cpaint) { in sk_paint_get_stroke_miter() argument
94 return AsPaint(*cpaint).getStrokeMiter(); in sk_paint_get_stroke_miter()
97 void sk_paint_set_stroke_miter(sk_paint_t* cpaint, float miter) { in sk_paint_set_stroke_miter() argument
98 AsPaint(cpaint)->setStrokeMiter(miter); in sk_paint_set_stroke_miter()
101 sk_stroke_cap_t sk_paint_get_stroke_cap(const sk_paint_t* cpaint) { in sk_paint_get_stroke_cap() argument
103 if (find_c(AsPaint(*cpaint).getStrokeCap(), &ccap)) { in sk_paint_get_stroke_cap()
109 void sk_paint_set_stroke_cap(sk_paint_t* cpaint, sk_stroke_cap_t ccap) { in sk_paint_set_stroke_cap() argument
112 AsPaint(cpaint)->setStrokeCap(skcap); in sk_paint_set_stroke_cap()
118 sk_stroke_join_t sk_paint_get_stroke_join(const sk_paint_t* cpaint) { in sk_paint_get_stroke_join() argument
120 if (find_c(AsPaint(*cpaint).getStrokeJoin(), &cjoin)) { in sk_paint_get_stroke_join()
126 void sk_paint_set_stroke_join(sk_paint_t* cpaint, sk_stroke_join_t cjoin) { in sk_paint_set_stroke_join() argument
129 AsPaint(cpaint)->setStrokeJoin(skjoin); in sk_paint_set_stroke_join()