class RemoteSize


An immutable, 2D floating-point size with width and height represented as RemoteFloats.

This class is used in remote creation to represent dimensions that may be backed by remote state.

Summary

Public companion properties

RemoteSize

A RemoteSize with width and height set to 0.

Public constructors

RemoteSize(width: RemoteFloat, height: RemoteFloat)

Public functions

RemoteSize

Returns a RemoteSize with the width and height decreased by the offset's x and y coordinates, respectively.

Public properties

RemoteOffset

The offset to the center of this RemoteSize.

RemoteFloat
RemoteFloat

The lesser of the magnitudes of the width and the height.

RemoteFloat

Public companion properties

Zero

Added in 1.0.0-alpha07
val ZeroRemoteSize

A RemoteSize with width and height set to 0.

Public constructors

RemoteSize

Added in 1.0.0-alpha07
RemoteSize(width: RemoteFloat, height: RemoteFloat)

Public functions

offsetSize

Added in 1.0.0-alpha07
fun offsetSize(offset: RemoteOffset): RemoteSize

Returns a RemoteSize with the width and height decreased by the offset's x and y coordinates, respectively.

Public properties

center

Added in 1.0.0-alpha07
val centerRemoteOffset

The offset to the center of this RemoteSize.

height

Added in 1.0.0-alpha07
val heightRemoteFloat

minDimension

Added in 1.0.0-alpha07
val minDimensionRemoteFloat

The lesser of the magnitudes of the width and the height.

width

Added in 1.0.0-alpha07
val widthRemoteFloat