Skip to main content

compute_selection_highlights

Function compute_selection_highlights 

Source
pub fn compute_selection_highlights(
    elements: &[TextElementLayout],
    range: &SelectionRange,
) -> Vec<HighlightRect>
Expand description

選択範囲にまたがる各テキスト要素について、描画用のハイライト矩形を算出する。