228 lines
No EOL
48 KiB
HTML
228 lines
No EOL
48 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The base path building interface."><title>PathBuilder in cosmic::widget::canvas::path::lyon_path::builder - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../" data-static-root-path="../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Path<wbr>Builder</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.begin" title="begin">begin</a></li><li><a href="#tymethod.cubic_bezier_to" title="cubic_bezier_to">cubic_bezier_to</a></li><li><a href="#tymethod.end" title="end">end</a></li><li><a href="#tymethod.line_to" title="line_to">line_to</a></li><li><a href="#tymethod.num_attributes" title="num_attributes">num_attributes</a></li><li><a href="#tymethod.quadratic_bezier_to" title="quadratic_bezier_to">quadratic_bezier_to</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.add_circle" title="add_circle">add_circle</a></li><li><a href="#method.add_ellipse" title="add_ellipse">add_ellipse</a></li><li><a href="#method.add_line_segment" title="add_line_segment">add_line_segment</a></li><li><a href="#method.add_point" title="add_point">add_point</a></li><li><a href="#method.add_polygon" title="add_polygon">add_polygon</a></li><li><a href="#method.add_rectangle" title="add_rectangle">add_rectangle</a></li><li><a href="#method.add_rounded_rectangle" title="add_rounded_rectangle">add_rounded_rectangle</a></li><li><a href="#method.close" title="close">close</a></li><li><a href="#method.event" title="event">event</a></li><li><a href="#method.flattened" title="flattened">flattened</a></li><li><a href="#method.path_event" title="path_event">path_event</a></li><li><a href="#method.reserve" title="reserve">reserve</a></li><li><a href="#method.transformed" title="transformed">transformed</a></li><li><a href="#method.with_svg" title="with_svg">with_svg</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>builder</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../index.html">cosmic</a>::<wbr><a href="../../../../index.html">widget</a>::<wbr><a href="../../../index.html">canvas</a>::<wbr><a href="../../index.html">path</a>::<wbr><a href="../index.html">lyon_path</a>::<wbr><a href="index.html">builder</a></div><h1>Trait <span class="trait">PathBuilder</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait PathBuilder {
|
|
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 20 methods</span></summary> // Required methods
|
|
fn <a href="#tymethod.num_attributes" class="fn">num_attributes</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.begin" class="fn">begin</a>(
|
|
&mut self,
|
|
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.end" class="fn">end</a>(&mut self, close: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>);
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.line_to" class="fn">line_to</a>(
|
|
&mut self,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.quadratic_bezier_to" class="fn">quadratic_bezier_to</a>(
|
|
&mut self,
|
|
ctrl: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.cubic_bezier_to" class="fn">cubic_bezier_to</a>(
|
|
&mut self,
|
|
ctrl1: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.close" class="fn">close</a>(&mut self) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.reserve" class="fn">reserve</a>(&mut self, _endpoints: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, _ctrl_points: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.path_event" class="fn">path_event</a>(
|
|
&mut self,
|
|
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a><<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.event" class="fn">event</a>(
|
|
&mut self,
|
|
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a><(<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>, &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>]), <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_polygon" class="fn">add_polygon</a>(
|
|
&mut self,
|
|
polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a><'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_point" class="fn">add_point</a>(
|
|
&mut self,
|
|
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_line_segment" class="fn">add_line_segment</a>(
|
|
&mut self,
|
|
line: &<a class="struct" href="../geom/struct.LineSegment.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::LineSegment">LineSegment</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> (<a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>, <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_ellipse" class="fn">add_ellipse</a>(
|
|
&mut self,
|
|
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_circle" class="fn">add_circle</a>(
|
|
&mut self,
|
|
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_rectangle" class="fn">add_rectangle</a>(
|
|
&mut self,
|
|
rect: &<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.add_rounded_rectangle" class="fn">add_rounded_rectangle</a>(
|
|
&mut self,
|
|
rect: &<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radii: &<a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">BorderRadii</a>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.flattened" class="fn">flattened</a>(self, tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a><Self>
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.transformed" class="fn">transformed</a><Transform>(
|
|
self,
|
|
transform: Transform,
|
|
) -> <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a><Self, Transform>
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
|
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></span> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.with_svg" class="fn">with_svg</a>(self) -> <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a><Self>
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The base path building interface.</p>
|
|
<p>Unlike <code>SvgPathBuilder</code>, this interface strictly requires sub-paths to be manually
|
|
started and ended (See the <code>begin</code> and <code>end</code> methods).
|
|
All positions are provided in absolute coordinates.</p>
|
|
<p>The goal of this interface is to abstract over simple and fast implementations that
|
|
do not deal with corner cases such as adding segments without starting a sub-path.</p>
|
|
<p>More elaborate interfaces are built on top of the provided primitives. In particular,
|
|
the <code>SvgPathBuilder</code> trait providing more permissive and richer interface is
|
|
automatically implemented via the <code>WithSvg</code> adapter (See the <code>with_svg</code> method).</p>
|
|
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.num_attributes" class="method"><h4 class="code-header">fn <a href="#tymethod.num_attributes" class="fn">num_attributes</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section><details class="toggle method-toggle" open><summary><section id="tymethod.begin" class="method"><h4 class="code-header">fn <a href="#tymethod.begin" class="fn">begin</a>(
|
|
&mut self,
|
|
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Starts a new sub-path at a given position.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
<code>at</code> becomes the current position of the sub-path.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.end" class="method"><h4 class="code-header">fn <a href="#tymethod.end" class="fn">end</a>(&mut self, close: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Ends the current sub path.</p>
|
|
<p>A sub-path must be in progress when this method is called.
|
|
After this method is called, there is no sub-path in progress until
|
|
<code>begin</code> is called again.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.line_to" class="fn">line_to</a>(
|
|
&mut self,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a line segment to the current sub-path.</p>
|
|
<p>A sub-path must be in progress when this method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.quadratic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.quadratic_bezier_to" class="fn">quadratic_bezier_to</a>(
|
|
&mut self,
|
|
ctrl: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a quadratic bézier curve to the current sub-path.</p>
|
|
<p>A sub-path must be in progress when this method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.cubic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.cubic_bezier_to" class="fn">cubic_bezier_to</a>(
|
|
&mut self,
|
|
ctrl1: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a cubic bézier curve to the current sub-path.</p>
|
|
<p>A sub-path must be in progress when this method is called.</p>
|
|
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><h4 class="code-header">fn <a href="#method.close" class="fn">close</a>(&mut self)</h4></section></summary><div class="docblock"><p>Closes the current sub path.</p>
|
|
<p>Shorthand for <code>builder.end(true)</code>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.reserve" class="method"><h4 class="code-header">fn <a href="#method.reserve" class="fn">reserve</a>(&mut self, _endpoints: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, _ctrl_points: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Hints at the builder that a certain number of endpoints and control
|
|
points will be added.</p>
|
|
<p>The Builder implementation may use this information to pre-allocate
|
|
memory as an optimization.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.path_event" class="method"><h4 class="code-header">fn <a href="#method.path_event" class="fn">path_event</a>(
|
|
&mut self,
|
|
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a><<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)</h4></section></summary><div class="docblock"><p>Applies the provided path event.</p>
|
|
<p>By default this calls one of <code>begin</code>, <code>end</code>, <code>line</code>, <code>quadratic_bezier_segment</code>,
|
|
or <code>cubic_bezier_segment</code> according to the path event.</p>
|
|
<p>The requirements for each method apply to the corresponding event.</p>
|
|
</div></details><section id="method.event" class="method"><h4 class="code-header">fn <a href="#method.event" class="fn">event</a>(
|
|
&mut self,
|
|
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a><(<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>, &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>]), <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
)</h4></section><details class="toggle method-toggle" open><summary><section id="method.add_polygon" class="method"><h4 class="code-header">fn <a href="#method.add_polygon" class="fn">add_polygon</a>(
|
|
&mut self,
|
|
polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a><'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)</h4></section></summary><div class="docblock"><p>Adds a sub-path from a polygon.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_point" class="method"><h4 class="code-header">fn <a href="#method.add_point" class="fn">add_point</a>(
|
|
&mut self,
|
|
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a single point.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_line_segment" class="method"><h4 class="code-header">fn <a href="#method.add_line_segment" class="fn">add_line_segment</a>(
|
|
&mut self,
|
|
line: &<a class="struct" href="../geom/struct.LineSegment.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::LineSegment">LineSegment</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
) -> (<a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>, <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing a single line segment.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_ellipse" class="method"><h4 class="code-header">fn <a href="#method.add_ellipse" class="fn">add_ellipse</a>(
|
|
&mut self,
|
|
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing an ellipse.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_circle" class="method"><h4 class="code-header">fn <a href="#method.add_circle" class="fn">add_circle</a>(
|
|
&mut self,
|
|
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)<div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a circle.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_rectangle" class="method"><h4 class="code-header">fn <a href="#method.add_rectangle" class="fn">add_rectangle</a>(
|
|
&mut self,
|
|
rect: &<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing a rectangle.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_rounded_rectangle" class="method"><h4 class="code-header">fn <a href="#method.add_rounded_rectangle" class="fn">add_rounded_rectangle</a>(
|
|
&mut self,
|
|
rect: &<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>>,
|
|
radii: &<a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">BorderRadii</a>,
|
|
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
|
|
custom_attributes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
|
|
)<div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a rectangle.</p>
|
|
<p>There must be no sub-path in progress when this method is called.
|
|
No sub-path is in progress after the method is called.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.flattened" class="method"><h4 class="code-header">fn <a href="#method.flattened" class="fn">flattened</a>(self, tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a><Self><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns a builder that approximates all curves with sequences of line segments.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.transformed" class="method"><h4 class="code-header">fn <a href="#method.transformed" class="fn">transformed</a><Transform>(
|
|
self,
|
|
transform: Transform,
|
|
) -> <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a><Self, Transform><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
|
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,</div></h4></section></summary><div class="docblock"><p>Returns a builder that applies the given transformation to all positions.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_svg" class="method"><h4 class="code-header">fn <a href="#method.with_svg" class="fn">with_svg</a>(self) -> <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a><Self><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns a builder that support SVG commands.</p>
|
|
<p>This must be called before starting to add any sub-path.</p>
|
|
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-PathBuilder-for-BuilderImpl" class="impl"><a href="#impl-PathBuilder-for-BuilderImpl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="../struct.BuilderImpl.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderImpl">BuilderImpl</a></h3></section><section id="impl-PathBuilder-for-BuilderWithAttributes" class="impl"><a href="#impl-PathBuilder-for-BuilderWithAttributes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for cosmic::widget::canvas::path::lyon_path::<a class="struct" href="../struct.BuilderWithAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderWithAttributes">BuilderWithAttributes</a></h3></section><section id="impl-PathBuilder-for-Builder%3C'l%3E" class="impl"><a href="#impl-PathBuilder-for-Builder%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl<'l> <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="../path_buffer/struct.Builder.html" title="struct cosmic::widget::canvas::path::lyon_path::path_buffer::Builder">Builder</a><'l></h3></section><section id="impl-PathBuilder-for-BuilderWithAttributes%3C'l%3E" class="impl"><a href="#impl-PathBuilder-for-BuilderWithAttributes%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl<'l> <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for cosmic::widget::canvas::path::lyon_path::path_buffer::<a class="struct" href="../path_buffer/struct.BuilderWithAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::path_buffer::BuilderWithAttributes">BuilderWithAttributes</a><'l></h3></section><section id="impl-PathBuilder-for-NoAttributes%3CB%3E" class="impl"><a href="#impl-PathBuilder-for-NoAttributes%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="struct.NoAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::NoAttributes">NoAttributes</a><B><div class="where">where
|
|
B: <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a>,</div></h3></section><section id="impl-PathBuilder-for-Flattened%3CBuilder%3E" class="impl"><a href="#impl-PathBuilder-for-Flattened%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl<Builder> <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a><Builder><div class="where">where
|
|
Builder: <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a>,</div></h3></section><section id="impl-PathBuilder-for-Transformed%3CBuilder,+Transform%3E" class="impl"><a href="#impl-PathBuilder-for-Transformed%3CBuilder,+Transform%3E" class="anchor">§</a><h3 class="code-header">impl<Builder, Transform> <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a><Builder, Transform><div class="where">where
|
|
Builder: <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a>,
|
|
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>,</div></h3></section></div><script src="../../../../../../trait.impl/lyon_path/builder/trait.PathBuilder.js" data-ignore-extern-crates="lyon_path" async></script></section></div></main></body></html> |