InteractiveScope

data class InteractiveScope(val focusRequester: FocusRequester = FocusRequester(), containerLayoutCoordinates: LayoutCoordinates? = null)

Constructors

Link copied to clipboard
constructor(focusRequester: FocusRequester = FocusRequester(), containerLayoutCoordinates: LayoutCoordinates? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val focusRequester: FocusRequester
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun componentAbove(visualOffset: Offset): InteractiveComponent

Finds the closest component, by both X and Y coordinates, which ends above the specified point. If there is no such component, returns the component closest to the specified point.

Link copied to clipboard
fun componentAt(visualOffset: Offset): InteractiveComponent

Finds the component, which contains the point specified by the offset. If components overlap, returns the first one it finds. If there is no such component, returns the component closest to the specified point.

Link copied to clipboard
Link copied to clipboard
fun componentBelow(visualOffset: Offset): InteractiveComponent

Finds the closest component, by both X and Y coordinates, which begins below the specified point. If there is no such component, returns the component closest to the specified point.

Link copied to clipboard
fun componentClosestTo(visualOffset: Offset): InteractiveComponent

Finds the component, whose center is the closest to the specified point, preferring components horizontally adjacent.

Link copied to clipboard
fun componentLeftOf(visualOffset: Offset): InteractiveComponent

Finds the closest component, by both X and Y coordinates, which ends left of the specified point. If there is no such component, returns the component closest to the specified point.

Link copied to clipboard
fun componentRightOf(visualOffset: Offset): InteractiveComponent

Finds the closest component, by both X and Y coordinates, which begins right of the specified point. If there is no such component, returns the component closest to the specified point.

Link copied to clipboard

Returns all components between the specified borders, in line order, including the border components.

Link copied to clipboard

Find the visual position of the cursor in the layout.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Check if the component, identified by componentId, is before the component identified by the anchorId.

Link copied to clipboard

Check if the component is a part of the range (including both).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard