Lines Matching refs:SkPaint
19 #include "include/core/SkPaint.h"
79 SkCanvas and SkPaint together provide the state to draw into SkSurface or SkBaseDevice.
82 of all of clip values in the stack. The SkCanvas draw calls use SkPaint to supply drawing
576 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
588 int saveLayer(const SkRect* bounds, const SkPaint* paint);
600 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
609 int saveLayer(const SkRect& bounds, const SkPaint* paint) {
670 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
685 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
693 const SkPaint* fPaint = nullptr;
710 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
1178 /** Fills clip with SkPaint paint. SkPaint components, SkShader,
1186 void drawPaint(const SkPaint& paint);
1198 /** Draws pts using clip, SkMatrix and SkPaint 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
1205 or SkPaint::kButt_Cap, each point draws a square of width and height
1206 SkPaint stroke width.
1215 Each line segment respects paint SkPaint::Cap and SkPaint stroke width.
1216 SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1219 SkPaint::Join, and unlike drawPath(), does not create a mask from all points
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,
1236 draw a square of width and height SkPaint stroke width.
1237 SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
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,
1252 draw a square of width and height SkPaint stroke width.
1253 SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1258 void drawPoint(SkPoint p, const SkPaint& 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;
1264 SkPaint::Cap draws the end rounded or square;
1265 SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
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;
1279 SkPaint::Cap draws the end rounded or square;
1280 SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1286 void drawLine(SkPoint p0, SkPoint p1, const SkPaint& paint) {
1290 /** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
1291 In paint: SkPaint::Style determines if rectangle is stroked or filled;
1292 if stroked, SkPaint stroke width describes the line thickness, and
1293 SkPaint::Join draws the corners rounded or square.
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;
1304 if stroked, SkPaint stroke width describes the line thickness, and
1305 SkPaint::Join draws the corners rounded or square.
1310 void drawIRect(const SkIRect& rect, const SkPaint& paint) {
1316 /** Draws SkRegion region using clip, SkMatrix, and SkPaint paint.
1317 In paint: SkPaint::Style determines if rectangle is stroked or filled;
1318 if stroked, SkPaint stroke width describes the line thickness, and
1319 SkPaint::Join draws the corners rounded or square.
1322 @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1326 void drawRegion(const SkRegion& region, const SkPaint& paint);
1328 /** Draws oval oval using clip, SkMatrix, and SkPaint.
1329 In paint: SkPaint::Style determines if oval is stroked or filled;
1330 if stroked, SkPaint stroke width describes the line thickness.
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;
1341 if stroked, SkPaint stroke width describes the line thickness.
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;
1357 if stroked, SkPaint stroke width describes the line thickness.
1358 If stroked and SkRRect corner has zero length radii, SkPaint::Join can
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;
1377 if stroked, SkPaint stroke width describes the line thickness.
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;
1391 if stroked, SkPaint stroke width describes the line thickness.
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) {
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;
1428 if stroked, SkPaint stroke width describes the line thickness.
1432 SkPaint::Join.
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:
1448 outside of fill; if stroked, SkPaint stroke width describes the line thickness,
1449 SkPaint::Cap describes line ends, and SkPaint::Join describes how
1457 void drawPath(const SkPath& path, const SkPaint& paint);
1477 const SkPaint* = nullptr);
1479 const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1483 const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
1485 const SkPaint* = nullptr);
1487 const SkSamplingOptions& sampling, const SkPaint* paint,
1492 const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1501 Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
1503 If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
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
1576 @param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
1580 SkFilterMode filter, const SkPaint* paint = nullptr);
1637 * This API only draws solid color, filled rectangles so it does not accept a full SkPaint.
1676 const SkSamplingOptions&, const SkPaint* paint = nullptr,
1680 and SkPaint paint.
1707 SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint);
1710 SkFont font, and SkPaint paint.
1734 const SkPaint& paint) {
1739 and SkPaint paint.
1763 const SkPaint& paint) {
1791 SkPoint origin, const SkFont& font, const SkPaint& paint);
1812 SkPoint origin, const SkFont& font, const SkPaint& paint);
1834 SkPoint origin, const SkFont& font, const SkPaint& paint);
1836 /** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
1839 SkTypeface, SkPaint text size, SkPaint text scale x,
1840 SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
1841 SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
1842 and SkPaint subpixel text.
1847 SkColorFilter, SkPaint dither, SkMaskFilter, SkPathEffect, SkShader, and
1848 SkPaint::Style; apply to blob. If SkPaint contains SkPaint::kStroke_Style:
1849 SkPaint miter limit, SkPaint::Cap, SkPaint::Join, and SkPaint stroke width;
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.
1864 SkTypeface, SkPaint text size, SkPaint text scale x,
1865 SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
1866 SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
1867 and SkPaint subpixel text.
1879 void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaint& paint) {
1888 void drawSymbol(const HMSymbolData& symbol, SkPoint locate, const SkPaint& paint) {
1917 SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
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,
1942 @param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
1945 const SkPaint* paint) {
1953 If vertices colors are defined in vertices, and SkPaint paint contains SkShader,
1964 void drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint);
1969 void drawVertices(const SkVertices* vertices, const SkPaint& paint) {
1977 If vertices colors are defined in vertices, and SkPaint paint contains SkShader,
1988 void drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, const SkPaint& paint);
1993 void drawVertices(const sk_sp<SkVertices>& vertices, const SkPaint& paint) {
2026 const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
2056 const SkPoint texCoords[4], const SkPaint& paint) {
2060 /** Draws a set of sprites from atlas, using clip, SkMatrix, and optional SkPaint paint.
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);
2299 const SkPaint*);
2301 const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
2303 SkFilterMode, const SkPaint*);
2306 const SkRect* cull, const SkPaint*);
2309 const SkSamplingOptions&, const SkPaint*,
2313 const SkPaint& paint);
2320 const SkPaint* paint);
2353 bool SK_WARN_UNUSED_RESULT predrawNotify(const SkRect*, const SkPaint*, ShaderOverrideOpacity);
2362 const SkPaint& paint,
2384 SkPaint fPaint;
2387 Layer(sk_sp<SkBaseDevice> device, sk_sp<SkImageFilter> imageFilter, const SkPaint& paint);
2417 const SkPaint& restorePaint);
2492 void drawClippedToSaveBehind(const SkPaint&);
2503 bool internalQuickReject(const SkRect& bounds, const SkPaint& paint,
2506 void internalDrawPaint(const SkPaint& paint);
2536 const SkImageFilter* filter, const SkPaint& paint,
2545 bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*, ShaderOverrideOpacity) const;
2551 const SkPaint&);