Skip to main content

CreateHighlightFn

Type Alias CreateHighlightFn 

Source
pub type CreateHighlightFn = Rc<dyn Fn(usize, String, usize, SharedString, &mut Window, &mut App)>;
Expand description

Invoked when the user finishes a drag-selection in “highlight mode”: the page (0-based), the selected one-line quote, which occurrence of it on the page, and the label of the picked color (the opaque tag from [set_highlight_palette], for the host to store). The host turns this into a stored note. (markup feature.)

Aliased Type§

pub struct CreateHighlightFn { /* private fields */ }