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
Sizeare equal.Added in version 1.0.
- Parameters:
b – a
Size
- init(width: float, height: float) Size#
Initializes a
Sizeusing the givenwidthandheight.Added in version 1.0.
- Parameters:
width – the width
height – the height
- init_from_size(src: Size) Size#
Initializes a
Sizeusing 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
Sizeusing the given interpolationfactor.Added in version 1.0.
- Parameters:
b – a
Sizefactor – the linear interpolation factor