animator.skia.Size

class animator.skia.Size

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

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

    Create a Size from a tuple of two floats.

    param t

    Tuple of two floats.

  2. __init__(self: animator.skia.Size, w: float, h: float) -> None

  3. __init__(self: animator.skia.Size, src: animator.skia.ISize) -> None

  4. __init__(self: animator.skia.Size) -> None

Methods

Make(*args, **kwargs)

Overloaded function.

MakeEmpty()

__init__(*args, **kwargs)

Overloaded function.

equals(self, w, h)

height(self)

isEmpty(self)

isZero(self)

set(self, w, h)

setEmpty(self)

toCeil(self)

toFloor(self)

toRound(self)

width(self)

Attributes

fHeight

fWidth

static Make(*args, **kwargs)

Overloaded function.

  1. Make(w: float, h: float) -> animator.skia.Size

  2. Make(src: animator.skia.ISize) -> animator.skia.Size

static MakeEmpty() animator.skia.Size
equals(self: animator.skia.Size, w: float, h: float) bool
height(self: animator.skia.Size) float
isEmpty(self: animator.skia.Size) bool
isZero(self: animator.skia.Size) bool
set(self: animator.skia.Size, w: float, h: float) None
setEmpty(self: animator.skia.Size) None
toCeil(self: animator.skia.Size) animator.skia.ISize
toFloor(self: animator.skia.Size) animator.skia.ISize
toRound(self: animator.skia.Size) animator.skia.ISize
width(self: animator.skia.Size) float