Function tool_drag

Source
fn tool_drag(
    ui: &Ui,
    state: &mut PreviewState,
    c: &mut PreviewCtx<'_>,
    r: &mut PreviewResponse,
    resp: &Response,
    lb: Rect,
) -> bool
Expand description

Drag with a shape / draw / mask tool. Returns true when the tool consumed the gesture (so the clip must not be moved). Never panics without a selection: a shape or a stroke is reported regardless and the app decides what to create.