SplitLayoutState

class SplitLayoutState(initialSplitFraction: Float)

Represents the state for a split layout, which is used to control the position of the divider and layout coordinates.

Parameters

initialSplitFraction

The initial fraction value that determines the position of the divider.

Constructors

Link copied to clipboard
constructor(initialSplitFraction: Float)

Creates a SplitLayoutState with the given initial split fraction.

Properties

Link copied to clipboard

A mutable floating-point value representing the position of the divider within the split layout. The position is expressed as a fraction of the total layout size, ranging from 0.0 (divider at the start) to 1.0 (divider at the end). This allows dynamic adjustment of the layout's two panes, reflecting the current state of the divider's placement.

Link copied to clipboard
var layoutCoordinates: LayoutCoordinates?

Holds the layout coordinates for the split layout. These coordinates are used to track the position and size of the layout parts, facilitating the adjustment of the divider and the layout's panes during interactions like dragging.