animator.skia.Size¶
- class animator.skia.Size¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.Size, t: tuple) -> None
Create a
Sizefrom a tuple of two floats.- param t
Tuple of two floats.
__init__(self: animator.skia.Size, w: float, h: float) -> None
__init__(self: animator.skia.Size, src: animator.skia.ISize) -> None
__init__(self: animator.skia.Size) -> None
Methods
Make(*args, **kwargs)Overloaded function.
__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
fHeightfWidth- static Make(*args, **kwargs)¶
Overloaded function.
Make(w: float, h: float) -> animator.skia.Size
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¶