-
public final class RectExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static UnitupdateBounds(RectF $self, Float left, Float top, Float right, Float bottom)Updates the coordinates of this RectF. final static UnitupdateBy(RectF $self, Float left, Float top, Float right, Float bottom)Increments the coordinates of this RectF by the provided values. final static Unitset(RectF $self, Number left, Number top, Number right, Number bottom)Sets the coordinates of this RectF to the provided values converted to Floats. final static Unitclear(RectF $self)Sets all coordinates of this RectF to 0. final static RectFsetAndRotate(RectF $self, Number left, Number top, Number right, Number bottom, Float rotationDegrees)Applies the provided coordinates to this RectF and rotates it by the given number of degrees. final static RectFcopy(RectF $self)Creates a new RectF with the same coordinates as this RectF without modifying this RectF. final static RectFrotate(RectF $self, Float degrees)Creates a RectF representing the bounding box of this RectF rotated by the provided number of degrees. final static RectFtranslate(RectF $self, Float x, Float y)Moves this RectF horizontally and vertically by the specified distances. final static FloatgetStart(RectF $self, Boolean isLtr)Returns RectF.left if isLtr is true, and RectF.right otherwise. final static FloatgetEnd(RectF $self, Boolean isLtr)Returns RectF.right if isLtr is true, and RectF.left otherwise. -
-
Method Detail
-
updateBounds
final static Unit updateBounds(RectF $self, Float left, Float top, Float right, Float bottom)
Updates the coordinates of this RectF.
-
updateBy
final static Unit updateBy(RectF $self, Float left, Float top, Float right, Float bottom)
Increments the coordinates of this RectF by the provided values.
-
setAndRotate
final static RectF setAndRotate(RectF $self, Number left, Number top, Number right, Number bottom, Float rotationDegrees)
Applies the provided coordinates to this RectF and rotates it by the given number of degrees.
-
translate
final static RectF translate(RectF $self, Float x, Float y)
Moves this RectF horizontally and vertically by the specified distances.
-
getStart
final static Float getStart(RectF $self, Boolean isLtr)
Returns RectF.left if isLtr is true, and RectF.right otherwise.
-
getEnd
final static Float getEnd(RectF $self, Boolean isLtr)
Returns RectF.right if isLtr is true, and RectF.left otherwise.
-
-
-
-