Skip to main content

CreateAreaFn

Type Alias CreateAreaFn 

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

Invoked when the user finishes a box-drag in “area mode”: the page (0-based), the dragged rect in normalized page coordinates, and the label of the picked color. The host stores it and hands it back as a Highlight with region set. (markup feature.)

Aliased Type§

pub struct CreateAreaFn { /* private fields */ }