deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
69
cosmic/widget/canvas/path/lyon_path/builder/index.html
Normal file
69
cosmic/widget/canvas/path/lyon_path/builder/index.html
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<!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="Path building utilities."><title>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 mod"><!--[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="#">Module builder</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#pathbuilder-or-svgpathbuilder" title="`PathBuilder` or `SvgPathBuilder`"><code>PathBuilder</code> or <code>SvgPathBuilder</code></a></li><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path</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></div><h1>Module <span>builder</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Path building utilities.</p>
|
||||
<h3 id="pathbuilder-or-svgpathbuilder"><a class="doc-anchor" href="#pathbuilder-or-svgpathbuilder">§</a><code>PathBuilder</code> or <code>SvgPathBuilder</code></h3>
|
||||
<p>Path can be built via either of two abstractions:</p>
|
||||
<ul>
|
||||
<li><a href="trait.PathBuilder.html">PathBuilder</a> is a simple and efficient interface which
|
||||
does not deal with any ambiguous cases.</li>
|
||||
<li><a href="trait.SvgPathBuilder.html">SvgPathBuilder</a> is a higher-level interface that
|
||||
follows SVG’s specification, removing the the burden of dealing with special cases
|
||||
from the user at a run-time cost.</li>
|
||||
</ul>
|
||||
<p><code>SvgPathBuilder</code> may be a better choice when interactive with SVG, or dealing with arbitrary
|
||||
input. <code>PathBuilder</code>. <code>PathBuilder</code> is probably a more useful trait to implement when creating
|
||||
a new path data structure since all <code>PathBuilder</code> implementations automatically get an
|
||||
<code>SvgPathBuilder</code> adapter (see the <code>with_svg</code> method). It may also make sense to use the
|
||||
<code>PathBuilder</code> API when following a specification that behaves like SVG paths or when no
|
||||
performance can be traded for convenience.</p>
|
||||
<h3 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h3>
|
||||
<p>The following example shows how to create a simple path using the
|
||||
<a href="trait.PathBuilder.html">PathBuilder</a> interface.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::point};
|
||||
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder();
|
||||
|
||||
<span class="comment">// All sub-paths *must* have be contained in a begin/end pair.
|
||||
</span>builder.begin(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
|
||||
builder.line_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>));
|
||||
builder.quadratic_bezier_to(point(<span class="number">2.0</span>, <span class="number">0.0</span>), point(<span class="number">2.0</span>, <span class="number">1.0</span>));
|
||||
builder.end(<span class="bool-val">false</span>);
|
||||
|
||||
builder.begin(point(<span class="number">10.0</span>, <span class="number">0.0</span>));
|
||||
builder.cubic_bezier_to(point(<span class="number">12.0</span>, <span class="number">2.0</span>), point(<span class="number">11.0</span>, <span class="number">2.0</span>), point(<span class="number">5.0</span>, <span class="number">0.0</span>));
|
||||
builder.close(); <span class="comment">// close() is equivalent to end(true).
|
||||
|
||||
</span><span class="kw">let </span>path = builder.build();</code></pre></div>
|
||||
<p>The same path can be built using the <code>SvgPathBuilder</code> API:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::{point, vector}, builder::SvgPathBuilder};
|
||||
|
||||
<span class="comment">// Use the SVG adapter.
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder().with_svg();
|
||||
|
||||
<span class="comment">// All sub-paths *must* have be contained in a begin/end pair.
|
||||
</span>builder.move_to(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
|
||||
builder.line_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>));
|
||||
builder.quadratic_bezier_to(point(<span class="number">2.0</span>, <span class="number">0.0</span>), point(<span class="number">2.0</span>, <span class="number">1.0</span>));
|
||||
<span class="comment">// No need to explicitly end a sub-path.
|
||||
|
||||
</span>builder.move_to(point(<span class="number">10.0</span>, <span class="number">0.0</span>));
|
||||
builder.relative_cubic_bezier_to(vector(<span class="number">2.0</span>, <span class="number">2.0</span>), vector(<span class="number">1.0</span>, <span class="number">2.0</span>), vector(-<span class="number">5.0</span>, <span class="number">0.0</span>));
|
||||
builder.close();
|
||||
|
||||
<span class="kw">let </span>path = builder.build();</code></pre></div>
|
||||
<p>Implementors of the <code>PathBuilder</code> trait automatically gain access to a few other adapters.
|
||||
For example a builder that approximates curves with a sequence of line segments:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::point};
|
||||
|
||||
<span class="kw">let </span>tolerance = <span class="number">0.05</span>;<span class="comment">// maximum distance between a curve and its approximation.
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder().flattened(tolerance);
|
||||
|
||||
builder.begin(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
|
||||
builder.quadratic_bezier_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>), point(<span class="number">1.0</span>, <span class="number">1.0</span>));
|
||||
builder.end(<span class="bool-val">true</span>);
|
||||
|
||||
<span class="comment">// The resulting path contains only Begin, Line and End events.
|
||||
</span><span class="kw">let </span>path = builder.build();</code></pre></div>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">Border<wbr>Radii</a></dt><dd>The radius of each corner of a rounded rectangle.</dd><dt><a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a></dt><dd>A Builder that approximates curves with successions of line segments.</dd><dt><a class="struct" href="struct.NoAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::NoAttributes">NoAttributes</a></dt><dd>A convenience wrapper for <code>PathBuilder</code> without custom attributes.</dd><dt><a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a></dt><dd>Builds a path with a transformation applied.</dd><dt><a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a></dt><dd>Implements an SVG-like building interface on top of a PathBuilder.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a></dt><dd>Builds a path.</dd><dt><a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">Path<wbr>Builder</a></dt><dd>The base path building interface.</dd><dt><a class="trait" href="trait.SvgPathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::SvgPathBuilder">SvgPath<wbr>Builder</a></dt><dd>A path building interface that tries to stay close to SVG’s path specification.
|
||||
<a href="https://svgwg.org/specs/paths/">https://svgwg.org/specs/paths/</a></dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["BorderRadii","Flattened","NoAttributes","Transformed","WithSvg"],"trait":["Build","PathBuilder","SvgPathBuilder"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
140
cosmic/widget/canvas/path/lyon_path/builder/struct.WithSvg.html
Normal file
140
cosmic/widget/canvas/path/lyon_path/builder/struct.WithSvg.html
Normal file
File diff suppressed because one or more lines are too long
16
cosmic/widget/canvas/path/lyon_path/builder/trait.Build.html
Normal file
16
cosmic/widget/canvas/path/lyon_path/builder/trait.Build.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!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="Builds a path."><title>Build 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="#">Build</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.PathType" title="PathType">PathType</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.build" title="build">build</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">Build</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 Build {
|
||||
type <a href="#associatedtype.PathType" class="associatedtype">PathType</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.build" class="fn">build</a>(self) -> Self::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Builds a path.</p>
|
||||
<p>This trait is separate from <code>PathBuilder</code> and <code>SvgPathBuilder</code> to allow them to
|
||||
be used as trait object (which isn’t possible when a method returns an associated
|
||||
type).</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.PathType" class="method"><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a></h4></section></summary><div class="docblock"><p>The type of object that is created by this builder.</p>
|
||||
</div></details></div><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.build" class="method"><h4 class="code-header">fn <a href="#tymethod.build" class="fn">build</a>(self) -> Self::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></summary><div class="docblock"><p>Builds a path object, consuming the builder.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderImpl" class="impl"><a href="#impl-Build-for-BuilderImpl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="../struct.BuilderImpl.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderImpl">BuilderImpl</a></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-1" class="associatedtype trait-impl"><a href="#associatedtype.PathType-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="struct" href="../struct.Path.html" title="struct cosmic::widget::canvas::path::lyon_path::Path">Path</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderWithAttributes" class="impl"><a href="#impl-Build-for-BuilderWithAttributes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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></summary><div class="impl-items"><section id="associatedtype.PathType-2" class="associatedtype trait-impl"><a href="#associatedtype.PathType-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="struct" href="../struct.Path.html" title="struct cosmic::widget::canvas::path::lyon_path::Path">Path</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Builder%3C'l%3E" class="impl"><a href="#impl-Build-for-Builder%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl<'l> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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></summary><div class="impl-items"><section id="associatedtype.PathType-3" class="associatedtype trait-impl"><a href="#associatedtype.PathType-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderWithAttributes%3C'l%3E" class="impl"><a href="#impl-Build-for-BuilderWithAttributes%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl<'l> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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></summary><div class="impl-items"><section id="associatedtype.PathType-4" class="associatedtype trait-impl"><a href="#associatedtype.PathType-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-NoAttributes%3CB%3E" class="impl"><a href="#impl-Build-for-NoAttributes%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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> + <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-5" class="associatedtype trait-impl"><a href="#associatedtype.PathType-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <B as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>>::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Flattened%3CBuilder%3E" class="impl"><a href="#impl-Build-for-Flattened%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl<Builder> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-6" class="associatedtype trait-impl"><a href="#associatedtype.PathType-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>>::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-WithSvg%3CBuilder%3E" class="impl"><a href="#impl-Build-for-WithSvg%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl<Builder> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</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> + <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-7" class="associatedtype trait-impl"><a href="#associatedtype.PathType-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>>::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Transformed%3CBuilder,+Transform%3E" class="impl"><a href="#impl-Build-for-Transformed%3CBuilder,+Transform%3E" class="anchor">§</a><h3 class="code-header">impl<Builder, Transform> <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</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.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-8" class="associatedtype trait-impl"><a href="#associatedtype.PathType-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>>::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details></div><script src="../../../../../../trait.impl/lyon_path/builder/trait.Build.js" data-ignore-extern-crates="lyon_path" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,228 @@
|
|||
<!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>
|
||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue