From 78de7519692ea93a2d2c70f8c0e773668df49fce Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 7 Feb 2018 07:27:09 -0500 Subject: add subtopics to all methods add self-check looking for #In markup on every method, pointing to an existing #Subtopic to reference the method. Docs-Preview: https://skia.org/?cl=104325 Bug: skia:6898 Change-Id: I749a25b9a43033ae68d193249b2c0b810dcf8fc8 Reviewed-on: https://skia-review.googlesource.com/104325 Commit-Queue: Cary Clark Reviewed-by: Cary Clark --- site/user/api/SkIRect_Reference.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'site/user/api/SkIRect_Reference.md') diff --git a/site/user/api/SkIRect_Reference.md b/site/user/api/SkIRect_Reference.md index 87568a29ff..64ca6b0491 100644 --- a/site/user/api/SkIRect_Reference.md +++ b/site/user/api/SkIRect_Reference.md @@ -13,6 +13,7 @@ SkIRect Reference | Member Function | static functions and member methods | | Member | member values | | Operator | operator overloading methods | +| Related Function | similar methods grouped together | # Struct SkIRect SkIRect holds four 32 bit integer coordinates describing the upper and @@ -25,6 +26,12 @@ its top, it is considered empty. | name | description | | --- | --- | +| Inset Outset Offset | moves sides | +| Intersection | set to shared bounds | +| Join | set to union of bounds | +| Property | member values, center, validity | +| Set | replaces all values | +| Sorting | orders sides | ## Member Function @@ -966,6 +973,15 @@ true if members fit in 16-bit word --- +## Set + +| name | description | +| --- | --- | +| set | sets to (left, top, right, bottom) | +| setEmpty | sets to (0, 0, 0, 0) | +| setLTRB | sets to SkScalar input (left, top, right, bottom) | +| setXYWH | sets to (x, y, width, height) | + ## setEmpty @@ -1134,6 +1150,7 @@ rect: -10, 35, 5, 60 isEmpty: false | --- | --- | | inset | moves the sides symmetrically about the center | | offset | translates sides without changing width and height | +| | offset(int32 t dx, int32 t dy) | | offsetTo | translates to (x, y) without changing width and height | | outset | moves the sides symmetrically about the center | @@ -1491,8 +1508,11 @@ describes an area: fLeft is less than Intersects | returns true if areas overlap | | IntersectsNoEmptyCheck | returns true if areas overlap skips empty check | | contains | returns true if points are equal or inside | +| | contains(int32 t x, int32 t y) const | | containsNoEmptyCheck | returns true if points are equal or inside skips empty check | +| | containsNoEmptyCheck(int32 t left, int32 t top, int32 t right, int32 t bottom) const | | intersect | sets to shared area; returns true if not empty | +| | intersect(const SkIRect& r) | | intersectNoEmptyCheck | sets to shared area; returns true if not empty skips empty check | | quickReject | returns true if rectangles do not intersect | @@ -2088,7 +2108,8 @@ intersection | name | description | | --- | --- | | join | sets to union of bounds | -| | join | +| | join(int32 t left, int32 t top, int32 t right, int32 t bottom) | +| | join(const SkIRect& r) | ## join -- cgit v1.2.3