libcosmic/cosmic/widget/canvas/path/lyon_path/builder/trait.SvgPathBuilder.html
2026-04-18 20:11:25 +00:00

213 lines
No EOL
46 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="A path building interface that tries to stay close to SVGs path specification. https://svgwg.org/specs/paths/"><title>SvgPathBuilder 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="#">SvgPath<wbr>Builder</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.arc_to" title="arc_to">arc_to</a></li><li><a href="#tymethod.close" title="close">close</a></li><li><a href="#tymethod.cubic_bezier_to" title="cubic_bezier_to">cubic_bezier_to</a></li><li><a href="#tymethod.horizontal_line_to" title="horizontal_line_to">horizontal_line_to</a></li><li><a href="#tymethod.line_to" title="line_to">line_to</a></li><li><a href="#tymethod.move_to" title="move_to">move_to</a></li><li><a href="#tymethod.quadratic_bezier_to" title="quadratic_bezier_to">quadratic_bezier_to</a></li><li><a href="#tymethod.relative_arc_to" title="relative_arc_to">relative_arc_to</a></li><li><a href="#tymethod.relative_cubic_bezier_to" title="relative_cubic_bezier_to">relative_cubic_bezier_to</a></li><li><a href="#tymethod.relative_horizontal_line_to" title="relative_horizontal_line_to">relative_horizontal_line_to</a></li><li><a href="#tymethod.relative_line_to" title="relative_line_to">relative_line_to</a></li><li><a href="#tymethod.relative_move_to" title="relative_move_to">relative_move_to</a></li><li><a href="#tymethod.relative_quadratic_bezier_to" title="relative_quadratic_bezier_to">relative_quadratic_bezier_to</a></li><li><a href="#tymethod.relative_vertical_line_to" title="relative_vertical_line_to">relative_vertical_line_to</a></li><li><a href="#tymethod.smooth_cubic_bezier_to" title="smooth_cubic_bezier_to">smooth_cubic_bezier_to</a></li><li><a href="#tymethod.smooth_quadratic_bezier_to" title="smooth_quadratic_bezier_to">smooth_quadratic_bezier_to</a></li><li><a href="#tymethod.smooth_relative_cubic_bezier_to" title="smooth_relative_cubic_bezier_to">smooth_relative_cubic_bezier_to</a></li><li><a href="#tymethod.smooth_relative_quadratic_bezier_to" title="smooth_relative_quadratic_bezier_to">smooth_relative_quadratic_bezier_to</a></li><li><a href="#tymethod.vertical_line_to" title="vertical_line_to">vertical_line_to</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.add_polygon" title="add_polygon">add_polygon</a></li><li><a href="#method.reserve" title="reserve">reserve</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">SvgPathBuilder</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 SvgPathBuilder {
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 21 methods</span></summary> // Required methods
fn <a href="#tymethod.move_to" class="fn">move_to</a>(&amp;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>&lt;<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>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.close" class="fn">close</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.line_to" class="fn">line_to</a>(&amp;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>&lt;<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>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.quadratic_bezier_to" class="fn">quadratic_bezier_to</a>(
&amp;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>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.cubic_bezier_to" class="fn">cubic_bezier_to</a>(
&amp;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>&lt;<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>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_move_to" class="fn">relative_move_to</a>(&amp;mut self, to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_line_to" class="fn">relative_line_to</a>(&amp;mut self, to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_quadratic_bezier_to" class="fn">relative_quadratic_bezier_to</a>(
&amp;mut self,
ctrl: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_cubic_bezier_to" class="fn">relative_cubic_bezier_to</a>(
&amp;mut self,
ctrl1: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.smooth_cubic_bezier_to" class="fn">smooth_cubic_bezier_to</a>(
&amp;mut self,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.smooth_relative_cubic_bezier_to" class="fn">smooth_relative_cubic_bezier_to</a>(
&amp;mut self,
ctrl2: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.smooth_quadratic_bezier_to" class="fn">smooth_quadratic_bezier_to</a>(&amp;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>&lt;<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>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.smooth_relative_quadratic_bezier_to" class="fn">smooth_relative_quadratic_bezier_to</a>(
&amp;mut self,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.horizontal_line_to" class="fn">horizontal_line_to</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_horizontal_line_to" class="fn">relative_horizontal_line_to</a>(&amp;mut self, dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.vertical_line_to" class="fn">vertical_line_to</a>(&amp;mut self, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_vertical_line_to" class="fn">relative_vertical_line_to</a>(&amp;mut self, dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.arc_to" class="fn">arc_to</a>(
&amp;mut self,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
flags: <a class="struct" href="../struct.ArcFlags.html" title="struct cosmic::widget::canvas::path::lyon_path::ArcFlags">ArcFlags</a>,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.relative_arc_to" class="fn">relative_arc_to</a>(
&amp;mut self,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
flags: <a class="struct" href="../struct.ArcFlags.html" title="struct cosmic::widget::canvas::path::lyon_path::ArcFlags">ArcFlags</a>,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
);
// Provided methods
fn <a href="#method.reserve" class="fn">reserve</a>(&amp;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.add_polygon" class="fn">add_polygon</a>(&amp;mut self, polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a>&lt;'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;&gt;) { ... }
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A path building interface that tries to stay close to SVGs path specification.
<a href="https://svgwg.org/specs/paths/">https://svgwg.org/specs/paths/</a></p>
<p>Some of the wording in the documentation of this trait is borrowed from the SVG
specification.</p>
<p>Unlike <code>PathBuilder</code>, implementations of this trait are expected to deal with
various corners cases such as adding segments without starting a sub-path.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.move_to" class="method"><h4 class="code-header">fn <a href="#tymethod.move_to" class="fn">move_to</a>(&amp;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>&lt;<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>&gt;)</h4></section></summary><div class="docblock"><p>Start a new sub-path at the given position.</p>
<p>Corresponding SVG command: <code>M</code>.</p>
<p>This command establishes a new initial point and a new current point. The effect
is as if the “pen” were lifted and moved to a new location.
If a sub-path is in progress, it is ended without being closed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.close" class="method"><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Ends the current sub-path by connecting it back to its initial point.</p>
<p>Corresponding SVG command: <code>Z</code>.</p>
<p>A straight line is drawn from the current point to the initial point of the
current sub-path.
The current position is set to the initial position of the sub-path that was
closed.</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>(&amp;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>&lt;<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>&gt;)</h4></section></summary><div class="docblock"><p>Adds a line segment to the current sub-path.</p>
<p>Corresponding SVG command: <code>L</code>.</p>
<p>The segment starts at the builders current position.
If this is the very first command of the path (the builder therefore does not
have a current position), the <code>line_to</code> command is replaced with a <code>move_to(to)</code>.</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>(
&amp;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>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Adds a quadratic bézier segment to the current sub-path.</p>
<p>Corresponding SVG command: <code>Q</code>.</p>
<p>The segment starts at the builders current position.
If this is the very first command of the path (the builder therefore does not
have a current position), the <code>quadratic_bezier_to</code> command is replaced with
a <code>move_to(to)</code>.</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>(
&amp;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>&lt;<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>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Adds a cubic bézier segment to the current sub-path.</p>
<p>Corresponding SVG command: <code>C</code>.</p>
<p>The segment starts at the builders current position.
If this is the very first command of the path (the builder therefore does not
have a current position), the <code>cubic_bezier_to</code> command is replaced with
a <code>move_to(to)</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_move_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_move_to" class="fn">relative_move_to</a>(&amp;mut self, to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;)</h4></section></summary><div class="docblock"><p>Equivalent to <code>move_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>m</code>.</p>
<p>The provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_line_to" class="fn">relative_line_to</a>(&amp;mut self, to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;)</h4></section></summary><div class="docblock"><p>Equivalent to <code>line_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>l</code>.</p>
<p>The provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_quadratic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_quadratic_bezier_to" class="fn">relative_quadratic_bezier_to</a>(
&amp;mut self,
ctrl: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>quadratic_bezier_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>q</code>.</p>
<p>the provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_cubic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_cubic_bezier_to" class="fn">relative_cubic_bezier_to</a>(
&amp;mut self,
ctrl1: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>cubic_bezier_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>c</code>.</p>
<p>The provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.smooth_cubic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.smooth_cubic_bezier_to" class="fn">smooth_cubic_bezier_to</a>(
&amp;mut self,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>cubic_bezier_to</code> with implicit first control point.</p>
<p>Corresponding SVG command: <code>S</code>.</p>
<p>The first control point is assumed to be the reflection of the second
control point on the previous command relative to the current point.
If there is no previous command or if the previous command was not a
cubic bézier segment, the first control point is coincident with
the current position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.smooth_relative_cubic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.smooth_relative_cubic_bezier_to" class="fn">smooth_relative_cubic_bezier_to</a>(
&amp;mut self,
ctrl2: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>smooth_cubic_bezier_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>s</code>.</p>
<p>The provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.smooth_quadratic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.smooth_quadratic_bezier_to" class="fn">smooth_quadratic_bezier_to</a>(&amp;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>&lt;<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>&gt;)</h4></section></summary><div class="docblock"><p>Equivalent to <code>quadratic_bezier_to</code> with implicit control point.</p>
<p>Corresponding SVG command: <code>T</code>.</p>
<p>The control point is assumed to be the reflection of the control
point on the previous command relative to the current point.
If there is no previous command or if the previous command was not a
quadratic bézier segment, a line segment is added instead.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.smooth_relative_quadratic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.smooth_relative_quadratic_bezier_to" class="fn">smooth_relative_quadratic_bezier_to</a>(
&amp;mut self,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>smooth_quadratic_bezier_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>t</code>.</p>
<p>The provided coordinates are offsets relative to the current position of
the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.horizontal_line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.horizontal_line_to" class="fn">horizontal_line_to</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Adds an horizontal line segment.</p>
<p>Corresponding SVG command: <code>H</code>.</p>
<p>Equivalent to <code>line_to</code>, using the y coordinate of the current position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_horizontal_line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_horizontal_line_to" class="fn">relative_horizontal_line_to</a>(&amp;mut self, dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Adds an horizontal line segment in relative coordinates.</p>
<p>Corresponding SVG command: <code>l</code>.</p>
<p>Equivalent to <code>line_to</code>, using the y coordinate of the current position.
<code>dx</code> is the horizontal offset relative to the current position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.vertical_line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.vertical_line_to" class="fn">vertical_line_to</a>(&amp;mut self, y: <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 vertical line segment.</p>
<p>Corresponding SVG command: <code>V</code>.</p>
<p>Equivalent to <code>line_to</code>, using the x coordinate of the current position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_vertical_line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_vertical_line_to" class="fn">relative_vertical_line_to</a>(&amp;mut self, dy: <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 vertical line segment in relative coordinates.</p>
<p>Corresponding SVG command: <code>v</code>.</p>
<p>Equivalent to <code>line_to</code>, using the y coordinate of the current position.
<code>dy</code> is the horizontal offset relative to the current position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.arc_to" class="method"><h4 class="code-header">fn <a href="#tymethod.arc_to" class="fn">arc_to</a>(
&amp;mut self,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
flags: <a class="struct" href="../struct.ArcFlags.html" title="struct cosmic::widget::canvas::path::lyon_path::ArcFlags">ArcFlags</a>,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Adds an elliptical arc.</p>
<p>Corresponding SVG command: <code>A</code>.</p>
<p>The arc starts at the current point and ends at <code>to</code>.
The size and orientation of the ellipse are defined by <code>radii</code> and an <code>x_rotation</code>,
which indicates how the ellipse as a whole is rotated relative to the current coordinate
system. The center of the ellipse is calculated automatically to satisfy the constraints
imposed by the other parameters. the arc <code>flags</code> contribute to the automatic calculations
and help determine how the arc is built.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.relative_arc_to" class="method"><h4 class="code-header">fn <a href="#tymethod.relative_arc_to" class="fn">relative_arc_to</a>(
&amp;mut self,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
flags: <a class="struct" href="../struct.ArcFlags.html" title="struct cosmic::widget::canvas::path::lyon_path::ArcFlags">ArcFlags</a>,
to: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<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>&gt;,
)</h4></section></summary><div class="docblock"><p>Equivalent to <code>arc_to</code> in relative coordinates.</p>
<p>Corresponding SVG command: <code>a</code>.</p>
<p>The provided <code>to</code> coordinates are offsets relative to the current position of
the builder.</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.reserve" class="method"><h4 class="code-header">fn <a href="#method.reserve" class="fn">reserve</a>(&amp;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.add_polygon" class="method"><h4 class="code-header">fn <a href="#method.add_polygon" class="fn">add_polygon</a>(&amp;mut self, polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a>&lt;'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<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>&gt;&gt;)</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></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-SvgPathBuilder-for-WithSvg%3CBuilder%3E" class="impl"><a href="#impl-SvgPathBuilder-for-WithSvg%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder&gt; <a class="trait" href="trait.SvgPathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::SvgPathBuilder">SvgPathBuilder</a> for <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a>&lt;Builder&gt;<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></div><script src="../../../../../../trait.impl/lyon_path/builder/trait.SvgPathBuilder.js" data-ignore-extern-crates="lyon_path" async></script></section></div></main></body></html>