Lines Matching defs:SkRect

22 #include "include/core/SkRect.h"
359 /** Copies SkRect of pixels from SkCanvas into dstPixels. SkMatrix and clip are
362 Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
363 Destination SkRect corners are (0, 0) and (dstInfo.width(), dstInfo.height()).
376 are copied. dstPixels contents outside SkRect intersection are unchanged.
396 /** Copies SkRect of pixels from SkCanvas into pixmap. SkMatrix and clip are
399 Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
400 Destination SkRect corners are (0, 0) and (pixmap.width(), pixmap.height()).
412 do not match. Only pixels within both source and destination SkRect
413 are copied. pixmap pixels contents outside SkRect intersection are unchanged.
433 /** Copies SkRect of pixels from SkCanvas into bitmap. SkMatrix and clip are
436 Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
437 Destination SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
450 are copied. SkBitmap pixels outside SkRect intersection are unchanged.
470 /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
471 Source SkRect corners are (0, 0) and (info.width(), info.height()).
472 Destination SkRect corners are (x, y) and
485 are copied. SkCanvas pixels outside SkRect intersection are unchanged.
508 /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
509 Source SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
511 Destination SkRect corners are (x, y) and
524 are copied. SkCanvas pixels outside SkRect intersection are unchanged.
573 SkRect bounds suggests but does not define the SkBitmap size. To clip drawing to
588 int saveLayer(const SkRect* bounds, const SkPaint* paint);
597 SkRect bounds suggests but does not define the layer size. To clip drawing to
609 int saveLayer(const SkRect& bounds, const SkPaint* paint) {
622 SkRect bounds suggests but does not define layer size. To clip drawing to
635 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha);
670 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
685 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
690 const SkRect* fBounds = nullptr;
710 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
903 @param rect SkRect to combine with clip
909 void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
915 @param rect SkRect to combine with clip
918 void clipRect(const SkRect& rect, SkClipOp op) {
927 @param rect SkRect to combine with clip
930 void clipRect(const SkRect& rect, bool doAntiAlias = false) {
935 this->clipRect(SkRect::Make(irect), op, false);
1043 /** Returns true if SkRect rect, transformed by SkMatrix, can be quickly determined to be
1048 @param rect SkRect to compare with clip
1053 bool quickReject(const SkRect& rect) const;
1068 return SkRect::MakeEmpty, where all SkRect sides equal zero.
1070 SkRect returned is outset by one to account for partial pixel coverage if clip
1077 SkRect getLocalClipBounds() const;
1080 return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
1085 @param bounds SkRect of clip in local coordinates
1088 bool getLocalClipBounds(SkRect* bounds) const {
1094 return SkRect::MakeEmpty, where all SkRect sides equal zero.
1103 return SkRect::MakeEmpty, where all SkRect sides equal zero.
1114 return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
1118 @param bounds SkRect of clip in device coordinates
1290 /** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
1300 void drawRect(const SkRect& rect, const SkPaint& paint);
1311 SkRect r;
1332 @param oval SkRect bounds of oval
1337 void drawOval(const SkRect& oval, const SkPaint& paint);
1413 If SkRect oval is empty or sweepAngle is zero, nothing is drawn.
1415 @param oval SkRect bounds of oval containing arc to draw
1421 void drawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
1424 /** Draws SkRRect bounded by SkRect rect, with corner radii (rx, ry) using clip,
1431 If rx and ry are zero, SkRRect is drawn as SkRect and if stroked is affected by
1434 @param rect SkRect bounds of SkRRect to draw
1441 void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
1467 SrcRectConstraint controls the behavior at the edge of source SkRect,
1482 void drawImageRect(const SkImage*, const SkRect& src, const SkRect& dst,
1484 void drawImageRect(const SkImage*, const SkRect& dst, const SkSamplingOptions&,
1486 void drawImageRect(const sk_sp<SkImage>& image, const SkRect& src, const SkRect& dst,
1491 void drawImageRect(const sk_sp<SkImage>& image, const SkRect& dst,
1496 /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1514 @param dst destination SkRect of image to draw to
1519 void drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst,
1552 /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1574 @param dst destination SkRect of image to draw to
1579 void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst,
1581 void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst) {
1600 ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1603 ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1612 SkRect fSrcRect;
1613 SkRect fDstRect;
1635 * This ordering matches SkRect::toQuad().
1639 void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
1641 void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
2062 to draw, if present. For each entry in the array, SkRect tex locates sprite in
2077 @param tex SkRect locations of sprites in atlas
2085 void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[],
2087 const SkSamplingOptions& sampling, const SkRect* cullRect, const SkPaint* paint);
2119 /** Associates SkRect on SkCanvas with an annotation; a key-value pair, where the key is
2125 @param rect SkRect extent of canvas to annotate
2131 void drawAnnotation(const SkRect& rect, const char key[], SkData* value);
2133 /** Associates SkRect on SkCanvas when an annotation; a key-value pair, where the key is
2139 @param rect SkRect extent of canvas to annotate
2143 void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value) {
2159 /** Returns true if clip is SkRect and not empty.
2160 Returns false if the clip is empty, or if it is not SkRect.
2162 @return true if clip is SkRect and not empty
2262 virtual bool onDoSaveBehind(const SkRect*) { return true; }
2277 virtual void onDrawRect(const SkRect& rect, const SkPaint& paint);
2280 virtual void onDrawOval(const SkRect& rect, const SkPaint& paint);
2281 virtual void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle,
2300 virtual void onDrawImageRect2(const SkImage*, const SkRect& src, const SkRect& dst,
2302 virtual void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect& dst,
2304 virtual void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect src[],
2306 const SkRect* cull, const SkPaint*);
2315 virtual void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value);
2322 virtual void onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
2330 virtual void onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle);
2353 bool SK_WARN_UNUSED_RESULT predrawNotify(const SkRect*, const SkPaint*, ShaderOverrideOpacity);
2363 const SkRect* rawBounds = nullptr,
2486 int only_axis_aligned_saveBehind(const SkRect* subset);
2503 bool internalQuickReject(const SkRect& bounds, const SkPaint& paint,
2508 void internalSaveBehind(const SkRect*);
2545 bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*, ShaderOverrideOpacity) const;
2570 SkRect fQuickRejectBounds;
2574 SkRect computeDeviceClipBounds(bool outsetForAA=true) const;