SpatialPanel
Functions summary
Unit |
@ComposableCreates a |
Functions
SpatialPanel
@Composable
@SubspaceComposable
fun SpatialPanel(
modifier: SubspaceModifier = SubspaceModifier,
shape: SpatialShape = SpatialPanelDefaults.shape,
dragPolicy: DragPolicy? = null,
resizePolicy: ResizePolicy? = null,
interactionPolicy: InteractionPolicy? = null,
content: @Composable @UiComposable () -> Unit
): Unit
Creates a SpatialPanel representing a 2D plane in 3D space in which an application can fill content.
| Parameters | |
|---|---|
modifier: SubspaceModifier = SubspaceModifier |
SubspaceModifiers to apply to the SpatialPanel. The depth field in size-based modifiers affects this panel's layout size, but will not affect how the panel is rendered. The rendered shape will be a flat rectangle that is positioned on the front face of the rectangular prism created by the layout size. |
shape: SpatialShape = SpatialPanelDefaults.shape |
The shape of this Spatial Panel. |
dragPolicy: DragPolicy? = null |
An optional |
resizePolicy: ResizePolicy? = null |
An optional |
interactionPolicy: InteractionPolicy? = null |
An optional |
content: @Composable @UiComposable () -> Unit |
The composable content to render within the SpatialPanel. |