Skip to main content

is_point_in_stroke_styled

Function is_point_in_stroke_styled 

Source
pub fn is_point_in_stroke_styled(
    subpaths: &[SubPath],
    x: f32,
    y: f32,
    line_width: f32,
    cap: LineCap,
    join: LineJoin,
    miter_limit: f32,
    dash: &[f32],
    dash_offset: f32,
) -> bool
Expand description

指定した座標 (x, y) が、線幅・端点・結合・破線パターンを反映したストローク範囲内にあるかを判定する(W3C isPointInStroke 準拠)。