Size

class Size

Methods

Make

Make(*args, **kwargs) Overloaded function.

MakeEmpty

MakeEmpty() -> skia.Size

__init__

__init__(*args, **kwargs) Overloaded function.

equals

equals(self: skia.Size, width: float, height: float) -> bool

height

height(self: skia.Size) -> float

isEmpty

isEmpty(self: skia.Size) -> bool

isZero

isZero(self: skia.Size) -> bool

set

set(self: skia.Size, width: float, height: float) -> None

setEmpty

setEmpty(self: skia.Size) -> None

toCeil

toCeil(self: skia.Size) -> skia.ISize

toFloor

toFloor(self: skia.Size) -> skia.ISize

toRound

toRound(self: skia.Size) -> skia.ISize

width

width(self: skia.Size) -> float

Attributes

fHeight

fWidth

Methods

static Size.Make(*args, **kwargs)

Overloaded function.

  1. Make(width: float, height: float) -> skia.Size

  2. Make(isize: skia.ISize) -> skia.Size

static Size.MakeEmpty() skia.Size
Size.__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: skia.Size) -> None

  2. __init__(self: skia.Size, width: float, height: float) -> None

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

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

Size.equals(self: skia.Size, width: float, height: float) bool
Size.height(self: skia.Size) float
Size.isEmpty(self: skia.Size) bool

Returns true if either width or height are <= 0.

Size.isZero(self: skia.Size) bool

Returns true iff fWidth == 0 && fHeight == 0.

Size.set(self: skia.Size, width: float, height: float) None
Size.setEmpty(self: skia.Size) None

Set the width and height to 0.

Size.toCeil(self: skia.Size) skia.ISize
Size.toFloor(self: skia.Size) skia.ISize
Size.toRound(self: skia.Size) skia.ISize
Size.width(self: skia.Size) float

Attributes

Size.fHeight
Size.fWidth