Package-level declarations

Types

Link copied to clipboard
@Immutable
data class Interactions(val focused: Boolean, val hovered: Boolean, val pressed: Boolean)
Link copied to clipboard
interface InteractionSourceObserverNode : TraversableNode

Observe InteractionSource updated for a node within a direct child of InteractionSourceElement nodes.

Functions

Link copied to clipboard
fun Modifier.border(border: Border): Modifier
fun Modifier.border(shape: Shape = BorderDefaults.BorderDefaultShape, width: Dp = Dp.Unspecified, borderStroke: BorderStroke = BorderStroke(0.dp, Color.Unspecified), inset: Dp = 0.dp): Modifier
Link copied to clipboard
fun Modifier.interactionSourceNode(interactionSource: InteractionSource?, childTraversalKey: Any = DefaultInteractionSourceChildTraversalKey): Modifier

Modifier to attach an InteractionSource to an element allowing child traversable Nodes to listen to interactions by implementing InteractionSourceObserverNode.

Link copied to clipboard
inline fun <T : TraversableNode> TraversableNode.traverseDirectDescendants(key: Any?, noinline block: (T) -> Unit)

Executes block for each direct descendant of this TraversableNode with a matching key.