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 given- widthand- height.- 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 given- src.- Added in version 1.0. - Parameters:
- src – a - Size
 
 - interpolate(b: Size, factor: float) Size#
- Linearly interpolates the two given - Sizeusing the given interpolation- factor.- Added in version 1.0. - Parameters:
- b – a - Size
- factor – the linear interpolation factor