animator.skia.IRect

class animator.skia.IRect

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: animator.skia.IRect, t: tuple) -> None

Create an IRect from a tuple of 0, 2, or 4 integers.

  1. __init__(self: animator.skia.IRect) -> None

    Constructs an IRect set 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.

  2. __init__(self: animator.skia.IRect, w: int, h: int) -> None

    Constructs an IRect set to (0, 0, w, h). Does not validate input; w or h may be negative.

    param int w

    width of constructed IRect

    param int h

    height of constructed IRect

  3. __init__(self: animator.skia.IRect, size: animator.skia.ISize) -> None

    Constructs an IRect set to (0, 0, size.width(), size.height()). Does not validate input; size.width() or size.height() may be negative.

    param ISize size

    values for IRect width and height

  4. __init__(self: animator.skia.IRect, pt: animator.skia.IPoint, size: animator.skia.ISize) -> None

    Constructs an IRect set to (pt.x(), pt.y(), pt.x() + size.width(), pt.y() + size.height()). Does not validate input; size.width() or size.height() may be negative.

    param IPoint pt

    values for IRect fLeft and fTop

    param ISize size

    values for IRect width and height

  5. __init__(self: animator.skia.IRect, l: int, t: int, r: int, b: int) -> None

    Constructs an IRect set to (l, t, r, b). Does not sort input; IRect may result in fLeft greater than fRight, or fTop greater than fBottom.

    param int l

    value for IRect fLeft

    param int t

    value for IRect fTop

    param int r

    value for IRect fRight

    param int b

    value for IRect fBottom

Methods

Intersects(a, b)

MakeEmpty()

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

fBottom

fLeft

fRight

fTop

static Intersects(a: animator.skia.IRect, b: animator.skia.IRect) bool
static MakeEmpty() animator.skia.IRect
static MakeLTRB(l: int, t: int, r: int, b: int) 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
static MakeXYWH(x: int, y: int, w: int, h: int) animator.skia.IRect
adjust(self: animator.skia.IRect, dL: int, dT: int, dR: int, dB: int) None
bottom(self: animator.skia.IRect) int
contains(*args, **kwargs)

Overloaded function.

  1. contains(self: animator.skia.IRect, x: int, y: int) -> bool

  2. contains(self: animator.skia.IRect, r: animator.skia.IRect) -> bool

  3. 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.

  1. intersect(self: animator.skia.IRect, r: animator.skia.IRect) -> bool

  2. 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.

  1. makeOffset(self: animator.skia.IRect, dx: int, dy: int) -> animator.skia.IRect

  2. 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.

  1. offset(self: animator.skia.IRect, dx: int, dy: int) -> None

  2. 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
setLTRB(self: animator.skia.IRect, left: int, top: int, right: int, bottom: int) None
setSize(self: animator.skia.IRect, size: animator.skia.ISize) None
setWH(self: animator.skia.IRect, width: int, height: int) None
setXYWH(self: animator.skia.IRect, x: int, y: int, 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