Size#
Added in version 1.0.
- class Size(*args, **kwargs)#
A size.
Constructors#
Methods#
- class Size
- equal(b: Size) bool #
Checks whether the two give
Size
are equal.Added in version 1.0.
- Parameters:
b – a
Size
- init(width: float, height: float) Size #
Initializes a
Size
using the givenwidth
andheight
.Added in version 1.0.
- Parameters:
width – the width
height – the height
- init_from_size(src: Size) Size #
Initializes a
Size
using the width and height of the givensrc
.Added in version 1.0.
- Parameters:
src – a
Size
- interpolate(b: Size, factor: float) Size #
Linearly interpolates the two given
Size
using the given interpolationfactor
.Added in version 1.0.
- Parameters:
b – a
Size
factor – the linear interpolation factor