Skip to main content

find_text_center

Function find_text_center 

Source
pub fn find_text_center<E: SemanticElementLike>(
    elements: &[E],
    text: &str,
) -> Option<(f32, f32)>
Expand description

Find an element by text content in the semantic tree. Returns the center coordinates (x, y) if found.

ยงType Parameters

  • E: A type implementing SemanticElementLike (e.g. SemanticElement)