deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
<!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="API documentation for the Rust `aspect_ratio_container` fn in crate `cosmic`."><title>aspect_ratio_container in cosmic::widget::aspect_ratio - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>aspect_<wbr>ratio</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">aspect_ratio</a></div><h1>Function <span class="fn">aspect_ratio_container</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/aspect_ratio.rs.html#17-25">Source</a> </span></div><pre class="rust item-decl"><code>pub fn aspect_ratio_container<'a, Message: 'static, T>(
|
||||
content: T,
|
||||
ratio: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
) -> <a class="struct" href="struct.AspectRatio.html" title="struct cosmic::widget::aspect_ratio::AspectRatio">AspectRatio</a><'a, Message, <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>><div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../iced/daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>, <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>>>,</div></code></pre></section></div></main></body></html>
|
||||
2
cosmic/widget/aspect_ratio/index.html
Normal file
2
cosmic/widget/aspect_ratio/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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 container which constraints itself to a specific aspect ratio."><title>cosmic::widget::aspect_ratio - 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 aspect_<wbr>ratio</a></h2><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><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>aspect_ratio</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/aspect_ratio.rs.html#1-289">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A container which constraints itself to a specific aspect ratio.</p>
|
||||
</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.AspectRatio.html" title="struct cosmic::widget::aspect_ratio::AspectRatio">Aspect<wbr>Ratio</a></dt><dd>A container which constraints itself to a specific aspect ratio.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></dt><dd>The appearance of a container.</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.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.aspect_ratio_container.html" title="fn cosmic::widget::aspect_ratio::aspect_ratio_container">aspect_<wbr>ratio_<wbr>container</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/aspect_ratio/sidebar-items.js
Normal file
1
cosmic/widget/aspect_ratio/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["aspect_ratio_container"],"struct":["AspectRatio","Style"],"trait":["Catalog"]};
|
||||
132
cosmic/widget/aspect_ratio/struct.AspectRatio.html
Normal file
132
cosmic/widget/aspect_ratio/struct.AspectRatio.html
Normal file
File diff suppressed because one or more lines are too long
88
cosmic/widget/aspect_ratio/struct.Style.html
Normal file
88
cosmic/widget/aspect_ratio/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/aspect_ratio/trait.Catalog.html
Normal file
11
cosmic/widget/aspect_ratio/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!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 theme catalog of a `Container`."><title>Catalog in cosmic::widget::aspect_ratio - 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="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>aspect_<wbr>ratio</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">aspect_ratio</a></div><h1>Trait <span class="trait">Catalog</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 Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</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.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</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.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../src/cosmic/theme/style/iced.rs.html#467-671">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/cosmic/theme/style/iced.rs.html#468">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../style/enum.Container.html" title="enum cosmic::style::Container">Container</a><'a></h4></section></div></details></div><script src="../../../trait.impl/iced_widget/container/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
7
cosmic/widget/autosize/fn.autosize.html
Normal file
7
cosmic/widget/autosize/fn.autosize.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!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="API documentation for the Rust `autosize` fn in crate `cosmic`."><title>autosize in cosmic::widget::autosize - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>autosize</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">autosize</a></div><h1>Function <span class="fn">autosize</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/autosize.rs.html#12-22">Source</a> </span></div><pre class="rust item-decl"><code>pub fn autosize<'a, Message: 'static, Theme, E>(
|
||||
content: E,
|
||||
id: <a class="struct" href="../struct.Id.html" title="struct cosmic::widget::Id">Id</a>,
|
||||
) -> <a class="struct" href="struct.Autosize.html" title="struct cosmic::widget::autosize::Autosize">Autosize</a><'a, Message, Theme, <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>><div class="where">where
|
||||
E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../iced/daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>>>,
|
||||
Theme: <a class="trait" href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a>,
|
||||
<Theme as <a class="trait" href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a>>::<a class="associatedtype" href="../aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="../../style/enum.Container.html" title="enum cosmic::style::Container">Container</a><'a>>,</div></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>autosize</code></strong> only.</div></span></section></div></main></body></html>
|
||||
2
cosmic/widget/autosize/index.html
Normal file
2
cosmic/widget/autosize/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Autosize Container, which will resize the window to its contents."><title>cosmic::widget::autosize - 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 autosize</a></h2><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><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>autosize</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/autosize.rs.html#1-312">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>autosize</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Autosize Container, which will resize the window to its contents.</p>
|
||||
</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.Autosize.html" title="struct cosmic::widget::autosize::Autosize">Autosize</a></dt><dd>An element decorating some content.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::widget::autosize::Style">Style</a></dt><dd>The appearance of a container.</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.Catalog.html" title="trait cosmic::widget::autosize::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.autosize.html" title="fn cosmic::widget::autosize::autosize">autosize</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/autosize/sidebar-items.js
Normal file
1
cosmic/widget/autosize/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["autosize"],"struct":["Autosize","Style"],"trait":["Catalog"]};
|
||||
123
cosmic/widget/autosize/struct.Autosize.html
Normal file
123
cosmic/widget/autosize/struct.Autosize.html
Normal file
File diff suppressed because one or more lines are too long
88
cosmic/widget/autosize/struct.Style.html
Normal file
88
cosmic/widget/autosize/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/autosize/trait.Catalog.html
Normal file
11
cosmic/widget/autosize/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!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 theme catalog of a `Container`."><title>Catalog in cosmic::widget::autosize - 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="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>autosize</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">autosize</a></div><h1>Trait <span class="trait">Catalog</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 Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="../aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>autosize</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</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.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</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.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="../aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="../aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../src/cosmic/theme/style/iced.rs.html#467-671">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/cosmic/theme/style/iced.rs.html#468">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../style/enum.Container.html" title="enum cosmic::style::Container">Container</a><'a></h4></section></div></details></div><script src="../../../trait.impl/iced_widget/container/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
4
cosmic/widget/button/fn.custom.html
Normal file
4
cosmic/widget/button/fn.custom.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 button with a custom element for its content."><title>custom in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">custom</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/mod.rs.html#47-51">Source</a> </span></div><pre class="rust item-decl"><code>pub fn custom<'a, Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="type" href="../../type.Element.html" title="type cosmic::Element">Element</a><'a, Message>>,
|
||||
) -> <a class="struct" href="../struct.Button.html" title="struct cosmic::widget::Button">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A button with a custom element for its content.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
5
cosmic/widget/button/fn.custom_image_button.html
Normal file
5
cosmic/widget/button/fn.custom_image_button.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!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="An image button which may contain any widget as its content."><title>custom_image_button in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">custom_image_button</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/mod.rs.html#54-59">Source</a> </span></div><pre class="rust item-decl"><code>pub fn custom_image_button<'a, Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="type" href="../../type.Element.html" title="type cosmic::Element">Element</a><'a, Message>>,
|
||||
on_remove: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Message>,
|
||||
) -> <a class="struct" href="../struct.Button.html" title="struct cosmic::widget::Button">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An image button which may contain any widget as its content.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/button/fn.destructive.html
Normal file
4
cosmic/widget/button/fn.destructive.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 text button with the destructive style"><title>destructive in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">destructive</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/text.rs.html#13-17">Source</a> </span></div><pre class="rust item-decl"><code>pub fn destructive<'a, Message>(
|
||||
label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>,
|
||||
) -> <a class="type" href="../type.TextButton.html" title="type cosmic::widget::TextButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A text button with the destructive style</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
9
cosmic/widget/button/fn.draw.html
Normal file
9
cosmic/widget/button/fn.draw.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!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="API documentation for the Rust `draw` fn in crate `cosmic`."><title>draw in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">draw</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/widget.rs.html#867-981">Source</a> </span></div><pre class="rust item-decl"><code>pub fn draw<Renderer: <a class="trait" href="../../iced/advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>, Theme>(
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>,
|
||||
bounds: <a class="struct" href="../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
viewport_bounds: <a class="struct" href="../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
styling: &<a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>,
|
||||
draw_contents: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>, &<a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>),
|
||||
is_image: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
)<div class="where">where
|
||||
Theme: <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::button::Catalog">Catalog</a>,</div></code></pre></section></div></main></body></html>
|
||||
2
cosmic/widget/button/fn.focus.html
Normal file
2
cosmic/widget/button/fn.focus.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Produces a `Task` that focuses the `Button` with the given `Id`."><title>focus in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">focus</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/widget.rs.html#1023-1025">Source</a> </span></div><pre class="rust item-decl"><code>pub fn focus<Message: 'static>(id: <a class="struct" href="../struct.Id.html" title="struct cosmic::widget::Id">Id</a>) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Produces a <a href="../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that focuses the <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a> with the given <a href="../struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/button/fn.icon.html
Normal file
2
cosmic/widget/button/fn.icon.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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 button constructed from an icon handle, using icon button styling."><title>icon in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">icon</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/icon.rs.html#21-27">Source</a> </span></div><pre class="rust item-decl"><code>pub fn icon<'a, Message>(handle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a>>) -> <a class="type" href="../type.IconButton.html" title="type cosmic::widget::IconButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A button constructed from an icon handle, using icon button styling.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/button/fn.image.html
Normal file
2
cosmic/widget/button/fn.image.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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 button constructed from an image handle, using image button styling."><title>image in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">image</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/image.rs.html#15-21">Source</a> </span></div><pre class="rust item-decl"><code>pub fn image<'a, Message>(handle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>> + 'a) -> <a class="type" href="type.ImageButton.html" title="type cosmic::widget::button::ImageButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A button constructed from an image handle, using image button styling.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
9
cosmic/widget/button/fn.layout.html
Normal file
9
cosmic/widget/button/fn.layout.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!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="Computes the layout of a `Button`."><title>layout in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">layout</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/widget.rs.html#984-1004">Source</a> </span></div><pre class="rust item-decl"><code>pub fn layout<Renderer>(
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
limits: &<a class="struct" href="../../iced/struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>,
|
||||
width: <a class="enum" href="../../iced/enum.Length.html" title="enum cosmic::iced::Length">Length</a>,
|
||||
height: <a class="enum" href="../../iced/enum.Length.html" title="enum cosmic::iced::Length">Length</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
layout_content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>, &<a class="struct" href="../../iced/struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>) -> <a class="struct" href="../../iced/daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a>,
|
||||
) -> <a class="struct" href="../../iced/daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Computes the layout of a <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/button/fn.link.html
Normal file
4
cosmic/widget/button/fn.link.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 hyperlink button."><title>link in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">link</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/link.rs.html#23-30">Source</a> </span></div><pre class="rust item-decl"><code>pub fn link<'a, Message>(
|
||||
label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>> + 'static,
|
||||
) -> <a class="type" href="../type.LinkButton.html" title="type cosmic::widget::LinkButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A hyperlink button.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/widget/button/fn.mouse_interaction.html
Normal file
6
cosmic/widget/button/fn.mouse_interaction.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!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="Returns the `mouse::Interaction` of a `Button`."><title>mouse_interaction in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">mouse_interaction</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/widget.rs.html#1008-1020">Source</a> </span></div><pre class="rust item-decl"><code>pub fn mouse_interaction(
|
||||
layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
cursor: <a class="enum" href="../../iced/mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
is_enabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
) -> <a class="enum" href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the <a href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction"><code>mouse::Interaction</code></a> of a <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/button/fn.standard.html
Normal file
4
cosmic/widget/button/fn.standard.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 text button with the standard style"><title>standard in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">standard</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/text.rs.html#27-29">Source</a> </span></div><pre class="rust item-decl"><code>pub fn standard<'a, Message>(
|
||||
label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>,
|
||||
) -> <a class="type" href="../type.TextButton.html" title="type cosmic::widget::TextButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A text button with the standard style</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/button/fn.suggested.html
Normal file
4
cosmic/widget/button/fn.suggested.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 text button with the suggested style"><title>suggested in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">suggested</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/text.rs.html#20-24">Source</a> </span></div><pre class="rust item-decl"><code>pub fn suggested<'a, Message>(
|
||||
label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>,
|
||||
) -> <a class="type" href="../type.TextButton.html" title="type cosmic::widget::TextButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A text button with the suggested style</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/button/fn.text.html
Normal file
2
cosmic/widget/button/fn.text.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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 text button with the text style"><title>text in cosmic::widget::button - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Function <span class="fn">text</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/text.rs.html#32-36">Source</a> </span></div><pre class="rust item-decl"><code>pub fn text<'a, Message>(label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>) -> <a class="type" href="../type.TextButton.html" title="type cosmic::widget::TextButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A text button with the text style</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
11
cosmic/widget/button/icon/fn.icon.html
Normal file
11
cosmic/widget/button/icon/fn.icon.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.icon.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.icon.html">../../../../cosmic/widget/button/fn.icon.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.icon.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/icon/type.Button.html
Normal file
11
cosmic/widget/button/icon/type.Button.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/type.IconButton.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/type.IconButton.html">../../../../cosmic/widget/type.IconButton.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/type.IconButton.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/image/fn.image.html
Normal file
11
cosmic/widget/button/image/fn.image.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.image.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.image.html">../../../../cosmic/widget/button/fn.image.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.image.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/image/type.Button.html
Normal file
11
cosmic/widget/button/image/type.Button.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/type.ImageButton.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/type.ImageButton.html">../../../../cosmic/widget/button/type.ImageButton.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/type.ImageButton.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
2
cosmic/widget/button/index.html
Normal file
2
cosmic/widget/button/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Button widgets for COSMIC applications."><title>cosmic::widget::button - 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 button</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>button</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/mod.rs.html#4-132">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Button widgets for COSMIC applications.</p>
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.ButtonClass"><code>pub use crate::theme::<a class="enum" href="../../style/enum.Button.html" title="enum cosmic::style::Button">Button</a> as ButtonClass;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="link/index.html" title="mod cosmic::widget::button::link">link</a></dt><dd>Hyperlink button widget</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Builder.html" title="struct cosmic::widget::button::Builder">Builder</a></dt><dd>A builder for constructing a custom <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a>.</dd><dt><a class="struct" href="struct.Button.html" title="struct cosmic::widget::button::Button">Button</a></dt><dd>A generic button which emits a message when pressed.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></dt><dd>The appearance of a button.</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.Catalog.html" title="trait cosmic::widget::button::Catalog">Catalog</a></dt><dd>A set of rules that dictate the style of a button.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.custom.html" title="fn cosmic::widget::button::custom">custom</a></dt><dd>A button with a custom element for its content.</dd><dt><a class="fn" href="fn.custom_image_button.html" title="fn cosmic::widget::button::custom_image_button">custom_<wbr>image_<wbr>button</a></dt><dd>An image button which may contain any widget as its content.</dd><dt><a class="fn" href="fn.destructive.html" title="fn cosmic::widget::button::destructive">destructive</a></dt><dd>A text button with the destructive style</dd><dt><a class="fn" href="fn.draw.html" title="fn cosmic::widget::button::draw">draw</a></dt><dt><a class="fn" href="fn.focus.html" title="fn cosmic::widget::button::focus">focus</a></dt><dd>Produces a <a href="../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that focuses the <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a> with the given <a href="../struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</dd><dt><a class="fn" href="fn.icon.html" title="fn cosmic::widget::button::icon">icon</a></dt><dd>A button constructed from an icon handle, using icon button styling.</dd><dt><a class="fn" href="fn.image.html" title="fn cosmic::widget::button::image">image</a></dt><dd>A button constructed from an image handle, using image button styling.</dd><dt><a class="fn" href="fn.layout.html" title="fn cosmic::widget::button::layout">layout</a></dt><dd>Computes the layout of a <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a>.</dd><dt><a class="fn" href="fn.link.html" title="fn cosmic::widget::button::link">link</a></dt><dd>A hyperlink button.</dd><dt><a class="fn" href="fn.mouse_interaction.html" title="fn cosmic::widget::button::mouse_interaction">mouse_<wbr>interaction</a></dt><dd>Returns the <a href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction"><code>mouse::Interaction</code></a> of a <a href="../struct.Button.html" title="struct cosmic::widget::Button"><code>Button</code></a>.</dd><dt><a class="fn" href="fn.standard.html" title="fn cosmic::widget::button::standard">standard</a></dt><dd>A text button with the standard style</dd><dt><a class="fn" href="fn.suggested.html" title="fn cosmic::widget::button::suggested">suggested</a></dt><dd>A text button with the suggested style</dd><dt><a class="fn" href="fn.text.html" title="fn cosmic::widget::button::text">text</a></dt><dd>A text button with the text style</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.IconButton.html" title="type cosmic::widget::button::IconButton">Icon<wbr>Button</a></dt><dt><a class="type" href="type.ImageButton.html" title="type cosmic::widget::button::ImageButton">Image<wbr>Button</a></dt><dt><a class="type" href="type.LinkButton.html" title="type cosmic::widget::button::LinkButton">Link<wbr>Button</a></dt><dt><a class="type" href="type.TextButton.html" title="type cosmic::widget::button::TextButton">Text<wbr>Button</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/button/link/fn.icon.html
Normal file
1
cosmic/widget/button/link/fn.icon.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `icon` fn in crate `cosmic`."><title>icon in cosmic::widget::button::link - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button::<wbr>link</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">button</a>::<wbr><a href="index.html">link</a></div><h1>Function <span class="fn">icon</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/button/link.rs.html#63-65">Source</a> </span></div><pre class="rust item-decl"><code>pub fn icon() -> <a class="struct" href="../../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a></code></pre></section></div></main></body></html>
|
||||
4
cosmic/widget/button/link/fn.link.html
Normal file
4
cosmic/widget/button/link/fn.link.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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 hyperlink button."><title>link in cosmic::widget::button::link - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>button::<wbr>link</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">button</a>::<wbr><a href="index.html">link</a></div><h1>Function <span class="fn">link</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/button/link.rs.html#23-30">Source</a> </span></div><pre class="rust item-decl"><code>pub fn link<'a, Message>(
|
||||
label: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>> + 'static,
|
||||
) -> <a class="type" href="../../type.LinkButton.html" title="type cosmic::widget::LinkButton">Button</a><'a, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A hyperlink button.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/button/link/index.html
Normal file
2
cosmic/widget/button/link/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Hyperlink button widget"><title>cosmic::widget::button::link - 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 link</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>button</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">button</a></div><h1>Module <span>link</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/button/link.rs.html#4-121">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Hyperlink button widget</p>
|
||||
</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.Hyperlink.html" title="struct cosmic::widget::button::link::Hyperlink">Hyperlink</a></dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.icon.html" title="fn cosmic::widget::button::link::icon">icon</a></dt><dt><a class="fn" href="fn.link.html" title="fn cosmic::widget::button::link::link">link</a></dt><dd>A hyperlink button.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.Button.html" title="type cosmic::widget::button::link::Button">Button</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/button/link/sidebar-items.js
Normal file
1
cosmic/widget/button/link/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["icon","link"],"struct":["Hyperlink"],"type":["Button"]};
|
||||
65
cosmic/widget/button/link/struct.Hyperlink.html
Normal file
65
cosmic/widget/button/link/struct.Hyperlink.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/button/link/type.Button.html
Normal file
1
cosmic/widget/button/link/type.Button.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/button/sidebar-items.js
Normal file
1
cosmic/widget/button/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["custom","custom_image_button","destructive","draw","focus","icon","image","layout","link","mouse_interaction","standard","suggested","text"],"mod":["link"],"struct":["Builder","Button","Style"],"trait":["Catalog"],"type":["IconButton","ImageButton","LinkButton","TextButton"]};
|
||||
87
cosmic/widget/button/struct.Builder.html
Normal file
87
cosmic/widget/button/struct.Builder.html
Normal file
File diff suppressed because one or more lines are too long
161
cosmic/widget/button/struct.Button.html
Normal file
161
cosmic/widget/button/struct.Button.html
Normal file
File diff suppressed because one or more lines are too long
90
cosmic/widget/button/struct.Style.html
Normal file
90
cosmic/widget/button/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/button/style/struct.Style.html
Normal file
11
cosmic/widget/button/style/struct.Style.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/struct.Style.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/struct.Style.html">../../../../cosmic/widget/button/struct.Style.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/struct.Style.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/style/trait.Catalog.html
Normal file
11
cosmic/widget/button/style/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/trait.Catalog.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/trait.Catalog.html">../../../../cosmic/widget/button/trait.Catalog.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/trait.Catalog.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/text/fn.destructive.html
Normal file
11
cosmic/widget/button/text/fn.destructive.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.destructive.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.destructive.html">../../../../cosmic/widget/button/fn.destructive.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.destructive.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/text/fn.standard.html
Normal file
11
cosmic/widget/button/text/fn.standard.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.standard.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.standard.html">../../../../cosmic/widget/button/fn.standard.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.standard.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/text/fn.suggested.html
Normal file
11
cosmic/widget/button/text/fn.suggested.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.suggested.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.suggested.html">../../../../cosmic/widget/button/fn.suggested.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.suggested.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/text/fn.text.html
Normal file
11
cosmic/widget/button/text/fn.text.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.text.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.text.html">../../../../cosmic/widget/button/fn.text.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.text.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/text/type.Button.html
Normal file
11
cosmic/widget/button/text/type.Button.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/type.TextButton.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/type.TextButton.html">../../../../cosmic/widget/type.TextButton.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/type.TextButton.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
36
cosmic/widget/button/trait.Catalog.html
Normal file
36
cosmic/widget/button/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<!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 set of rules that dictate the style of a button."><title>Catalog in cosmic::widget::button - 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="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.active" title="active">active</a></li><li><a href="#tymethod.disabled" title="disabled">disabled</a></li><li><a href="#tymethod.hovered" title="hovered">hovered</a></li><li><a href="#tymethod.pressed" title="pressed">pressed</a></li><li><a href="#tymethod.selection_background" title="selection_background">selection_background</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.drop_target" title="drop_target">drop_target</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>button</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">button</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/button/style.rs.html#71-94">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.active" class="fn">active</a>(
|
||||
&self,
|
||||
focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>,
|
||||
) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.disabled" class="fn">disabled</a>(&self, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.hovered" class="fn">hovered</a>(
|
||||
&self,
|
||||
focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>,
|
||||
) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.pressed" class="fn">pressed</a>(
|
||||
&self,
|
||||
focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>,
|
||||
) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.selection_background" class="fn">selection_background</a>(&self) -> <a class="enum" href="../../iced/enum.Background.html" title="enum cosmic::iced::Background">Background</a>;
|
||||
|
||||
// Provided method
|
||||
fn <a href="#method.drop_target" class="fn">drop_target</a>(&self, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a> { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A set of rules that dictate the style of a button.</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.Class" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#73">Source</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a></h4></section></summary><div class="docblock"><p>The supported style of the [<code>StyleSheet</code>].</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.active" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#76">Source</a><h4 class="code-header">fn <a href="#tymethod.active" class="fn">active</a>(&self, focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>Produces the active [<code>Appearance</code>] of a button.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.disabled" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#79">Source</a><h4 class="code-header">fn <a href="#tymethod.disabled" class="fn">disabled</a>(&self, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>Produces the disabled [<code>Appearance</code>] of a button.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.hovered" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#87">Source</a><h4 class="code-header">fn <a href="#tymethod.hovered" class="fn">hovered</a>(&self, focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>Produces the hovered [<code>Appearance</code>] of a button.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.pressed" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#90">Source</a><h4 class="code-header">fn <a href="#tymethod.pressed" class="fn">pressed</a>(&self, focused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>Produces the pressed [<code>Appearance</code>] of a button.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.selection_background" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#93">Source</a><h4 class="code-header">fn <a href="#tymethod.selection_background" class="fn">selection_background</a>(&self) -> <a class="enum" href="../../iced/enum.Background.html" title="enum cosmic::iced::Background">Background</a></h4></section></summary><div class="docblock"><p>Background color of the selection indicator</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.drop_target" class="method"><a class="src rightside" href="../../../src/cosmic/widget/button/style.rs.html#82-84">Source</a><h4 class="code-header">fn <a href="#method.drop_target" class="fn">drop_target</a>(&self, style: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::button::Catalog::Class">Class</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>[<code>Appearance</code>] when the button is the target of a DND operation.</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-Catalog-for-Theme" class="impl"><a class="src rightside" href="../../../src/cosmic/theme/style/button.rs.html#192-301">Source</a><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::button::Catalog">Catalog</a> for <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/cosmic/theme/style/button.rs.html#193">Source</a><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a> = <a class="enum" href="../../style/enum.Button.html" title="enum cosmic::style::Button">Button</a></h4></section></div></details></div><script src="../../../trait.impl/cosmic/widget/button/style/trait.Catalog.js" async></script></section></div></main></body></html>
|
||||
5
cosmic/widget/button/type.IconButton.html
Normal file
5
cosmic/widget/button/type.IconButton.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/button/type.ImageButton.html
Normal file
1
cosmic/widget/button/type.ImageButton.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/button/type.LinkButton.html
Normal file
1
cosmic/widget/button/type.LinkButton.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/button/type.TextButton.html
Normal file
1
cosmic/widget/button/type.TextButton.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/button/widget/fn.draw.html
Normal file
11
cosmic/widget/button/widget/fn.draw.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.draw.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.draw.html">../../../../cosmic/widget/button/fn.draw.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.draw.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/widget/fn.focus.html
Normal file
11
cosmic/widget/button/widget/fn.focus.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.focus.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.focus.html">../../../../cosmic/widget/button/fn.focus.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.focus.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/widget/fn.layout.html
Normal file
11
cosmic/widget/button/widget/fn.layout.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.layout.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.layout.html">../../../../cosmic/widget/button/fn.layout.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.layout.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/widget/fn.mouse_interaction.html
Normal file
11
cosmic/widget/button/widget/fn.mouse_interaction.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/button/fn.mouse_interaction.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/button/fn.mouse_interaction.html">../../../../cosmic/widget/button/fn.mouse_interaction.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/button/fn.mouse_interaction.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/button/widget/struct.Button.html
Normal file
11
cosmic/widget/button/widget/struct.Button.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/struct.Button.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/struct.Button.html">../../../../cosmic/widget/struct.Button.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/struct.Button.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
8
cosmic/widget/calendar/fn.calendar.html
Normal file
8
cosmic/widget/calendar/fn.calendar.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<!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 widget that displays an interactive calendar."><title>calendar in cosmic::widget::calendar - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>calendar</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">calendar</a></div><h1>Function <span class="fn">calendar</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/calendar.rs.html#17-31">Source</a> </span></div><pre class="rust item-decl"><code>pub fn calendar<M>(
|
||||
model: &<a class="struct" href="struct.CalendarModel.html" title="struct cosmic::widget::calendar::CalendarModel">CalendarModel</a>,
|
||||
on_select: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Date) -> M + 'static,
|
||||
on_prev: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> M + 'static,
|
||||
on_next: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> M + 'static,
|
||||
first_day_of_week: Weekday,
|
||||
) -> <a class="struct" href="../struct.Calendar.html" title="struct cosmic::widget::Calendar">Calendar</a><'_, M></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A widget that displays an interactive calendar.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/calendar/fn.get_calendar_first.html
Normal file
2
cosmic/widget/calendar/fn.get_calendar_first.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Gets the first date that will be visible on the calendar"><title>get_calendar_first in cosmic::widget::calendar - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>calendar</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">calendar</a></div><h1>Function <span class="fn">get_calendar_first</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/calendar.rs.html#262-266">Source</a> </span></div><pre class="rust item-decl"><code>pub fn get_calendar_first(year: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>, month: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>, from_weekday: Weekday) -> Date</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Gets the first date that will be visible on the calendar</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
1
cosmic/widget/calendar/fn.set_day.html
Normal file
1
cosmic/widget/calendar/fn.set_day.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `set_day` fn in crate `cosmic`."><title>set_day in cosmic::widget::calendar - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>calendar</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">calendar</a></div><h1>Function <span class="fn">set_day</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/calendar.rs.html#33-39">Source</a> </span></div><pre class="rust item-decl"><code>pub fn set_day(date_selected: Date, day: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> Date</code></pre></section></div></main></body></html>
|
||||
2
cosmic/widget/calendar/index.html
Normal file
2
cosmic/widget/calendar/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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 widget that displays an interactive calendar."><title>cosmic::widget::calendar - 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 calendar</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>calendar</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/calendar.rs.html#4-266">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A widget that displays an interactive calendar.</p>
|
||||
</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.Calendar.html" title="struct cosmic::widget::calendar::Calendar">Calendar</a></dt><dt><a class="struct" href="struct.CalendarModel.html" title="struct cosmic::widget::calendar::CalendarModel">Calendar<wbr>Model</a></dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.calendar.html" title="fn cosmic::widget::calendar::calendar">calendar</a></dt><dd>A widget that displays an interactive calendar.</dd><dt><a class="fn" href="fn.get_calendar_first.html" title="fn cosmic::widget::calendar::get_calendar_first">get_<wbr>calendar_<wbr>first</a></dt><dd>Gets the first date that will be visible on the calendar</dd><dt><a class="fn" href="fn.set_day.html" title="fn cosmic::widget::calendar::set_day">set_day</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/calendar/sidebar-items.js
Normal file
1
cosmic/widget/calendar/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["calendar","get_calendar_first","set_day"],"struct":["Calendar","CalendarModel"]};
|
||||
61
cosmic/widget/calendar/struct.Calendar.html
Normal file
61
cosmic/widget/calendar/struct.Calendar.html
Normal file
File diff suppressed because one or more lines are too long
88
cosmic/widget/calendar/struct.CalendarModel.html
Normal file
88
cosmic/widget/calendar/struct.CalendarModel.html
Normal file
File diff suppressed because one or more lines are too long
89
cosmic/widget/canvas/enum.Event.html
Normal file
89
cosmic/widget/canvas/enum.Event.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/widget/canvas/enum.Gradient.html
Normal file
76
cosmic/widget/canvas/enum.Gradient.html
Normal file
File diff suppressed because one or more lines are too long
78
cosmic/widget/canvas/enum.LineCap.html
Normal file
78
cosmic/widget/canvas/enum.LineCap.html
Normal file
File diff suppressed because one or more lines are too long
77
cosmic/widget/canvas/enum.LineJoin.html
Normal file
77
cosmic/widget/canvas/enum.LineJoin.html
Normal file
File diff suppressed because one or more lines are too long
75
cosmic/widget/canvas/enum.Style.html
Normal file
75
cosmic/widget/canvas/enum.Style.html
Normal file
File diff suppressed because one or more lines are too long
81
cosmic/widget/canvas/fill/enum.Rule.html
Normal file
81
cosmic/widget/canvas/fill/enum.Rule.html
Normal file
File diff suppressed because one or more lines are too long
75
cosmic/widget/canvas/fill/enum.Style.html
Normal file
75
cosmic/widget/canvas/fill/enum.Style.html
Normal file
File diff suppressed because one or more lines are too long
3
cosmic/widget/canvas/fill/index.html
Normal file
3
cosmic/widget/canvas/fill/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="Fill `Geometry` with a certain style."><title>cosmic::widget::canvas::fill - 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 fill</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>fill</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>Fill <a href="../../../iced/daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="associated type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry"><code>Geometry</code></a> with a certain style.</p>
|
||||
</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.Fill.html" title="struct cosmic::widget::canvas::fill::Fill">Fill</a></dt><dd>The style used to fill geometry.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Rule.html" title="enum cosmic::widget::canvas::fill::Rule">Rule</a></dt><dd>The fill rule defines how to determine what is inside and what is outside of
|
||||
a shape.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::widget::canvas::fill::Style">Style</a></dt><dd>The coloring style of some drawing.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/canvas/fill/sidebar-items.js
Normal file
1
cosmic/widget/canvas/fill/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Rule","Style"],"struct":["Fill"]};
|
||||
78
cosmic/widget/canvas/fill/struct.Fill.html
Normal file
78
cosmic/widget/canvas/fill/struct.Fill.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/widget/canvas/gradient/enum.Gradient.html
Normal file
76
cosmic/widget/canvas/gradient/enum.Gradient.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/widget/canvas/gradient/fn.pack.html
Normal file
2
cosmic/widget/canvas/gradient/fn.pack.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Creates a new `Packed` gradient for use in shader code."><title>pack in cosmic::widget::canvas::gradient - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>gradient</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">gradient</a></div><h1>Function <span class="fn">pack</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 fn pack(gradient: &<a class="enum" href="../../../iced/enum.Gradient.html" title="enum cosmic::iced::Gradient">Gradient</a>, bounds: <a class="struct" href="../../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) -> <a class="struct" href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed">Packed</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed"><code>Packed</code></a> gradient for use in shader code.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/widget/canvas/gradient/index.html
Normal file
3
cosmic/widget/canvas/gradient/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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 gradient that can be used as a fill for some geometry."><title>cosmic::widget::canvas::gradient - 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 gradient</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>gradient</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>A gradient that can be used as a fill for some geometry.</p>
|
||||
<p>For a gradient that you can use as a background variant for a widget, see <a href="../enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient"><code>Gradient</code></a>.</p>
|
||||
</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.Linear.html" title="struct cosmic::widget::canvas::gradient::Linear">Linear</a></dt><dd>A linear gradient.</dd><dt><a class="struct" href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed">Packed</a></dt><dd>Packed <a href="../enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient"><code>Gradient</code></a> data for use in shader code.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Gradient.html" title="enum cosmic::widget::canvas::gradient::Gradient">Gradient</a></dt><dd>A fill which linearly interpolates colors along a direction.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.pack.html" title="fn cosmic::widget::canvas::gradient::pack">pack</a></dt><dd>Creates a new <a href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed"><code>Packed</code></a> gradient for use in shader code.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/canvas/gradient/sidebar-items.js
Normal file
1
cosmic/widget/canvas/gradient/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Gradient"],"fn":["pack"],"struct":["Linear","Packed"]};
|
||||
84
cosmic/widget/canvas/gradient/struct.Linear.html
Normal file
84
cosmic/widget/canvas/gradient/struct.Linear.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/widget/canvas/gradient/struct.Packed.html
Normal file
76
cosmic/widget/canvas/gradient/struct.Packed.html
Normal file
File diff suppressed because one or more lines are too long
45
cosmic/widget/canvas/index.html
Normal file
45
cosmic/widget/canvas/index.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!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="Canvases can be leveraged to draw interactive 2D graphics."><title>cosmic::widget::canvas - 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 canvas</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example-drawing-a-simple-circle" title="Example: Drawing a Simple Circle">Example: Drawing a Simple Circle</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>canvas</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>Canvases can be leveraged to draw interactive 2D graphics.</p>
|
||||
<h2 id="example-drawing-a-simple-circle"><a class="doc-anchor" href="#example-drawing-a-simple-circle">§</a>Example: Drawing a Simple Circle</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::mouse;
|
||||
<span class="kw">use </span>iced::widget::canvas;
|
||||
<span class="kw">use </span>iced::{Color, Rectangle, Renderer, Theme};
|
||||
|
||||
<span class="comment">// First, we define the data we need for drawing
|
||||
</span><span class="attr">#[derive(Debug)]
|
||||
</span><span class="kw">struct </span>Circle {
|
||||
radius: f32,
|
||||
}
|
||||
|
||||
<span class="comment">// Then, we implement the `Program` trait
|
||||
</span><span class="kw">impl</span><Message> canvas::Program<Message> <span class="kw">for </span>Circle {
|
||||
<span class="comment">// No internal state
|
||||
</span><span class="kw">type </span>State = ();
|
||||
|
||||
<span class="kw">fn </span>draw(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
_state: <span class="kw-2">&</span>(),
|
||||
renderer: <span class="kw-2">&</span>Renderer,
|
||||
_theme: <span class="kw-2">&</span>Theme,
|
||||
bounds: Rectangle,
|
||||
_cursor: mouse::Cursor
|
||||
) -> Vec<canvas::Geometry> {
|
||||
<span class="comment">// We prepare a new `Frame`
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>frame = canvas::Frame::new(renderer, bounds.size());
|
||||
|
||||
<span class="comment">// We create a `Path` representing a simple circle
|
||||
</span><span class="kw">let </span>circle = canvas::Path::circle(frame.center(), <span class="self">self</span>.radius);
|
||||
|
||||
<span class="comment">// And fill it with some color
|
||||
</span>frame.fill(<span class="kw-2">&</span>circle, Color::BLACK);
|
||||
|
||||
<span class="comment">// Then, we produce the geometry
|
||||
</span><span class="macro">vec!</span>[frame.into_geometry()]
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Finally, we simply use our `Circle` to create the `Canvas`!
|
||||
</span><span class="kw">fn </span>view<<span class="lifetime">'a</span>, Message: <span class="lifetime">'a</span>>(_state: <span class="kw-2">&</span><span class="lifetime">'a </span>State) -> Element<<span class="lifetime">'a</span>, Message> {
|
||||
canvas(Circle { radius: <span class="number">50.0 </span>}).into()
|
||||
}</code></pre></div>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="fill/index.html" title="mod cosmic::widget::canvas::fill">fill</a></dt><dd>Fill <a href="../../iced/daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="associated type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry"><code>Geometry</code></a> with a certain style.</dd><dt><a class="mod" href="gradient/index.html" title="mod cosmic::widget::canvas::gradient">gradient</a></dt><dd>A gradient that can be used as a fill for some geometry.</dd><dt><a class="mod" href="path/index.html" title="mod cosmic::widget::canvas::path">path</a></dt><dd>Build different kinds of 2D shapes.</dd><dt><a class="mod" href="stroke/index.html" title="mod cosmic::widget::canvas::stroke">stroke</a></dt><dd>Create lines from a <a href="struct.Path.html" title="struct cosmic::widget::canvas::Path"><code>Path</code></a> and assigns them various attributes/styles.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Action.html" title="struct cosmic::widget::canvas::Action">Action</a></dt><dd>A runtime action that can be performed by some widgets.</dd><dt><a class="struct" href="struct.Canvas.html" title="struct cosmic::widget::canvas::Canvas">Canvas</a></dt><dd>A widget capable of drawing 2D graphics.</dd><dt><a class="struct" href="struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a></dt><dd>The style used to fill geometry.</dd><dt><a class="struct" href="struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a></dt><dd>A cache group.</dd><dt><a class="struct" href="struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a></dt><dd>A raster image that can be drawn.</dd><dt><a class="struct" href="struct.LineDash.html" title="struct cosmic::widget::canvas::LineDash">Line<wbr>Dash</a></dt><dd>The dash pattern used when stroking the line.</dd><dt><a class="struct" href="struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a></dt><dd>An immutable set of points that may or may not be connected.</dd><dt><a class="struct" href="struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a></dt><dd>The style of a stroke.</dd><dt><a class="struct" href="struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a></dt><dd>A bunch of text that can be drawn to a canvas</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Event.html" title="enum cosmic::widget::canvas::Event">Event</a></dt><dd>A user interface event.</dd><dt><a class="enum" href="enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient">Gradient</a></dt><dd>A fill which linearly interpolates colors along a direction.</dd><dt><a class="enum" href="enum.LineCap.html" title="enum cosmic::widget::canvas::LineCap">LineCap</a></dt><dd>The shape used at the end of open subpaths when they are stroked.</dd><dt><a class="enum" href="enum.LineJoin.html" title="enum cosmic::widget::canvas::LineJoin">Line<wbr>Join</a></dt><dd>The shape used at the corners of paths or basic shapes when they are
|
||||
stroked.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::widget::canvas::Style">Style</a></dt><dd>The coloring style of some drawing.</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.Program.html" title="trait cosmic::widget::canvas::Program">Program</a></dt><dd>The state and logic of a <a href="../struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.Cache.html" title="type cosmic::widget::canvas::Cache">Cache</a></dt><dd>A simple cache that stores generated <a href="type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a> to avoid recomputation.</dd><dt><a class="type" href="type.Frame.html" title="type cosmic::widget::canvas::Frame">Frame</a></dt><dd>The frame supported by a renderer.</dd><dt><a class="type" href="type.Geometry.html" title="type cosmic::widget::canvas::Geometry">Geometry</a></dt><dd>The geometry supported by a renderer.</dd></dl></section></div></main></body></html>
|
||||
2
cosmic/widget/canvas/path/arc/index.html
Normal file
2
cosmic/widget/canvas/path/arc/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Build and draw curves."><title>cosmic::widget::canvas::path::arc - 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 arc</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<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></div><h1>Module <span>arc</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>Build and draw curves.</p>
|
||||
</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.Arc.html" title="struct cosmic::widget::canvas::path::arc::Arc">Arc</a></dt><dd>A segment of a differentiable curve.</dd><dt><a class="struct" href="struct.Elliptical.html" title="struct cosmic::widget::canvas::path::arc::Elliptical">Elliptical</a></dt><dd>An elliptical <a href="../struct.Arc.html" title="struct cosmic::widget::canvas::path::Arc"><code>Arc</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/canvas/path/arc/sidebar-items.js
Normal file
1
cosmic/widget/canvas/path/arc/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Arc","Elliptical"]};
|
||||
77
cosmic/widget/canvas/path/arc/struct.Arc.html
Normal file
77
cosmic/widget/canvas/path/arc/struct.Arc.html
Normal file
File diff suppressed because one or more lines are too long
79
cosmic/widget/canvas/path/arc/struct.Elliptical.html
Normal file
79
cosmic/widget/canvas/path/arc/struct.Elliptical.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/widget/canvas/path/index.html
Normal file
2
cosmic/widget/canvas/path/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!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="Build different kinds of 2D shapes."><title>cosmic::widget::canvas::path - 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 path</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>path</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>Build different kinds of 2D shapes.</p>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="arc/index.html" title="mod cosmic::widget::canvas::path::arc">arc</a></dt><dd>Build and draw curves.</dd><dt><a class="mod" href="lyon_path/index.html" title="mod cosmic::widget::canvas::path::lyon_path">lyon_<wbr>path</a></dt><dd>Data structures and traits to work with paths (vector graphics).</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Arc.html" title="struct cosmic::widget::canvas::path::Arc">Arc</a></dt><dd>A segment of a differentiable curve.</dd><dt><a class="struct" href="struct.Builder.html" title="struct cosmic::widget::canvas::path::Builder">Builder</a></dt><dd>A <a href="../struct.Path.html" title="struct cosmic::widget::canvas::Path"><code>Path</code></a> builder.</dd><dt><a class="struct" href="struct.Path.html" title="struct cosmic::widget::canvas::path::Path">Path</a></dt><dd>An immutable set of points that may or may not be connected.</dd></dl></section></div></main></body></html>
|
||||
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
54
cosmic/widget/canvas/path/lyon_path/commands/index.html
Normal file
54
cosmic/widget/canvas/path/lyon_path/commands/index.html
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<!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 generic representation for paths that allow more control over how endpoints and control points are stored."><title>cosmic::widget::canvas::path::lyon_path::commands - 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 commands</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#motivation" title="Motivation">Motivation</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></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>commands</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>A generic representation for paths that allow more control over how
|
||||
endpoints and control points are stored.</p>
|
||||
<h2 id="motivation"><a class="doc-anchor" href="#motivation">§</a>Motivation</h2>
|
||||
<p>The default <code>Path</code> data structure in this crate is works well for the
|
||||
most common use cases. Sometimes, however, it is useful to be able to
|
||||
specify exactly how endpoints and control points are stored instead of
|
||||
relying on implicitly following the order of the events.</p>
|
||||
<p>This module contains bricks to help with building custom path representations.
|
||||
The central piece is the <a href="struct.PathCommands.html"><code>PathCommands</code></a> buffer and
|
||||
its <a href="struct.PathCommandsBuilder.html"><code>PathCommandsBuilder</code></a>, providing a compact
|
||||
representation for path events with IDs instead of positions.</p>
|
||||
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
|
||||
<p>The following example shows how <code>PathCommands</code> can be used together with an
|
||||
external buffers for positions to implement features similar to the default
|
||||
Path type with a different data structure.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{EndpointId, Event, IdEvent, commands::PathCommands};
|
||||
<span class="kw">let </span>points = <span class="kw-2">&</span>[
|
||||
[<span class="number">0.0</span>, <span class="number">0.0</span>],
|
||||
[<span class="number">1.0</span>, <span class="number">1.0</span>],
|
||||
[<span class="number">0.0</span>, <span class="number">2.0</span>],
|
||||
];
|
||||
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>cmds = PathCommands::builder();
|
||||
cmds.begin(EndpointId(<span class="number">0</span>));
|
||||
cmds.line_to(EndpointId(<span class="number">1</span>));
|
||||
cmds.line_to(EndpointId(<span class="number">2</span>));
|
||||
cmds.end(<span class="bool-val">true</span>);
|
||||
|
||||
<span class="kw">let </span>cmds = cmds.build();
|
||||
|
||||
<span class="kw">for </span>event <span class="kw">in </span><span class="kw-2">&</span>cmds {
|
||||
<span class="kw">match </span>event {
|
||||
IdEvent::Begin { at } => { <span class="macro">println!</span>(<span class="string">"move to {:?}"</span>, points[at.to_usize()]); }
|
||||
IdEvent::Line { to, .. } => { <span class="macro">println!</span>(<span class="string">"line to {:?}"</span>, points[to.to_usize()]); }
|
||||
IdEvent::End { close: <span class="bool-val">true</span>, .. } => { <span class="macro">println!</span>(<span class="string">"close"</span>); }
|
||||
<span class="kw">_ </span>=> { <span class="macro">panic!</span>(<span class="string">"unexpected event!"</span>) }
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Iterate over the points directly using CommandsPathSlice
|
||||
</span><span class="kw">for </span>event <span class="kw">in </span>cmds.path_slice(points, points).events() {
|
||||
<span class="kw">match </span>event {
|
||||
Event::Begin { at } => { <span class="macro">println!</span>(<span class="string">"move to {:?}"</span>, at); }
|
||||
Event::Line { to, .. } => { <span class="macro">println!</span>(<span class="string">"line to {:?}"</span>, to); }
|
||||
Event::End { close: <span class="bool-val">true</span>, .. } => { <span class="macro">println!</span>(<span class="string">"close"</span>); }
|
||||
<span class="kw">_ </span>=> { <span class="macro">panic!</span>(<span class="string">"unexpected event!"</span>) }
|
||||
}
|
||||
}
|
||||
</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.CommandsPathSlice.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::CommandsPathSlice">Commands<wbr>Path<wbr>Slice</a></dt><dd>A view on a <a href="struct.PathCommands.html"><code>PathCommands</code></a> buffer and
|
||||
two slices for endpoints and control points, providing similar
|
||||
functionalities as <code>PathSlice</code>.</dd><dt><a class="struct" href="struct.Events.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::Events">Events</a></dt><dd>An iterator of <code>Event<&Endpoint, &ControlPoint></code>.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::Iter">Iter</a></dt><dd>An iterator of <code>Event<&Endpoint, &ControlPoint></code>.</dd><dt><a class="struct" href="struct.PathCommands.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommands">Path<wbr>Commands</a></dt><dd>The commands of a path encoded in a single array using IDs to refer
|
||||
to endpoints and control points externally.</dd><dt><a class="struct" href="struct.PathCommandsBuilder.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommandsBuilder">Path<wbr>Commands<wbr>Builder</a></dt><dd>Builds path commands.</dd><dt><a class="struct" href="struct.PathCommandsSlice.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommandsSlice">Path<wbr>Commands<wbr>Slice</a></dt><dd>A view over <a href="struct.PathCommands.html"><code>PathCommands</code></a>.</dd><dt><a class="struct" href="struct.PointEvents.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PointEvents">Point<wbr>Events</a></dt><dd>An iterator of <code>PathEvent</code>.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["CommandsPathSlice","Events","Iter","PathCommands","PathCommandsBuilder","PathCommandsSlice","PointEvents"]};
|
||||
File diff suppressed because one or more lines are too long
283
cosmic/widget/canvas/path/lyon_path/commands/struct.Events.html
Normal file
283
cosmic/widget/canvas/path/lyon_path/commands/struct.Events.html
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue