Lines Matching full:direction
485 enum Direction {
486 /** Direction either has not been or could not be computed */
488 /** clockwise direction for adding closed contours */
490 /** counter-clockwise direction for adding closed contours */
495 * Return the opposite of the specified direction. kUnknown is its own
498 static Direction OppositeDirection(Direction dir) {
499 static const Direction gOppositeDir[] = {
538 * Tries to quickly compute the direction of the first non-degenerate
540 * direction. If it cannot be (quickly) determined, return false and ignore
541 * the dir parameter. If the direction was determined, it is cached to make
544 bool cheapComputeDirection(Direction* dir) const;
547 * Returns true if the path's direction can be computed via
548 * cheapComputDirection() and if that computed direction matches the
549 * specified direction. If dir is kUnknown, returns true if the direction
552 bool cheapIsDirection(Direction dir) const {
553 Direction computedDir = kUnknown_Direction;
560 and direction is not null, return the rect direction. If the path does not
561 specify a rectangle, return false and ignore isClosed and direction.
564 @param direction If not null, set to the rectangle's direction
567 bool isRect(bool* isClosed, Direction* direction) const;
571 rectangle. If so, and dirs is not null, set dirs[0] to the direction of
572 the outer rectangle and dirs[1] to the direction of the inner rectangle. If
577 @param dirs If not null, returns the direction of the rects
580 bool isNestedRects(SkRect rect[2], Direction dirs[2] = NULL) const;
585 * @param dir The direction to wind the rectangle's contour. Cannot be
588 void addRect(const SkRect& rect, Direction dir = kCW_Direction);
601 * @param dir The direction to wind the rectangle's contour. Cannot be
605 Direction dir = kCW_Direction);
611 * @param dir The direction to wind the oval's contour. Cannot be
614 void addOval(const SkRect& oval, Direction dir = kCW_Direction);
625 * @param dir The direction to wind the circle's contour. Cannot be
629 Direction dir = kCW_Direction);
644 * @param dir The direction to wind the rectangle's contour. Cannot be
648 Direction dir = kCW_Direction);
656 * @param dir The direction to wind the rectangle's contour. Cannot be
663 Direction dir = kCW_Direction);
668 * @param dir The winding direction for the new contour. Cannot be
671 void addRRect(const SkRRect& rrect, Direction dir = kCW_Direction);
713 @param dx The amount in the X direction to offset the entire path
714 @param dy The amount in the Y direction to offset the entire path
721 @param dx The amount in the X direction to offset the entire path
722 @param dy The amount in the Y direction to offset the entire path
995 bool* isClosed, Direction* direction) const;