vizia::vg::path_utils

Function fill_path_with_paint

pub fn fill_path_with_paint<'a>(
    src: &Handle<SkPath>,
    paint: &Handle<SkPaint>,
    dst: &mut Handle<SkPath>,
    cull_rect: impl Into<Option<&'a Rect>>,
    matrix: impl Into<Option<Matrix>>,
) -> bool
Expand description

Returns the filled equivalent of the stroked path.

  • src - Path read to create a filled version
  • paint - Paint, from which attributes such as stroke cap, width, miter, and join, as well as path_effect will be used.
  • dst - resulting Path
  • cull_rect - optional limit passed to crate::PathEffect
  • matrix - if scale > 1, increase precision, else if (0 < scale < 1) reduce precision to favor speed and size

Returns: true if the dst path was updated, false if it was not (e.g. if the path represents hairline and cannot be filled).