SubspacePlaceable

abstract class SubspacePlaceable


A SubspacePlaceable corresponds to a child layout that can be positioned by its parent layout. Most SubspacePlaceable are the result of a SubspaceMeasurable.measure call.

Based on androidx.compose.ui.layout.Placeable.

Summary

Nested types

Receiver scope that permits explicit placement of a SubspacePlaceable.

Public constructors

Protected functions

abstract Unit
placeAt(pose: Pose)

Positions the SubspacePlaceable at pose in its parent's coordinate system.

Public properties

Int

The depth, in pixels, of the measured layout, as seen by the parent.

Int

The height, in pixels, of the measured layout, as seen by the parent.

Int

The measured depth of the layout.

Int

The measured height of the layout.

Int

The measured width of the layout.

Int

The width, in pixels, of the measured layout, as seen by the parent.

Protected properties

VolumeConstraints

The constraints used for the measurement made to obtain this SubspacePlaceable.

Public constructors

SubspacePlaceable

Added in 1.0.0-alpha14
SubspacePlaceable()

Protected functions

placeAt

Added in 1.0.0-alpha14
protected abstract fun placeAt(pose: Pose): Unit

Positions the SubspacePlaceable at pose in its parent's coordinate system.

Public properties

depth

Added in 1.0.0-alpha14
val depthInt

The depth, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured depth of the layout (aka the depth value passed into SubspaceMeasureScope.layout), but can be different if the layout does not respect its incoming constraints: in these cases the depth will be coerced inside the min and max depth constraints - to access the actual depth that the layout measured itself to, use measuredDepth.

height

Added in 1.0.0-alpha14
val heightInt

The height, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured height of the layout (aka the height value passed into SubspaceMeasureScope.layout), but can be different if the layout does not respect its incoming constraints: in these cases the height will be coerced inside the min and max height constraints - to access the actual height that the layout measured itself to, use measuredHeight.

measuredDepth

Added in 1.0.0-alpha14
var measuredDepthInt

The measured depth of the layout. This might not respect measurementConstraints.

measuredHeight

Added in 1.0.0-alpha14
var measuredHeightInt

The measured height of the layout. This might not respect measurementConstraints.

measuredWidth

Added in 1.0.0-alpha14
var measuredWidthInt

The measured width of the layout. This might not respect measurementConstraints.

width

Added in 1.0.0-alpha14
val widthInt

The width, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured width of the layout (aka the width value passed into SubspaceMeasureScope.layout), but can be different if the layout does not respect its incoming constraints: in these cases the width will be coerced inside the min and max width constraints - to access the actual width that the layout measured itself to, use measuredWidth.

Protected properties

measurementConstraints

Added in 1.0.0-alpha14
protected var measurementConstraintsVolumeConstraints

The constraints used for the measurement made to obtain this SubspacePlaceable.