Skip to main content

first_text

Function first_text 

Source
pub fn first_text(node: &LayoutNode) -> Option<&LayoutNode>
Expand description

The first text-bearing LayoutNode at or under node, in tree order. Used to position the caret and selection highlight inside a focused text field (read its content text/size plus bounds/caret/selection).