Lines Matching defs:rect
899 /** Replaces clip with the intersection or difference of clip and rect,
900 with an aliased or anti-aliased clip edge. rect is transformed by SkMatrix
903 @param rect SkRect to combine with clip
909 void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
911 /** Replaces clip with the intersection or difference of clip and rect.
913 rect is transformed by SkMatrix before it is combined with clip.
915 @param rect SkRect to combine with clip
918 void clipRect(const SkRect& rect, SkClipOp op) {
919 this->clipRect(rect, op, false);
922 /** Replaces clip with the intersection of clip and rect.
924 rect is transformed by SkMatrix
927 @param rect SkRect to combine with clip
930 void clipRect(const SkRect& rect, bool doAntiAlias = false) {
931 this->clipRect(rect, SkClipOp::kIntersect, doAntiAlias);
939 clipPath() and intersect the current clip with the specified rect.
943 Pass an empty rect to disable maximum clip.
948 @param rect maximum allowed clip in device coordinates
950 void androidFramework_setDeviceClipRestriction(const SkIRect& rect);
1043 /** Returns true if SkRect rect, transformed by SkMatrix, can be quickly determined to be
1044 outside of clip. May return false even though rect is outside of clip.
1048 @param rect SkRect to compare with clip
1049 @return true if rect, transformed by SkMatrix, does not intersect clip
1053 bool quickReject(const SkRect& rect) const;
1290 /** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
1295 @param rect rectangle to draw
1300 void drawRect(const SkRect& rect, const SkPaint& paint);
1302 /** Draws SkIRect rect using clip, SkMatrix, and SkPaint paint.
1307 @param rect rectangle to draw
1310 void drawIRect(const SkIRect& rect, const SkPaint& paint) {
1312 r.set(rect); // promotes the ints to scalars
1424 /** Draws SkRRect bounded by SkRect rect, with corner radii (rx, ry) using clip,
1430 If rx plus ry exceeds rect width or rect height, radii are scaled down to fit.
1434 @param rect SkRect bounds of SkRRect to draw
1441 void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
1469 then extra code is used to ensure it nevers samples outside of the src-rect.
1625 * quadrilateral. 'rect' and 'clip' are in the same coordinate space. If 'clip' is null, then it
1632 * 'clip' be contained inside 'rect'. In terms of mapping to edge labels, the 'clip' points
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,
1643 this->experimental_DrawEdgeAAQuad(rect, clip, aaFlags, SkColor4f::FromColor(color), mode);
1655 * the destination rect and its clip.
2125 @param rect SkRect extent of canvas to annotate
2131 void drawAnnotation(const SkRect& rect, const char key[], SkData* value);
2139 @param rect SkRect extent of canvas to annotate
2143 void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value) {
2144 this->drawAnnotation(rect, key, value.get());
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,
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);
2541 * Returns true if drawing the specified rect (or all if it is null) with the specified