Lines Matching refs:paint
35 static void anp_deletePaint(ANPPaint* paint) {
36 delete paint;
39 static ANPPaintFlags anp_getFlags(const ANPPaint* paint) {
40 return paint->getFlags();
43 static void anp_setFlags(ANPPaint* paint, ANPPaintFlags flags) {
44 paint->setFlags(flags);
47 static ANPColor anp_getColor(const ANPPaint* paint) {
48 return paint->getColor();
51 static void anp_setColor(ANPPaint* paint, ANPColor color) {
52 paint->setColor(color);
55 static ANPPaintStyle anp_getStyle(const ANPPaint* paint) {
56 return paint->getStyle();
59 static void anp_setStyle(ANPPaint* paint, ANPPaintStyle style) {
60 paint->setStyle(static_cast<SkPaint::Style>(style));
63 static float anp_getStrokeWidth(const ANPPaint* paint) {
64 return SkScalarToFloat(paint->getStrokeWidth());
67 static float anp_getStrokeMiter(const ANPPaint* paint) {
68 return SkScalarToFloat(paint->getStrokeMiter());
71 static ANPPaintCap anp_getStrokeCap(const ANPPaint* paint) {
72 return paint->getStrokeCap();
75 static ANPPaintJoin anp_getStrokeJoin(const ANPPaint* paint) {
76 return paint->getStrokeJoin();
79 static void anp_setStrokeWidth(ANPPaint* paint, float width) {
80 paint->setStrokeWidth(SkFloatToScalar(width));
83 static void anp_setStrokeMiter(ANPPaint* paint, float miter) {
84 paint->setStrokeMiter(SkFloatToScalar(miter));
87 static void anp_setStrokeCap(ANPPaint* paint, ANPPaintCap cap) {
88 paint->setStrokeCap(static_cast<SkPaint::Cap>(cap));
91 static void anp_setStrokeJoin(ANPPaint* paint, ANPPaintJoin join) {
92 paint->setStrokeJoin(static_cast<SkPaint::Join>(join));
95 static ANPTextEncoding anp_getTextEncoding(const ANPPaint* paint) {
96 return paint->getTextEncoding();
99 static ANPPaintAlign anp_getTextAlign(const ANPPaint* paint) {
100 return paint->getTextAlign();
103 static float anp_getTextSize(const ANPPaint* paint) {
104 return SkScalarToFloat(paint->getTextSize());
107 static float anp_getTextScaleX(const ANPPaint* paint) {
108 return SkScalarToFloat(paint->getTextScaleX());
111 static float anp_getTextSkewX(const ANPPaint* paint) {
112 return SkScalarToFloat(paint->getTextSkewX());
115 static ANPTypeface* anp_getTypeface(const ANPPaint* paint) {
116 return reinterpret_cast<ANPTypeface*>(paint->getTypeface());
119 static void anp_setTextEncoding(ANPPaint* paint, ANPTextEncoding encoding) {
120 paint->setTextEncoding(static_cast<SkPaint::TextEncoding>(encoding));
123 static void anp_setTextAlign(ANPPaint* paint, ANPPaintAlign align) {
124 paint->setTextAlign(static_cast<SkPaint::Align>(align));
127 static void anp_setTextSize(ANPPaint* paint, float textSize) {
128 paint->setTextSize(SkFloatToScalar(textSize));
131 static void anp_setTextScaleX(ANPPaint* paint, float scaleX) {
132 paint->setTextScaleX(SkFloatToScalar(scaleX));
135 static void anp_setTextSkewX(ANPPaint* paint, float skewX) {
136 paint->setTextSkewX(SkFloatToScalar(skewX));
139 static void anp_setTypeface(ANPPaint* paint, ANPTypeface* tf) {
140 paint->setTypeface(tf);
143 static float anp_measureText(ANPPaint* paint, const void* text,
145 SkScalar w = paint->measureText(text, byteLength,
155 static int anp_getTextWidths(ANPPaint* paint, const void* text,
157 return paint->getTextWidths(text, byteLength, widths,
161 static float anp_getFontMetrics(ANPPaint* paint, ANPFontMetrics* metrics) {
163 SkScalar spacing = paint->getFontMetrics(&fm);