kigadgets.size ============== .. py:module:: kigadgets.size Classes ------- .. autoapisummary:: kigadgets.size.Size Module Contents --------------- .. py:class:: Size(width: float, height: float) Bases: :py:obj:`kigadgets.units.BaseUnitTuple` .. autoapi-inheritance-diagram:: kigadgets.size.Size :parts: 1 .. py:property:: native_obj :type: Any .. py:method:: build_from(t: kigadgets.units.CoordinateLike) -> Size :staticmethod: .. py:method:: native_from(t: kigadgets.units.CoordinateLike) -> Any :staticmethod: .. py:method:: scale(x: float, y: float) -> None Scale this size by x horizontally, and y vertically. .. py:method:: scaled(x: float, y: float) -> Size Return a new scaled point, scaling by x and y. .. py:property:: width :type: float Return the width of the size. .. py:property:: height :type: float Return the height of the size.