Lines Matching defs:paint
576 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
582 @param paint graphics state for layer; may be nullptr
588 int saveLayer(const SkRect* bounds, const SkPaint* paint);
600 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
606 @param paint graphics state for layer; may be nullptr
609 int saveLayer(const SkRect& bounds, const SkPaint* paint) {
610 return this->saveLayer(&bounds, paint);
666 @param paint applied to layer when overlaying prior layer; may be nullptr
670 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
671 : SaveLayerRec(bounds, paint, nullptr, 1.f, saveLayerFlags) {}
676 @param paint applied to layer when overlaying prior layer;
685 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
687 : SaveLayerRec(bounds, paint, backdrop, 1.f, saveLayerFlags) {}
710 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
713 , fPaint(paint)
1178 /** Fills clip with SkPaint paint. SkPaint components, SkShader,
1180 SkMaskFilter and SkPathEffect in paint are ignored.
1182 @param paint graphics state used to fill SkCanvas
1186 void drawPaint(const SkPaint& paint);
1198 /** Draws pts using clip, SkMatrix and SkPaint paint.
1202 If mode is kPoints_PointMode, the shape of point drawn depends on paint
1203 SkPaint::Cap. If paint is set to SkPaint::kRound_Cap, each point draws a
1204 circle of diameter SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap
1215 Each line segment respects paint SkPaint::Cap and SkPaint stroke width.
1225 @param paint stroke, blend, color, and so on, used to draw
1229 void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint);
1231 /** Draws point at (x, y) using clip, SkMatrix and SkPaint paint.
1233 The shape of point drawn depends on paint SkPaint::Cap.
1234 If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
1235 SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
1241 @param paint stroke, blend, color, and so on, used to draw
1245 void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
1247 /** Draws point p using clip, SkMatrix and SkPaint paint.
1249 The shape of point drawn depends on paint SkPaint::Cap.
1250 If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
1251 SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
1256 @param paint stroke, blend, color, and so on, used to draw
1258 void drawPoint(SkPoint p, const SkPaint& paint) {
1259 this->drawPoint(p.x(), p.y(), paint);
1262 /** Draws line segment from (x0, y0) to (x1, y1) using clip, SkMatrix, and SkPaint paint.
1263 In paint: SkPaint stroke width describes the line thickness;
1271 @param paint stroke, blend, color, and so on, used to draw
1275 void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint& paint);
1277 /** Draws line segment from p0 to p1 using clip, SkMatrix, and SkPaint paint.
1278 In paint: SkPaint stroke width describes the line thickness;
1284 @param paint stroke, blend, color, and so on, used to draw
1286 void drawLine(SkPoint p0, SkPoint p1, const SkPaint& paint) {
1287 this->drawLine(p0.x(), p0.y(), p1.x(), p1.y(), paint);
1290 /** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
1291 In paint: SkPaint::Style determines if rectangle is stroked or filled;
1296 @param paint stroke or fill, blend, color, and so on, used to draw
1300 void drawRect(const SkRect& rect, const SkPaint& paint);
1302 /** Draws SkIRect rect using clip, SkMatrix, and SkPaint paint.
1303 In paint: SkPaint::Style determines if rectangle is stroked or filled;
1308 @param paint stroke or fill, blend, color, and so on, used to draw
1310 void drawIRect(const SkIRect& rect, const SkPaint& paint) {
1313 this->drawRect(r, paint);
1316 /** Draws SkRegion region using clip, SkMatrix, and SkPaint paint.
1317 In paint: SkPaint::Style determines if rectangle is stroked or filled;
1322 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1326 void drawRegion(const SkRegion& region, const SkPaint& paint);
1329 In paint: SkPaint::Style determines if oval is stroked or filled;
1333 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1337 void drawOval(const SkRect& oval, const SkPaint& paint);
1339 /** Draws SkRRect rrect using clip, SkMatrix, and SkPaint paint.
1340 In paint: SkPaint::Style determines if rrect is stroked or filled;
1347 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1351 void drawRRect(const SkRRect& rrect, const SkPaint& paint);
1354 using clip, SkMatrix, and SkPaint paint.
1356 In paint: SkPaint::Style determines if SkRRect is stroked or filled;
1367 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1372 void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
1374 /** Draws circle at (cx, cy) with radius using clip, SkMatrix, and SkPaint paint.
1376 In paint: SkPaint::Style determines if circle is stroked or filled;
1382 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1386 void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint& paint);
1388 /** Draws circle at center with radius using clip, SkMatrix, and SkPaint paint.
1390 In paint: SkPaint::Style determines if circle is stroked or filled;
1395 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1397 void drawCircle(SkPoint center, SkScalar radius, const SkPaint& paint) {
1398 this->drawCircle(center.x(), center.y(), radius, paint);
1401 /** Draws arc using clip, SkMatrix, and SkPaint paint.
1419 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1422 bool useCenter, const SkPaint& paint);
1425 SkMatrix, and SkPaint paint.
1427 In paint: SkPaint::Style determines if SkRRect is stroked or filled;
1437 @param paint stroke, blend, color, and so on, used to draw
1441 void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
1443 /** Draws SkPath path using clip, SkMatrix, and SkPaint paint.
1446 In paint: SkPaint::Style determines if SkRRect is stroked or filled:
1453 @param paint stroke, blend, color, and so on, used to draw
1457 void drawPath(const SkPath& path, const SkPaint& paint);
1479 const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1480 this->drawImage(image.get(), x, y, sampling, paint);
1487 const SkSamplingOptions& sampling, const SkPaint* paint,
1489 this->drawImageRect(image.get(), src, dst, sampling, paint, constraint);
1492 const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1493 this->drawImageRect(image.get(), dst, sampling, paint);
1501 Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
1503 If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
1505 If paint contains SkMaskFilter, generate mask from image bounds.
1506 Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
1516 @param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
1520 SkFilterMode filter, const SkPaint* paint = nullptr);
1560 Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
1562 If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
1564 If paint contains SkMaskFilter, generate mask from image bounds.
1565 Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
1576 @param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
1580 SkFilterMode filter, const SkPaint* paint = nullptr);
1669 * An optional paint may be provided, which supports the same subset of features usable with
1670 * drawImageRect (i.e. assumed to be filled and no path effects). When a paint is provided, the
1671 * image set is drawn as if each image used the applied paint independently, so each is affected
1676 const SkSamplingOptions&, const SkPaint* paint = nullptr,
1680 and SkPaint paint.
1694 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1704 @param paint blend, color, and so on, used to draw
1707 SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint);
1710 SkFont font, and SkPaint paint.
1722 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1731 @param paint blend, color, and so on, used to draw
1734 const SkPaint& paint) {
1735 this->drawSimpleText(str, strlen(str), SkTextEncoding::kUTF8, x, y, font, paint);
1739 and SkPaint paint.
1751 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1760 @param paint blend, color, and so on, used to draw
1763 const SkPaint& paint) {
1764 this->drawSimpleText(str.c_str(), str.size(), SkTextEncoding::kUTF8, x, y, font, paint);
1767 /** Draws count glyphs, at positions relative to origin styled with font and paint with
1775 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1787 @param paint blend, color, and so on, used to draw
1791 SkPoint origin, const SkFont& font, const SkPaint& paint);
1793 /** Draws count glyphs, at positions relative to origin styled with font and paint.
1800 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1809 @param paint blend, color, and so on, used to draw
1812 SkPoint origin, const SkFont& font, const SkPaint& paint);
1814 /** Draws count glyphs, at positions relative to origin styled with font and paint.
1822 All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1831 @param paint blend, color, and so on, used to draw
1834 SkPoint origin, const SkFont& font, const SkPaint& paint);
1836 /** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
1838 blob contains glyphs, their positions, and paint attributes specific to text:
1846 Elements of paint: anti-alias, SkBlendMode, color including alpha,
1855 @param paint blend, color, stroking, and so on, used to draw
1859 void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
1861 /** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
1863 blob contains glyphs, their positions, and paint attributes specific to text:
1871 Elements of paint: SkPathEffect, SkMaskFilter, SkShader, SkColorFilter,
1877 @param paint blend, color, stroking, and so on, used to draw
1879 void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaint& paint) {
1880 this->drawTextBlob(blob.get(), x, y, paint);
1883 /** Draws HMSymbol at locate wih paint.
1886 @param paint blend, color, stroking, and so on, used to draw
1888 void drawSymbol(const HMSymbolData& symbol, SkPoint locate, const SkPaint& paint) {
1889 this->onDrawSymbol(symbol, locate, paint);
1917 SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
1920 If paint is non-null, then the picture is always drawn into a temporary layer before
1926 @param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
1930 void drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
1933 SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
1936 If paint is non-null, then the picture is always drawn into a temporary layer before
1942 @param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
1945 const SkPaint* paint) {
1946 this->drawPicture(picture.get(), matrix, paint);
1950 If paint contains an SkShader and vertices does not contain texCoords, the shader
1953 If vertices colors are defined in vertices, and SkPaint paint contains SkShader,
1956 SkMaskFilter and SkPathEffect on paint are ignored.
1960 @param paint specifies the SkShader, used as SkVertices texture; may be nullptr
1964 void drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint);
1969 void drawVertices(const SkVertices* vertices, const SkPaint& paint) {
1970 this->drawVertices(vertices, SkBlendMode::kModulate, paint);
1974 If paint contains an SkShader and vertices does not contain texCoords, the shader
1977 If vertices colors are defined in vertices, and SkPaint paint contains SkShader,
1980 SkMaskFilter and SkPathEffect on paint are ignored.
1984 @param paint specifies the SkShader, used as SkVertices texture, may be nullptr
1988 void drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, const SkPaint& paint);
1993 void drawVertices(const sk_sp<SkVertices>& vertices, const SkPaint& paint) {
1994 this->drawVertices(vertices, SkBlendMode::kModulate, paint);
2000 Coons patch uses clip and SkMatrix, paint SkShader, SkColorFilter,
2012 If paint contains SkShader, SkPoint array texCoords maps SkShader as texture to
2016 SkMaskFilter and SkPathEffect on paint are ignored.
2022 @param mode SkBlendMode for colors, and for SkShader if paint has one
2023 @param paint SkShader, SkColorFilter, SkBlendMode, used to draw
2026 const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
2031 Coons patch uses clip and SkMatrix, paint SkShader, SkColorFilter,
2043 If paint contains SkShader, SkPoint array texCoords maps SkShader as texture to
2047 SkMaskFilter and SkPathEffect on paint are ignored.
2053 @param paint SkShader, SkColorFilter, SkBlendMode, used to draw
2056 const SkPoint texCoords[4], const SkPaint& paint) {
2057 this->drawPatch(cubics, colors, texCoords, SkBlendMode::kModulate, paint);
2060 /** Draws a set of sprites from atlas, using clip, SkMatrix, and optional SkPaint paint.
2061 paint uses anti-alias, alpha, SkColorFilter, SkImageFilter, and SkBlendMode
2065 SkMaskFilter and SkPathEffect on paint are ignored.
2083 @param paint SkColorFilter, SkImageFilter, SkBlendMode, and so on; may be nullptr
2087 const SkSamplingOptions& sampling, const SkRect* cullRect, const SkPaint* paint);
2275 virtual void onDrawPaint(const SkPaint& paint);
2276 virtual void onDrawBehind(const SkPaint& paint);
2277 virtual void onDrawRect(const SkRect& rect, const SkPaint& paint);
2278 virtual void onDrawRRect(const SkRRect& rrect, const SkPaint& paint);
2279 virtual void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
2280 virtual void onDrawOval(const SkRect& rect, const SkPaint& paint);
2282 bool useCenter, const SkPaint& paint);
2283 virtual void onDrawPath(const SkPath& path, const SkPaint& paint);
2284 virtual void onDrawRegion(const SkRegion& region, const SkPaint& paint);
2287 const SkPaint& paint);
2289 virtual void onDrawSymbol(const HMSymbolData& symbol, SkPoint locate, const SkPaint& paint) {}
2291 virtual void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint);
2294 const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
2296 const SkPaint& paint);
2313 const SkPaint& paint);
2320 const SkPaint* paint);
2362 const SkPaint& paint,
2383 sk_sp<SkImageFilter> fImageFilter; // applied to layer *before* being drawn by paint
2387 Layer(sk_sp<SkBaseDevice> device, sk_sp<SkImageFilter> imageFilter, const SkPaint& paint);
2502 // If 'matrix' is non-null, it maps the paint's fast bounds before checking for quick rejection
2503 bool internalQuickReject(const SkRect& bounds, const SkPaint& paint,
2506 void internalDrawPaint(const SkPaint& paint);
2527 * 'paint' is applied after the filter and must not have a mask or image filter of its own.
2536 const SkImageFilter* filter, const SkPaint& paint,
2542 * paint (or default if null) would overwrite the entire root device of the canvas
2548 * Returns true if the paint's imagefilter can be invoked directly, without needed a layer.