animator.skia.IRect¶
- class animator.skia.IRect¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.IRect, t: tuple) -> None
Create an
IRectfrom a tuple of 0, 2, or 4 integers.__init__(self: animator.skia.IRect) -> None
Constructs an
IRectset to (0, 0, 0, 0). Many other rectangles are empty; if left is equal to or greater than right, or if top is equal to or greater than bottom. Setting all members to zero is a convenience, but does not designate a special empty rectangle.__init__(self: animator.skia.IRect, w: int, h: int) -> None
__init__(self: animator.skia.IRect, size: animator.skia.ISize) -> None
__init__(self: animator.skia.IRect, pt: animator.skia.IPoint, size: animator.skia.ISize) -> None
__init__(self: animator.skia.IRect, l: int, t: int, r: int, b: int) -> None
Methods
Intersects(a, b)MakeLTRB(l, t, r, b)MakePtSize(pt, size)MakeSize(size)MakeWH(w, h)MakeXYWH(x, y, w, h)__init__(*args, **kwargs)Overloaded function.
adjust(self, dL, dT, dR, dB)bottom(self)contains(*args, **kwargs)Overloaded function.
containsNoEmptyCheck(self, r)height(self)height64(self)inset(self, dx, dy)intersect(*args, **kwargs)Overloaded function.
isEmpty(self)isEmpty64(self)join(self, r)left(self)makeInset(self, dx, dy)makeOffset(*args, **kwargs)Overloaded function.
makeOutset(self, dx, dy)makeSorted(self)offset(*args, **kwargs)Overloaded function.
offsetTo(self, newX, newY)outset(self, dx, dy)right(self)setEmpty(self)setLTRB(self, left, top, right, bottom)setSize(self, size)setWH(self, width, height)setXYWH(self, x, y, width, height)size(self)sort(self)top(self)topLeft(self)width(self)width64(self)x(self)y(self)Attributes
fBottomfLeftfRightfTop- static Intersects(a: animator.skia.IRect, b: animator.skia.IRect) bool¶
- static MakeEmpty() animator.skia.IRect¶
- static MakePtSize(pt: animator.skia.IPoint, size: animator.skia.ISize) animator.skia.IRect¶
- static MakeSize(size: animator.skia.ISize) animator.skia.IRect¶
- static MakeWH(w: int, h: int) animator.skia.IRect¶
- bottom(self: animator.skia.IRect) int¶
- contains(*args, **kwargs)¶
Overloaded function.
contains(self: animator.skia.IRect, x: int, y: int) -> bool
contains(self: animator.skia.IRect, r: animator.skia.IRect) -> bool
contains(self: animator.skia.IRect, r: SkRect) -> bool
- containsNoEmptyCheck(self: animator.skia.IRect, r: animator.skia.IRect) bool¶
- height(self: animator.skia.IRect) int¶
- height64(self: animator.skia.IRect) int¶
- inset(self: animator.skia.IRect, dx: int, dy: int) None¶
- intersect(*args, **kwargs)¶
Overloaded function.
intersect(self: animator.skia.IRect, r: animator.skia.IRect) -> bool
intersect(self: animator.skia.IRect, a: animator.skia.IRect, b: animator.skia.IRect) -> bool
- isEmpty(self: animator.skia.IRect) bool¶
- isEmpty64(self: animator.skia.IRect) bool¶
- join(self: animator.skia.IRect, r: animator.skia.IRect) None¶
- left(self: animator.skia.IRect) int¶
- makeInset(self: animator.skia.IRect, dx: int, dy: int) animator.skia.IRect¶
- makeOffset(*args, **kwargs)¶
Overloaded function.
makeOffset(self: animator.skia.IRect, dx: int, dy: int) -> animator.skia.IRect
makeOffset(self: animator.skia.IRect, offset: animator.skia.IPoint) -> animator.skia.IRect
- makeOutset(self: animator.skia.IRect, dx: int, dy: int) animator.skia.IRect¶
- makeSorted(self: animator.skia.IRect) animator.skia.IRect¶
- offset(*args, **kwargs)¶
Overloaded function.
offset(self: animator.skia.IRect, dx: int, dy: int) -> None
offset(self: animator.skia.IRect, delta: animator.skia.IPoint) -> None
- offsetTo(self: animator.skia.IRect, newX: int, newY: int) None¶
- outset(self: animator.skia.IRect, dx: int, dy: int) None¶
- right(self: animator.skia.IRect) int¶
- setEmpty(self: animator.skia.IRect) None¶
- setSize(self: animator.skia.IRect, size: animator.skia.ISize) None¶
- setWH(self: animator.skia.IRect, width: int, height: int) None¶
- size(self: animator.skia.IRect) animator.skia.ISize¶
- sort(self: animator.skia.IRect) None¶
- top(self: animator.skia.IRect) int¶
- topLeft(self: animator.skia.IRect) animator.skia.IPoint¶
- width(self: animator.skia.IRect) int¶
- width64(self: animator.skia.IRect) int¶
- x(self: animator.skia.IRect) int¶
- y(self: animator.skia.IRect) int¶