Size

class Size

Methods

Make

Overloaded function.

MakeEmpty

__init__

Overloaded function.

equals

height

isEmpty

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

isZero

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

set

setEmpty

Set the width and height to 0.

toCeil

toFloor

toRound

width

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