This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

File diff suppressed because one or more lines are too long

View 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="Leverage advanced concepts like custom widgets."><title>cosmic::iced::advanced - 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 advanced</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><li><a href="#enums" title="Enums">Enums</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>iced</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">iced</a></div><h1>Module <span>advanced</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>Leverage advanced concepts like custom widgets.</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="subscription/index.html" title="mod cosmic::iced::advanced::subscription">subscription</a></dt><dd>Write your own subscriptions.</dd><dt><a class="mod" href="widget/index.html" title="mod cosmic::iced::advanced::widget">widget</a></dt><dd>Create custom widgets and operate on them.</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.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a></dt><dd>The bounds of a <a href="../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node"><code>Node</code></a> and its children, using absolute coordinates.</dd><dt><a class="struct" href="struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a></dt><dd>A connection to the state of a shell.</dd><dt><a class="struct" href="struct.Text.html" title="struct cosmic::iced::advanced::Text">Text</a></dt><dd>A paragraph.</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.InputMethod.html" title="enum cosmic::iced::advanced::InputMethod">Input<wbr>Method</a></dt><dd>The input method strategy of a widget.</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.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a></dt><dd>A buffer for short-term storage and transfer within and between
applications.</dd><dt><a class="trait" href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay">Overlay</a></dt><dd>An interactive component that can be displayed on top of other widgets.</dd><dt><a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a></dt><dd>A component that can be used by widgets to draw themselves on a screen.</dd><dt><a class="trait" href="trait.Widget.html" title="trait cosmic::iced::advanced::Widget">Widget</a></dt><dd>A component that displays information and allows interaction.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["InputMethod"],"mod":["subscription","widget"],"struct":["Layout","Shell","Text"],"trait":["Clipboard","Overlay","Renderer","Widget"]};

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

View 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="Creates a `Subscription` from a `Recipe` describing it."><title>from_recipe in cosmic::iced::advanced::subscription - 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>iced::<wbr>advanced::<wbr>subscription</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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">subscription</a></div><h1>Function <span class="fn">from_recipe</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 from_recipe&lt;T&gt;(
recipe: impl <a class="trait" href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe">Recipe</a>&lt;Output = T&gt; + 'static,
) -&gt; <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;T&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a> from a <a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</code></a> describing it.</p>
</div></details></section></div></main></body></html>

View 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="Returns the different recipes of the `Subscription`."><title>into_recipes in cosmic::iced::advanced::subscription - 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>iced::<wbr>advanced::<wbr>subscription</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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">subscription</a></div><h1>Function <span class="fn">into_recipes</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 into_recipes&lt;T&gt;(
subscription: <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;T&gt;,
) -&gt; <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<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>&lt;dyn <a class="trait" href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe">Recipe</a>&lt;Output = T&gt;&gt;&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the different recipes of the <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>.</p>
</div></details></section></div></main></body></html>

View 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="Write your own subscriptions."><title>cosmic::iced::advanced::subscription - 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 subscription</a></h2><h3><a href="#enums">Module Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</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>iced::<wbr>advanced</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">iced</a>::<wbr><a href="../index.html">advanced</a></div><h1>Module <span>subscription</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>Write your own subscriptions.</p>
</div></details><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::iced::advanced::subscription::Event">Event</a></dt><dd>A subscription event.</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.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe">Recipe</a></dt><dd>The description of a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</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.from_recipe.html" title="fn cosmic::iced::advanced::subscription::from_recipe">from_<wbr>recipe</a></dt><dd>Creates a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a> from a <a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</code></a> describing it.</dd><dt><a class="fn" href="fn.into_recipes.html" title="fn cosmic::iced::advanced::subscription::into_recipes">into_<wbr>recipes</a></dt><dd>Returns the different recipes of the <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</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.EventStream.html" title="type cosmic::iced::advanced::subscription::EventStream">Event<wbr>Stream</a></dt><dd>A stream of runtime events.</dd><dt><a class="type" href="type.Hasher.html" title="type cosmic::iced::advanced::subscription::Hasher">Hasher</a></dt><dd>The hasher used for identifying subscriptions.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Event"],"fn":["from_recipe","into_recipes"],"trait":["Recipe"],"type":["EventStream","Hasher"]};

View file

@ -0,0 +1,23 @@
<!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 description of a `Subscription`."><title>Recipe in cosmic::iced::advanced::subscription - 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="#">Recipe</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Output" title="Output">Output</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.hash" title="hash">hash</a></li><li><a href="#tymethod.stream" title="stream">stream</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced::<wbr>subscription</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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">subscription</a></div><h1>Trait <span class="trait">Recipe</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 Recipe {
type <a href="#associatedtype.Output" class="associatedtype">Output</a>;
// Required methods
fn <a href="#tymethod.hash" class="fn">hash</a>(&amp;self, state: &amp;mut FxHasher);
<span class="item-spacer"></span> fn <a href="#tymethod.stream" class="fn">stream</a>(
self: <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>&lt;Self&gt;,
input: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<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>&lt;dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a>&lt;Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<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>&lt;dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="trait.Recipe.html#associatedtype.Output" title="type cosmic::iced::advanced::subscription::Recipe::Output">Output</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The description of a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>.</p>
<p>A <a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</code></a> is the internal definition of a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>. It is used
by runtimes to run and identify subscriptions. You can use it to create your
own!</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.Output" class="method"><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a></h4></section></summary><div class="docblock"><p>The events that will be produced by a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a> with this
<a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</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.hash" class="method"><h4 class="code-header">fn <a href="#tymethod.hash" class="fn">hash</a>(&amp;self, state: &amp;mut FxHasher)</h4></section></summary><div class="docblock"><p>Hashes the <a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</code></a>.</p>
<p>This is used by runtimes to uniquely identify a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.stream" class="method"><h4 class="code-header">fn <a href="#tymethod.stream" class="fn">stream</a>(
self: <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>&lt;Self&gt;,
input: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<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>&lt;dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a>&lt;Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<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>&lt;dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="trait.Recipe.html#associatedtype.Output" title="type cosmic::iced::advanced::subscription::Recipe::Output">Output</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Executes the <a href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe"><code>Recipe</code></a> and produces the stream of events of its
<a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/iced_futures/subscription/trait.Recipe.js" async></script></section></div></main></body></html>

View 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 stream of runtime events."><title>EventStream in cosmic::iced::advanced::subscription - 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 type"><!--[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="#">Event<wbr>Stream</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced::<wbr>subscription</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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">subscription</a></div><h1>Type Alias <span class="type">EventStream</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 type EventStream = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<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>&lt;dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a>&lt;Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A stream of runtime events.</p>
<p>It is the input of a <a href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription"><code>Subscription</code></a>.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct EventStream { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/core/pin/struct.Pin.js" data-self-path="cosmic::iced::advanced::subscription::EventStream" async></script></section></div></main></body></html>

View 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="The hasher used for identifying subscriptions."><title>Hasher in cosmic::iced::advanced::subscription - 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 type"><!--[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="#">Hasher</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced::<wbr>subscription</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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">subscription</a></div><h1>Type Alias <span class="type">Hasher</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 type Hasher = FxHasher;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The hasher used for identifying subscriptions.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct Hasher { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/rustc_hash/struct.FxHasher.js" data-self-path="cosmic::iced::advanced::subscription::Hasher" async></script></section></div></main></body></html>

View file

@ -0,0 +1,84 @@
<!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 buffer for short-term storage and transfer within and between applications."><title>Clipboard in cosmic::iced::advanced - 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="#">Clipboard</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.read" title="read">read</a></li><li><a href="#tymethod.write" title="write">write</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.end_dnd" title="end_dnd">end_dnd</a></li><li><a href="#method.peek_dnd" title="peek_dnd">peek_dnd</a></li><li><a href="#method.read_data" title="read_data">read_data</a></li><li><a href="#method.register_dnd_destination" title="register_dnd_destination">register_dnd_destination</a></li><li><a href="#method.request_logical_window_size" title="request_logical_window_size">request_logical_window_size</a></li><li><a href="#method.set_action" title="set_action">set_action</a></li><li><a href="#method.start_dnd" title="start_dnd">start_dnd</a></li><li><a href="#method.write_data" title="write_data">write_data</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Clipboard-for-Clipboard" title="Clipboard">Clipboard</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced</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">iced</a>::<wbr><a href="index.html">advanced</a></div><h1>Trait <span class="trait">Clipboard</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 Clipboard {
// Required methods
fn <a href="#tymethod.read" class="fn">read</a>(&amp;self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.write" class="fn">write</a>(&amp;mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>);
// Provided methods
fn <a href="#method.read_data" class="fn">read_data</a>(
&amp;self,
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
_mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.write_data" class="fn">write_data</a>(
&amp;mut self,
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
_contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a>&lt;<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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
&amp;self,
_surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
_rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>&gt;,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.set_action" class="fn">set_action</a>(&amp;self, _action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
&amp;mut self,
_internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
_source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>&gt;,
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a>&lt;<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>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;&gt;&gt;,
_content: <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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;,
_actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&amp;self) { ... }
<span class="item-spacer"></span> fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&amp;self, _mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&amp;self, _width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, _height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A buffer for short-term storage and transfer within and between
applications.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.read" class="method"><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(&amp;self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Reads the current content of the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a> as text.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h4></section></summary><div class="docblock"><p>Writes the given text contents to the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</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.read_data" class="method"><h4 class="code-header">fn <a href="#method.read_data" class="fn">read_data</a>(
&amp;self,
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
_mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt;</h4></section></summary><div class="docblock"><p>Consider using <a href="../daemon/program/graphics/core/clipboard/fn.read_data.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::read_data"><code>read_data</code></a> instead
Reads the current content of the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a> as text.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_data" class="method"><h4 class="code-header">fn <a href="#method.write_data" class="fn">write_data</a>(
&amp;mut self,
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
_contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a>&lt;<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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;,
)</h4></section></summary><div class="docblock"><p>Writes the given contents to the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.register_dnd_destination" class="method"><h4 class="code-header">fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
&amp;self,
_surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
_rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>&gt;,
)</h4></section></summary><div class="docblock"><p>Starts a DnD operation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_action" class="method"><h4 class="code-header">fn <a href="#method.set_action" class="fn">set_action</a>(&amp;self, _action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>)</h4></section></summary><div class="docblock"><p>Set the final action for the DnD operation.
Only should be done if it is requested.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.start_dnd" class="method"><h4 class="code-header">fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
&amp;mut self,
_internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
_source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>&gt;,
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a>&lt;<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>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;&gt;&gt;,
_content: <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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;,
_actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
)</h4></section></summary><div class="docblock"><p>Registers Dnd destinations</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.end_dnd" class="method"><h4 class="code-header">fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&amp;self)</h4></section></summary><div class="docblock"><p>Ends a DnD operation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.peek_dnd" class="method"><h4 class="code-header">fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&amp;self, _mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt;</h4></section></summary><div class="docblock"><p>Consider using <a href="../daemon/program/graphics/core/clipboard/fn.peek_dnd.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::peek_dnd"><code>peek_dnd</code></a> instead
Peeks the data on the DnD with a specific mime type.
Will return an error if there is no ongoing DnD operation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.request_logical_window_size" class="method"><h4 class="code-header">fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&amp;self, _width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, _height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Request window size</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Clipboard-for-Clipboard" class="impl"><a href="#impl-Clipboard-for-Clipboard" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a> for Clipboard</h3></section></summary><div class="impl-items"><section id="method.read" class="method trait-impl"><a href="#method.read" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(&amp;self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;</h4></section><section id="method.write" class="method trait-impl"><a href="#method.write" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h4></section><section id="method.read_data-1" class="method trait-impl"><a href="#method.read_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.read_data" class="fn">read_data</a>(&amp;self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt;</h4></section><section id="method.write_data-1" class="method trait-impl"><a href="#method.write_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.write_data" class="fn">write_data</a>(
&amp;mut self,
kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a>&lt;<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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;&gt;,
)</h4></section><section id="method.start_dnd-1" class="method trait-impl"><a href="#method.start_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
&amp;mut self,
internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>&gt;,
icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a>&lt;<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>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;&gt;&gt;,
content: <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>&lt;dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;,
actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
)</h4></section><section id="method.register_dnd_destination-1" class="method trait-impl"><a href="#method.register_dnd_destination-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
&amp;self,
surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>&gt;,
)</h4></section><section id="method.end_dnd-1" class="method trait-impl"><a href="#method.end_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&amp;self)</h4></section><section id="method.peek_dnd-1" class="method trait-impl"><a href="#method.peek_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&amp;self, mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)&gt;</h4></section><section id="method.set_action-1" class="method trait-impl"><a href="#method.set_action-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.set_action" class="fn">set_action</a>(&amp;self, action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>)</h4></section><section id="method.request_logical_window_size-1" class="method trait-impl"><a href="#method.request_logical_window_size-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&amp;self, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Clipboard-for-Null" class="impl"><a href="#impl-Clipboard-for-Null" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a> for <a class="struct" href="../daemon/program/graphics/core/clipboard/struct.Null.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::Null">Null</a></h3></section></div><script src="../../../trait.impl/iced_core/clipboard/trait.Clipboard.js" data-ignore-extern-crates="iced_core,iced_winit" async></script></section></div></main></body></html>

View file

@ -0,0 +1,99 @@
<!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 interactive component that can be displayed on top of other widgets."><title>Overlay in cosmic::iced::advanced - 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="#">Overlay</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.draw" title="draw">draw</a></li><li><a href="#tymethod.layout" title="layout">layout</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.index" title="index">index</a></li><li><a href="#method.mouse_interaction" title="mouse_interaction">mouse_interaction</a></li><li><a href="#method.operate" title="operate">operate</a></li><li><a href="#method.overlay" title="overlay">overlay</a></li><li><a href="#method.update" title="update">update</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced</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">iced</a>::<wbr><a href="index.html">advanced</a></div><h1>Trait <span class="trait">Overlay</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 Overlay&lt;Message, Theme, Renderer&gt;<div class="where">where
Renderer: <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div>{
// Required methods
fn <a href="#tymethod.layout" class="fn">layout</a>(&amp;mut self, renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>, bounds: <a class="struct" href="../struct.Size.html" title="struct cosmic::iced::Size">Size</a>) -&gt; <a class="struct" href="../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.draw" class="fn">draw</a>(
&amp;self,
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut Renderer</a>,
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Theme</a>,
style: &amp;<a class="struct" href="../daemon/program/graphics/core/renderer/struct.Style.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Style">Style</a>,
layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
);
// Provided methods
fn <a href="#method.operate" class="fn">operate</a>(
&amp;mut self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
_operation: &amp;mut dyn <a class="trait" href="../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.update" class="fn">update</a>(
&amp;mut self,
_event: &amp;<a class="enum" href="../enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
_clipboard: &amp;mut dyn <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
_shell: &amp;mut <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a>&lt;'_, Message&gt;,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
&amp;self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
) -&gt; <a class="enum" href="../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.overlay" class="fn">overlay</a>&lt;'a&gt;(
&amp;'a mut self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'a&gt;,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../daemon/program/graphics/core/overlay/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.index" class="fn">index</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An interactive component that can be displayed on top of other widgets.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.layout" class="method"><h4 class="code-header">fn <a href="#tymethod.layout" class="fn">layout</a>(&amp;mut self, renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>, bounds: <a class="struct" href="../struct.Size.html" title="struct cosmic::iced::Size">Size</a>) -&gt; <a class="struct" href="../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a></h4></section></summary><div class="docblock"><p>Returns the layout <a href="../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node"><code>Node</code></a> of the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a>.</p>
<p>This <a href="../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node"><code>Node</code></a> is used by the runtime to compute the <a href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout"><code>Layout</code></a> of the
user interface.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.draw" class="method"><h4 class="code-header">fn <a href="#tymethod.draw" class="fn">draw</a>(
&amp;self,
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut Renderer</a>,
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Theme</a>,
style: &amp;<a class="struct" href="../daemon/program/graphics/core/renderer/struct.Style.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Style">Style</a>,
layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
)</h4></section></summary><div class="docblock"><p>Draws the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a> using the associated <code>Renderer</code>.</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.operate" class="method"><h4 class="code-header">fn <a href="#method.operate" class="fn">operate</a>(
&amp;mut self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
_operation: &amp;mut dyn <a class="trait" href="../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>,
)</h4></section></summary><div class="docblock"><p>Applies an <a href="../../widget/trait.Operation.html" title="trait cosmic::widget::Operation"><code>crate::widget::Operation</code></a> to the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.update" class="method"><h4 class="code-header">fn <a href="#method.update" class="fn">update</a>(
&amp;mut self,
_event: &amp;<a class="enum" href="../enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
_clipboard: &amp;mut dyn <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
_shell: &amp;mut <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a>&lt;'_, Message&gt;,
)</h4></section></summary><div class="docblock"><p>Processes a runtime <a href="../enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a>.</p>
<p>It receives:</p>
<ul>
<li>an <a href="../enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a> describing user interaction</li>
<li>the computed <a href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout"><code>Layout</code></a> of the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a></li>
<li>the current cursor position</li>
<li>a mutable <code>Message</code> list, allowing the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a> to produce
new messages based on user interaction.</li>
<li>the <code>Renderer</code></li>
<li>a <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>, if available</li>
</ul>
<p>By default, it does nothing.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mouse_interaction" class="method"><h4 class="code-header">fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
&amp;self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;,
_cursor: <a class="enum" href="../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
) -&gt; <a class="enum" href="../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a></h4></section></summary><div class="docblock"><p>Returns the current <a href="../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction"><code>mouse::Interaction</code></a> of the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a>.</p>
<p>By default, it returns <a href="../mouse/enum.Interaction.html#variant.None" title="variant cosmic::iced::mouse::Interaction::None"><code>mouse::Interaction::None</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.overlay" class="method"><h4 class="code-header">fn <a href="#method.overlay" class="fn">overlay</a>&lt;'a&gt;(
&amp;'a mut self,
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'a&gt;,
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../daemon/program/graphics/core/overlay/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the nested overlay of the <a href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay"><code>Overlay</code></a>, if there is any.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.index" class="method"><h4 class="code-header">fn <a href="#method.index" class="fn">index</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></summary><div class="docblock"><p>The index of the overlay.</p>
<p>Overlays with a higher index will be rendered on top of overlays with
a lower index.</p>
<p>By default, it returns <code>1.0</code>.</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-Overlay%3CMessage,+Theme,+Renderer%3E-for-Overlay%3C'_,+'_,+Message,+Renderer%3E" class="impl"><a class="src rightside" href="../../../src/cosmic/widget/popover.rs.html#340-477">Source</a><a href="#impl-Overlay%3CMessage,+Theme,+Renderer%3E-for-Overlay%3C'_,+'_,+Message,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Message, Renderer&gt; <a class="trait" href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay">Overlay</a>&lt;Message, <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>, Renderer&gt; for <a class="struct" href="../../widget/popover/struct.Overlay.html" title="struct cosmic::widget::popover::Overlay">Overlay</a>&lt;'_, '_, Message, Renderer&gt;<div class="where">where
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
Renderer: <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></h3></section><section id="impl-Overlay%3CMessage,+Theme,+Renderer%3E-for-Group%3C'_,+Message,+Theme,+Renderer%3E" class="impl"><a href="#impl-Overlay%3CMessage,+Theme,+Renderer%3E-for-Group%3C'_,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Message, Theme, Renderer&gt; <a class="trait" href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay">Overlay</a>&lt;Message, Theme, Renderer&gt; for <a class="struct" href="../daemon/program/graphics/core/overlay/struct.Group.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Group">Group</a>&lt;'_, Message, Theme, Renderer&gt;<div class="where">where
Renderer: <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></h3></section></div><script src="../../../trait.impl/iced_core/overlay/trait.Overlay.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,63 @@
<!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 component that can be used by widgets to draw themselves on a screen."><title>Renderer in cosmic::iced::advanced - 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="#">Renderer</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.allocate_image" title="allocate_image">allocate_image</a></li><li><a href="#tymethod.end_layer" title="end_layer">end_layer</a></li><li><a href="#tymethod.end_transformation" title="end_transformation">end_transformation</a></li><li><a href="#tymethod.fill_quad" title="fill_quad">fill_quad</a></li><li><a href="#tymethod.reset" title="reset">reset</a></li><li><a href="#tymethod.start_layer" title="start_layer">start_layer</a></li><li><a href="#tymethod.start_transformation" title="start_transformation">start_transformation</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.with_layer" title="with_layer">with_layer</a></li><li><a href="#method.with_transformation" title="with_transformation">with_transformation</a></li><li><a href="#method.with_translation" title="with_translation">with_translation</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Renderer-for-()" title="()">()</a></li><li><a href="#impl-Renderer-for-Renderer" title="Renderer">Renderer</a></li><li><a href="#impl-Renderer-for-Renderer%3CA,+B%3E" title="Renderer&#60;A, B&#62;">Renderer&#60;A, B&#62;</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>iced::<wbr>advanced</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">iced</a>::<wbr><a href="index.html">advanced</a></div><h1>Trait <span class="trait">Renderer</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 Renderer {
// Required methods
fn <a href="#tymethod.start_layer" class="fn">start_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.end_layer" class="fn">end_layer</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&amp;mut self, transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.end_transformation" class="fn">end_transformation</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&amp;mut self, quad: <a class="struct" href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad">Quad</a>, background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.reset" class="fn">reset</a>(&amp;mut self, new_bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.allocate_image" class="fn">allocate_image</a>(
&amp;mut self,
handle: &amp;<a class="enum" href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>,
callback: 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation">Allocation</a>, <a class="enum" href="../daemon/program/runtime/image/enum.Error.html" title="enum cosmic::iced::daemon::program::runtime::image::Error">Error</a>&gt;) + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
);
// Provided methods
fn <a href="#method.with_layer" class="fn">with_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, f: 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>(&amp;mut Self)) { ... }
<span class="item-spacer"></span> fn <a href="#method.with_transformation" class="fn">with_transformation</a>(
&amp;mut self,
transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>,
f: 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>(&amp;mut Self),
) { ... }
<span class="item-spacer"></span> fn <a href="#method.with_translation" class="fn">with_translation</a>(
&amp;mut self,
translation: <a class="struct" href="../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>,
f: 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>(&amp;mut Self),
) { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A component that can be used by widgets to draw themselves on a screen.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.start_layer" class="method"><h4 class="code-header">fn <a href="#tymethod.start_layer" class="fn">start_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section></summary><div class="docblock"><p>Starts recording a new layer.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.end_layer" class="method"><h4 class="code-header">fn <a href="#tymethod.end_layer" class="fn">end_layer</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Ends recording a new layer.</p>
<p>The new layer will clip its contents to the provided <code>bounds</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.start_transformation" class="method"><h4 class="code-header">fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&amp;mut self, transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>)</h4></section></summary><div class="docblock"><p>Starts recording with a new <a href="../struct.Transformation.html" title="struct cosmic::iced::Transformation"><code>Transformation</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.end_transformation" class="method"><h4 class="code-header">fn <a href="#tymethod.end_transformation" class="fn">end_transformation</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Ends recording a new layer.</p>
<p>The new layer will clip its contents to the provided <code>bounds</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fill_quad" class="method"><h4 class="code-header">fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&amp;mut self, quad: <a class="struct" href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad">Quad</a>, background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>&gt;)</h4></section></summary><div class="docblock"><p>Fills a <a href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad"><code>Quad</code></a> with the provided <a href="../enum.Background.html" title="enum cosmic::iced::Background"><code>Background</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.reset" class="method"><h4 class="code-header">fn <a href="#tymethod.reset" class="fn">reset</a>(&amp;mut self, new_bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section></summary><div class="docblock"><p>Resets the <a href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer"><code>Renderer</code></a> to start drawing in the <code>new_bounds</code> from scratch.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.allocate_image" class="method"><h4 class="code-header">fn <a href="#tymethod.allocate_image" class="fn">allocate_image</a>(
&amp;mut self,
handle: &amp;<a class="enum" href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>,
callback: 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation">Allocation</a>, <a class="enum" href="../daemon/program/runtime/image/enum.Error.html" title="enum cosmic::iced::daemon::program::runtime::image::Error">Error</a>&gt;) + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
)</h4></section></summary><div class="docblock"><p>Creates an <a href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation"><code>image::Allocation</code></a> for the given <a href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle"><code>image::Handle</code></a> and calls the given callback with it.</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.with_layer" class="method"><h4 class="code-header">fn <a href="#method.with_layer" class="fn">with_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, f: 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>(&amp;mut Self))</h4></section></summary><div class="docblock"><p>Draws the primitives recorded in the given closure in a new layer.</p>
<p>The layer will clip its contents to the provided <code>bounds</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_transformation" class="method"><h4 class="code-header">fn <a href="#method.with_transformation" class="fn">with_transformation</a>(
&amp;mut self,
transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>,
f: 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>(&amp;mut Self),
)</h4></section></summary><div class="docblock"><p>Applies a <a href="../struct.Transformation.html" title="struct cosmic::iced::Transformation"><code>Transformation</code></a> to the primitives recorded in the given closure.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_translation" class="method"><h4 class="code-header">fn <a href="#method.with_translation" class="fn">with_translation</a>(&amp;mut self, translation: <a class="struct" href="../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>, f: 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>(&amp;mut Self))</h4></section></summary><div class="docblock"><p>Applies a translation to the primitives recorded in the given closure.</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="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Renderer-for-()" class="impl"><a href="#impl-Renderer-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h3></section></summary><div class="impl-items"><section id="method.start_layer" class="method trait-impl"><a href="#method.start_layer" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_layer" class="fn">start_layer</a>(&amp;mut self, _bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.end_layer" class="method trait-impl"><a href="#method.end_layer" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_layer" class="fn">end_layer</a>(&amp;mut self)</h4></section><section id="method.start_transformation" class="method trait-impl"><a href="#method.start_transformation" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&amp;mut self, _transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>)</h4></section><section id="method.end_transformation" class="method trait-impl"><a href="#method.end_transformation" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_transformation" class="fn">end_transformation</a>(&amp;mut self)</h4></section><section id="method.reset" class="method trait-impl"><a href="#method.reset" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.reset" class="fn">reset</a>(&amp;mut self, _new_bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.fill_quad" class="method trait-impl"><a href="#method.fill_quad" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&amp;mut self, _quad: <a class="struct" href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad">Quad</a>, _background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>&gt;)</h4></section><section id="method.allocate_image" class="method trait-impl"><a href="#method.allocate_image" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.allocate_image" class="fn">allocate_image</a>(
&amp;mut self,
handle: &amp;<a class="enum" href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>,
callback: 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation">Allocation</a>, <a class="enum" href="../daemon/program/runtime/image/enum.Error.html" title="enum cosmic::iced::daemon::program::runtime::image::Error">Error</a>&gt;) + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Renderer-for-Renderer" class="impl"><a href="#impl-Renderer-for-Renderer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a> for Renderer</h3></section></summary><div class="impl-items"><section id="method.start_layer-1" class="method trait-impl"><a href="#method.start_layer-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_layer" class="fn">start_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.end_layer-1" class="method trait-impl"><a href="#method.end_layer-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_layer" class="fn">end_layer</a>(&amp;mut self)</h4></section><section id="method.start_transformation-1" class="method trait-impl"><a href="#method.start_transformation-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&amp;mut self, transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>)</h4></section><section id="method.end_transformation-1" class="method trait-impl"><a href="#method.end_transformation-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_transformation" class="fn">end_transformation</a>(&amp;mut self)</h4></section><section id="method.fill_quad-1" class="method trait-impl"><a href="#method.fill_quad-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&amp;mut self, quad: <a class="struct" href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad">Quad</a>, background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>&gt;)</h4></section><section id="method.reset-1" class="method trait-impl"><a href="#method.reset-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.reset" class="fn">reset</a>(&amp;mut self, new_bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.allocate_image-1" class="method trait-impl"><a href="#method.allocate_image-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.allocate_image" class="fn">allocate_image</a>(
&amp;mut self,
_handle: &amp;<a class="enum" href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>,
callback: 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation">Allocation</a>, <a class="enum" href="../daemon/program/runtime/image/enum.Error.html" title="enum cosmic::iced::daemon::program::runtime::image::Error">Error</a>&gt;) + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Renderer-for-Renderer%3CA,+B%3E" class="impl"><a href="#impl-Renderer-for-Renderer%3CA,+B%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, B&gt; <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a> for Renderer&lt;A, B&gt;<div class="where">where
A: <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,
B: <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></h3></section></summary><div class="impl-items"><section id="method.fill_quad-2" class="method trait-impl"><a href="#method.fill_quad-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&amp;mut self, quad: <a class="struct" href="../daemon/program/graphics/core/renderer/struct.Quad.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Quad">Quad</a>, background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>&gt;)</h4></section><section id="method.reset-2" class="method trait-impl"><a href="#method.reset-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.reset" class="fn">reset</a>(&amp;mut self, new_bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.start_layer-2" class="method trait-impl"><a href="#method.start_layer-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_layer" class="fn">start_layer</a>(&amp;mut self, bounds: <a class="struct" href="../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.end_layer-2" class="method trait-impl"><a href="#method.end_layer-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_layer" class="fn">end_layer</a>(&amp;mut self)</h4></section><section id="method.start_transformation-2" class="method trait-impl"><a href="#method.start_transformation-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&amp;mut self, transformation: <a class="struct" href="../struct.Transformation.html" title="struct cosmic::iced::Transformation">Transformation</a>)</h4></section><section id="method.end_transformation-2" class="method trait-impl"><a href="#method.end_transformation-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.end_transformation" class="fn">end_transformation</a>(&amp;mut self)</h4></section><section id="method.allocate_image-2" class="method trait-impl"><a href="#method.allocate_image-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.allocate_image" class="fn">allocate_image</a>(
&amp;mut self,
handle: &amp;<a class="enum" href="../../widget/image/enum.Handle.html" title="enum cosmic::widget::image::Handle">Handle</a>,
callback: 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../daemon/program/runtime/image/struct.Allocation.html" title="struct cosmic::iced::daemon::program::runtime::image::Allocation">Allocation</a>, <a class="enum" href="../daemon/program/runtime/image/enum.Error.html" title="enum cosmic::iced::daemon::program::runtime::image::Error">Error</a>&gt;) + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../trait.impl/iced_core/renderer/trait.Renderer.js" data-ignore-extern-crates="std,iced_renderer,iced_tiny_skia" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

View 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="Creates a new `Task` that runs the given `widget::Operation` and produces its output."><title>operate in cosmic::iced::advanced::widget - 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>iced::<wbr>advanced::<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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">operate</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 operate&lt;T&gt;(operation: impl <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>&lt;T&gt; + 'static) -&gt; <a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</div></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.Task.html" title="struct cosmic::Task"><code>Task</code></a> that runs the given <a href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation"><code>widget::Operation</code></a> and produces
its output.</p>
</div></details></section></div></main></body></html>

View 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="Create custom widgets and operate on them."><title>cosmic::iced::advanced::widget - 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 widget</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>iced::<wbr>advanced</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">iced</a>::<wbr><a href="../index.html">advanced</a></div><h1>Module <span>widget</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>Create custom widgets and operate on them.</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.Id.html" title="struct cosmic::iced::advanced::widget::Id">Id</a></dt><dd>The identifier of a generic widget.</dd><dt><a class="struct" href="struct.Text.html" title="struct cosmic::iced::advanced::widget::Text">Text</a></dt><dd>A bunch of text.</dd><dt><a class="struct" href="struct.Tree.html" title="struct cosmic::iced::advanced::widget::Tree">Tree</a></dt><dd>A persistent state widget tree.</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.Operation.html" title="trait cosmic::iced::advanced::widget::Operation">Operation</a></dt><dd>A piece of logic that can traverse the widget tree of an application in
order to query or update some widget state.</dd><dt><a class="trait" href="trait.Widget.html" title="trait cosmic::iced::advanced::widget::Widget">Widget</a></dt><dd>A component that displays information and allows interaction.</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.operate.html" title="fn cosmic::iced::advanced::widget::operate">operate</a></dt><dd>Creates a new <a href="../../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that runs the given <a href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation"><code>widget::Operation</code></a> and produces
its output.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["operate"],"struct":["Id","Text","Tree"],"trait":["Operation","Widget"]};

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

View file

@ -0,0 +1,72 @@
<!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 piece of logic that can traverse the widget tree of an application in order to query or update some widget state."><title>Operation in cosmic::iced::advanced::widget - 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="#">Operation</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.traverse" title="traverse">traverse</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.container" title="container">container</a></li><li><a href="#method.custom" title="custom">custom</a></li><li><a href="#method.finish" title="finish">finish</a></li><li><a href="#method.focusable" title="focusable">focusable</a></li><li><a href="#method.scrollable" title="scrollable">scrollable</a></li><li><a href="#method.text" title="text">text</a></li><li><a href="#method.text_input" title="text_input">text_input</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced::<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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">widget</a></div><h1>Trait <span class="trait">Operation</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 Operation&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> {
// Required method
fn <a href="#tymethod.traverse" class="fn">traverse</a>(&amp;mut self, operate: &amp;mut dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;mut dyn <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>&lt;T&gt;));
// Provided methods
fn <a href="#method.container" class="fn">container</a>(&amp;mut self, _id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.scrollable" class="fn">scrollable</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_content_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_translation: <a class="struct" href="../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.Scrollable.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::Scrollable">Scrollable</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.focusable" class="fn">focusable</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.Focusable.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::Focusable">Focusable</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.text_input" class="fn">text_input</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.TextInput.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::TextInput">TextInput</a>,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.text" class="fn">text</a>(&amp;mut self, _id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _text: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.custom" class="fn">custom</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static),
) { ... }
<span class="item-spacer"></span> fn <a href="#method.finish" class="fn">finish</a>(&amp;self) -&gt; <a class="enum" href="../../daemon/program/graphics/core/widget/operation/enum.Outcome.html" title="enum cosmic::iced::daemon::program::graphics::core::widget::operation::Outcome">Outcome</a>&lt;T&gt; { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A piece of logic that can traverse the widget tree of an application in
order to query or update some widget state.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.traverse" class="method"><h4 class="code-header">fn <a href="#tymethod.traverse" class="fn">traverse</a>(&amp;mut self, operate: &amp;mut dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;mut dyn <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>&lt;T&gt;))</h4></section></summary><div class="docblock"><p>Requests further traversal of the widget tree to keep operating.</p>
<p>The provided <code>operate</code> closure may be called by an <a href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation"><code>Operation</code></a>
to return control to the widget tree and keep traversing it. If
the closure is not called, the children of the widget asking for
traversal will be skipped.</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.container" class="method"><h4 class="code-header">fn <a href="#method.container" class="fn">container</a>(&amp;mut self, _id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section></summary><div class="docblock"><p>Operates on a widget that contains other widgets.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.scrollable" class="method"><h4 class="code-header">fn <a href="#method.scrollable" class="fn">scrollable</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_content_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_translation: <a class="struct" href="../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.Scrollable.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::Scrollable">Scrollable</a>,
)</h4></section></summary><div class="docblock"><p>Operates on a widget that can be scrolled.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.focusable" class="method"><h4 class="code-header">fn <a href="#method.focusable" class="fn">focusable</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.Focusable.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::Focusable">Focusable</a>,
)</h4></section></summary><div class="docblock"><p>Operates on a widget that can be focused.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.text_input" class="method"><h4 class="code-header">fn <a href="#method.text_input" class="fn">text_input</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut dyn <a class="trait" href="../../daemon/program/graphics/core/widget/operation/trait.TextInput.html" title="trait cosmic::iced::daemon::program::graphics::core::widget::operation::TextInput">TextInput</a>,
)</h4></section></summary><div class="docblock"><p>Operates on a widget that has text input.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.text" class="method"><h4 class="code-header">fn <a href="#method.text" class="fn">text</a>(&amp;mut self, _id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _text: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</h4></section></summary><div class="docblock"><p>Operates on a widget that contains some text.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.custom" class="method"><h4 class="code-header">fn <a href="#method.custom" class="fn">custom</a>(
&amp;mut self,
_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>&gt;,
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
_state: &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static),
)</h4></section></summary><div class="docblock"><p>Operates on a custom widget with some state.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.finish" class="method"><h4 class="code-header">fn <a href="#method.finish" class="fn">finish</a>(&amp;self) -&gt; <a class="enum" href="../../daemon/program/graphics/core/widget/operation/enum.Outcome.html" title="enum cosmic::iced::daemon::program::graphics::core::widget::operation::Outcome">Outcome</a>&lt;T&gt;</h4></section></summary><div class="docblock"><p>Finishes the <a href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation"><code>Operation</code></a> and returns its <a href="../../daemon/program/graphics/core/widget/operation/enum.Outcome.html" title="enum cosmic::iced::daemon::program::graphics::core::widget::operation::Outcome"><code>Outcome</code></a>.</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-Operation%3CO%3E-for-Box%3CT%3E" class="impl"><a href="#impl-Operation%3CO%3E-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, O&gt; <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>&lt;O&gt; for <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>&lt;T&gt;<div class="where">where
T: <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a>&lt;O&gt; + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></div><script src="../../../../trait.impl/iced_core/widget/operation/trait.Operation.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long