animator.skia.RRect¶
- class animator.skia.RRect¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.RRect) -> None
__init__(self: animator.skia.RRect, rrect: animator.skia.RRect) -> None
__init__(self: animator.skia.RRect, rect: animator.skia.Rect, xRad: float, yRad: float) -> None
Methods
MakeOval(oval)MakeRect(rect)MakeRectXY(rect, xRad, yRad)__init__(*args, **kwargs)Overloaded function.
contains(self, rect)dump(self[, asHex])getBounds(self)getSimpleRadii(self)getType(self)height(self)inset(self, dx, dy)isComplex(self)isEmpty(self)isNinePatch(self)isOval(self)isRect(self)isSimple(self)isValid(self)makeInset(self, dx, dy)Copies
RRect, then insets bounds by dx and dy, and adjusts radii by dx and dy.makeOffset(self, dx, dy)makeOutset(self, dx, dy)Outsets bounds by dx and dy, and adjusts radii by dx and dy.
offset(self, dx, dy)outset(self, dx, dy)radii(self, corner)readFromMemory(self, buffer)rect(self)setEmpty(self)setNinePatch(self, rect, leftRad, topRad, ...)setOval(self, oval)setRect(self, rect)setRectRadii(self, rect, radii)setRectXY(self, rect, xRad, yRad)transform(self, matrix)Transforms the
RRectby matrix, returning result.type(self)width(self)writeToMemory(self)Attributes
kSizeInMemory- class Corner¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kUpperLeft_Corner
kUpperRight_Corner
kLowerRight_Corner
kLowerLeft_Corner
- property name¶
- static MakeEmpty() animator.skia.RRect¶
- static MakeOval(oval: animator.skia.Rect) animator.skia.RRect¶
- static MakeRect(rect: animator.skia.Rect) animator.skia.RRect¶
- static MakeRectXY(rect: animator.skia.Rect, xRad: float, yRad: float) animator.skia.RRect¶
- class Type¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kEmpty_Type
kRect_Type
kOval_Type
kSimple_Type
kNinePatch_Type
kComplex_Type
kLastType
- property name¶
- contains(self: animator.skia.RRect, rect: animator.skia.Rect) bool¶
- dump(self: animator.skia.RRect, asHex: bool = False) None¶
- getBounds(self: animator.skia.RRect) animator.skia.Rect¶
- getSimpleRadii(self: animator.skia.RRect) animator.skia.Point¶
- getType(self: animator.skia.RRect) animator.skia.RRect.Type¶
- height(self: animator.skia.RRect) float¶
- inset(self: animator.skia.RRect, dx: float, dy: float) None¶
- isComplex(self: animator.skia.RRect) bool¶
- isEmpty(self: animator.skia.RRect) bool¶
- isNinePatch(self: animator.skia.RRect) bool¶
- isOval(self: animator.skia.RRect) bool¶
- isRect(self: animator.skia.RRect) bool¶
- isSimple(self: animator.skia.RRect) bool¶
- isValid(self: animator.skia.RRect) bool¶
- makeInset(self: animator.skia.RRect, dx: float, dy: float) animator.skia.RRect¶
Copies
RRect, then insets bounds by dx and dy, and adjusts radii by dx and dy.- Parameters
dx – added to rect().fLeft, and subtracted from rect().fRight
dy – added to rect().fTop, and subtracted from rect().fBottom
- Returns
insets bounds and radii
- makeOffset(self: animator.skia.RRect, dx: float, dy: float) animator.skia.RRect¶
- makeOutset(self: animator.skia.RRect, dx: float, dy: float) animator.skia.RRect¶
Outsets bounds by dx and dy, and adjusts radii by dx and dy.
- Parameters
dx – subtracted from rect().fLeft, and added to rect().fRight
dy – subtracted from rect().fTop, and added to rect().fBottom
- Returns
outset bounds and radii
- offset(self: animator.skia.RRect, dx: float, dy: float) None¶
- outset(self: animator.skia.RRect, dx: float, dy: float) None¶
- radii(self: animator.skia.RRect, corner: animator.skia.RRect.Corner) animator.skia.Point¶
- readFromMemory(self: animator.skia.RRect, buffer: animator.skia.Data) int¶
- rect(self: animator.skia.RRect) animator.skia.Rect¶
- setEmpty(self: animator.skia.RRect) None¶
- setNinePatch(self: animator.skia.RRect, rect: animator.skia.Rect, leftRad: float, topRad: float, rightRad: float, bottomRad: float) None¶
- setOval(self: animator.skia.RRect, oval: animator.skia.Rect) None¶
- setRect(self: animator.skia.RRect, rect: animator.skia.Rect) None¶
- setRectRadii(self: animator.skia.RRect, rect: animator.skia.Rect, radii: List[animator.skia.Point]) None¶
- setRectXY(self: animator.skia.RRect, rect: animator.skia.Rect, xRad: float, yRad: float) None¶
- transform(self: animator.skia.RRect, matrix: SkMatrix) Optional[animator.skia.RRect]¶
Transforms the
RRectby matrix, returning result. Returns the transformedRRectif the transformation can be represented by anotherRRect. ReturnsNoneif matrix contains transformations that are not axis aligned.
- type(self: animator.skia.RRect) animator.skia.RRect.Type¶
- width(self: animator.skia.RRect) float¶
- writeToMemory(self: animator.skia.RRect) animator.skia.Data¶