kigadgets.size

Classes

Size

Module Contents

class kigadgets.size.Size(width: float, height: float)

Bases: kigadgets.units.BaseUnitTuple

digraph inheritancec2ef08b53b { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseUnitTuple" [URL="../units/index.html#kigadgets.units.BaseUnitTuple",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class to provide mm, inch, mil properties."]; "Size" [URL="#kigadgets.size.Size",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "BaseUnitTuple" -> "Size" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
property native_obj: Any
static build_from(t: kigadgets.units.CoordinateLike) Size
static native_from(t: kigadgets.units.CoordinateLike) Any
scale(x: float, y: float) None

Scale this size by x horizontally, and y vertically.

scaled(x: float, y: float) Size

Return a new scaled point, scaling by x and y.

property width: float

Return the width of the size.

property height: float

Return the height of the size.