deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
121
cosmic/iced/advanced/enum.InputMethod.html
Normal file
121
cosmic/iced/advanced/enum.InputMethod.html
Normal file
File diff suppressed because one or more lines are too long
3
cosmic/iced/advanced/index.html
Normal file
3
cosmic/iced/advanced/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>
|
||||
1
cosmic/iced/advanced/sidebar-items.js
Normal file
1
cosmic/iced/advanced/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["InputMethod"],"mod":["subscription","widget"],"struct":["Layout","Shell","Text"],"trait":["Clipboard","Overlay","Renderer","Widget"]};
|
||||
84
cosmic/iced/advanced/struct.Layout.html
Normal file
84
cosmic/iced/advanced/struct.Layout.html
Normal file
File diff suppressed because one or more lines are too long
108
cosmic/iced/advanced/struct.Shell.html
Normal file
108
cosmic/iced/advanced/struct.Shell.html
Normal file
File diff suppressed because one or more lines are too long
113
cosmic/iced/advanced/struct.Text.html
Normal file
113
cosmic/iced/advanced/struct.Text.html
Normal file
File diff suppressed because one or more lines are too long
82
cosmic/iced/advanced/subscription/enum.Event.html
Normal file
82
cosmic/iced/advanced/subscription/enum.Event.html
Normal file
File diff suppressed because one or more lines are too long
4
cosmic/iced/advanced/subscription/fn.from_recipe.html
Normal file
4
cosmic/iced/advanced/subscription/fn.from_recipe.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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<T>(
|
||||
recipe: impl <a class="trait" href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe">Recipe</a><Output = T> + 'static,
|
||||
) -> <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><T></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>
|
||||
4
cosmic/iced/advanced/subscription/fn.into_recipes.html
Normal file
4
cosmic/iced/advanced/subscription/fn.into_recipes.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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<T>(
|
||||
subscription: <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><T>,
|
||||
) -> <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><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Recipe.html" title="trait cosmic::iced::advanced::subscription::Recipe">Recipe</a><Output = T>>></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>
|
||||
2
cosmic/iced/advanced/subscription/index.html
Normal file
2
cosmic/iced/advanced/subscription/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>
|
||||
1
cosmic/iced/advanced/subscription/sidebar-items.js
Normal file
1
cosmic/iced/advanced/subscription/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Event"],"fn":["from_recipe","into_recipes"],"trait":["Recipe"],"type":["EventStream","Hasher"]};
|
||||
23
cosmic/iced/advanced/subscription/trait.Recipe.html
Normal file
23
cosmic/iced/advanced/subscription/trait.Recipe.html
Normal 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>(&self, state: &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><Self>,
|
||||
input: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a><Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>,
|
||||
) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a><Item = Self::<a class="associatedtype" href="trait.Recipe.html#associatedtype.Output" title="type cosmic::iced::advanced::subscription::Recipe::Output">Output</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>;
|
||||
}</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>(&self, state: &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><Self>,
|
||||
input: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a><Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>,
|
||||
) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a><Item = Self::<a class="associatedtype" href="trait.Recipe.html#associatedtype.Output" title="type cosmic::iced::advanced::subscription::Recipe::Output">Output</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>></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>
|
||||
3
cosmic/iced/advanced/subscription/type.EventStream.html
Normal file
3
cosmic/iced/advanced/subscription/type.EventStream.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A 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><<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../daemon/program/graphics/futures/futures/trait.Stream.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Stream">Stream</a><Item = <a class="enum" href="enum.Event.html" title="enum cosmic::iced::advanced::subscription::Event">Event</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>;</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>
|
||||
2
cosmic/iced/advanced/subscription/type.Hasher.html
Normal file
2
cosmic/iced/advanced/subscription/type.Hasher.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>
|
||||
84
cosmic/iced/advanced/trait.Clipboard.html
Normal file
84
cosmic/iced/advanced/trait.Clipboard.html
Normal 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>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.write" class="fn">write</a>(&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>(
|
||||
&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><<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>>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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>)> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.write_data" class="fn">write_data</a>(
|
||||
&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><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../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>>>,
|
||||
) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
|
||||
&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><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
||||
) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.set_action" class="fn">set_action</a>(&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>(
|
||||
&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><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
||||
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
||||
_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><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>>,
|
||||
_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>(&self) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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>)> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&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>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>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>(&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>(
|
||||
&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><<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>>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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>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>(
|
||||
&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><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../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>>>,
|
||||
)</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>(
|
||||
&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><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
||||
)</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>(&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>(
|
||||
&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><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
||||
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
||||
_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><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>>,
|
||||
_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>(&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>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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>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>(&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>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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.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>(&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>(&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><<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>>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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.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>(
|
||||
&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><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../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>>>,
|
||||
)</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>(
|
||||
&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><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
||||
icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
||||
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><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>>,
|
||||
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>(
|
||||
&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><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
||||
)</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>(&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>(&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>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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.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>(&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>(&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>
|
||||
99
cosmic/iced/advanced/trait.Overlay.html
Normal file
99
cosmic/iced/advanced/trait.Overlay.html
Normal 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<Message, Theme, Renderer><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>(&mut self, renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>, bounds: <a class="struct" href="../struct.Size.html" title="struct cosmic::iced::Size">Size</a>) -> <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>(
|
||||
&self,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>,
|
||||
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>,
|
||||
style: &<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><'_>,
|
||||
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>(
|
||||
&mut self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
_operation: &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>(
|
||||
&mut self,
|
||||
_event: &<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><'_>,
|
||||
_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">&Renderer</a>,
|
||||
_clipboard: &mut dyn <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
|
||||
_shell: &mut <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a><'_, Message>,
|
||||
) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
|
||||
&self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
_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">&Renderer</a>,
|
||||
) -> <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><'a>(
|
||||
&'a mut self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'a>,
|
||||
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/overlay/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Element">Element</a><'a, Message, Theme, Renderer>> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.index" class="fn">index</a>(&self) -> <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>(&mut self, renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>, bounds: <a class="struct" href="../struct.Size.html" title="struct cosmic::iced::Size">Size</a>) -> <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>(
|
||||
&self,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>,
|
||||
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>,
|
||||
style: &<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><'_>,
|
||||
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>(
|
||||
&mut self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
_operation: &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>(
|
||||
&mut self,
|
||||
_event: &<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><'_>,
|
||||
_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">&Renderer</a>,
|
||||
_clipboard: &mut dyn <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
|
||||
_shell: &mut <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a><'_, Message>,
|
||||
)</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>(
|
||||
&self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
_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">&Renderer</a>,
|
||||
) -> <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><'a>(
|
||||
&'a mut self,
|
||||
_layout: <a class="struct" href="struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'a>,
|
||||
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/overlay/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Element">Element</a><'a, Message, Theme, Renderer>></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>(&self) -> <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<Message, Renderer> <a class="trait" href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay">Overlay</a><Message, <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>, Renderer> for <a class="struct" href="../../widget/popover/struct.Overlay.html" title="struct cosmic::widget::popover::Overlay">Overlay</a><'_, '_, Message, Renderer><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<Message, Theme, Renderer> <a class="trait" href="trait.Overlay.html" title="trait cosmic::iced::advanced::Overlay">Overlay</a><Message, Theme, Renderer> 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><'_, Message, Theme, Renderer><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>
|
||||
63
cosmic/iced/advanced/trait.Renderer.html
Normal file
63
cosmic/iced/advanced/trait.Renderer.html
Normal 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<A, B>">Renderer<A, B></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>(&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>(&mut self);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.start_transformation" class="fn">start_transformation</a>(&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>(&mut self);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.fill_quad" class="fn">fill_quad</a>(&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><<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.reset" class="fn">reset</a>(&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>(
|
||||
&mut self,
|
||||
handle: &<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><<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>>) + <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>(&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>(&mut Self)) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.with_transformation" class="fn">with_transformation</a>(
|
||||
&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>(&mut Self),
|
||||
) { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.with_translation" class="fn">with_translation</a>(
|
||||
&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>(&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>(&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>(&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>(&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>(&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>(&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><<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>)</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>(&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>(
|
||||
&mut self,
|
||||
handle: &<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><<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>>) + <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>(&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>(&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>(
|
||||
&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>(&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>(&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>(&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>(&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>(&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>(&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>(&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>(&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>(&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><<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>)</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>(
|
||||
&mut self,
|
||||
handle: &<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><<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>>) + <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>(&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>(&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>(&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>(&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>(&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><<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>)</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>(&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>(
|
||||
&mut self,
|
||||
_handle: &<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><<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>>) + <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<A, B> <a class="trait" href="trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a> for Renderer<A, B><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>(&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><<a class="enum" href="../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>)</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>(&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>(&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>(&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>(&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>(&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>(
|
||||
&mut self,
|
||||
handle: &<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><<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>>) + <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>
|
||||
280
cosmic/iced/advanced/trait.Widget.html
Normal file
280
cosmic/iced/advanced/trait.Widget.html
Normal file
File diff suppressed because one or more lines are too long
4
cosmic/iced/advanced/widget/fn.operate.html
Normal file
4
cosmic/iced/advanced/widget/fn.operate.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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<T>(operation: impl <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a><T> + 'static) -> <a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><T><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>
|
||||
4
cosmic/iced/advanced/widget/index.html
Normal file
4
cosmic/iced/advanced/widget/index.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>
|
||||
1
cosmic/iced/advanced/widget/sidebar-items.js
Normal file
1
cosmic/iced/advanced/widget/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["operate"],"struct":["Id","Text","Tree"],"trait":["Operation","Widget"]};
|
||||
85
cosmic/iced/advanced/widget/struct.Id.html
Normal file
85
cosmic/iced/advanced/widget/struct.Id.html
Normal file
File diff suppressed because one or more lines are too long
200
cosmic/iced/advanced/widget/struct.Text.html
Normal file
200
cosmic/iced/advanced/widget/struct.Text.html
Normal file
File diff suppressed because one or more lines are too long
100
cosmic/iced/advanced/widget/struct.Tree.html
Normal file
100
cosmic/iced/advanced/widget/struct.Tree.html
Normal file
File diff suppressed because one or more lines are too long
72
cosmic/iced/advanced/widget/trait.Operation.html
Normal file
72
cosmic/iced/advanced/widget/trait.Operation.html
Normal 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<T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>: <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>(&mut self, operate: &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>(&mut dyn <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a><T>));
|
||||
|
||||
// Provided methods
|
||||
fn <a href="#method.container" class="fn">container</a>(&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>, _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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_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: &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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _text: &<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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(&self) -> <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><T> { ... }
|
||||
}</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>(&mut self, operate: &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>(&mut dyn <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a><T>))</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>(&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>, _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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_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: &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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>, _bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _text: &<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>(
|
||||
&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><&<a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_state: &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>(&self) -> <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><T></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<T, O> <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a><O> 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><T><div class="where">where
|
||||
T: <a class="trait" href="../../../widget/trait.Operation.html" title="trait cosmic::widget::Operation">Operation</a><O> + ?<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>
|
||||
280
cosmic/iced/advanced/widget/trait.Widget.html
Normal file
280
cosmic/iced/advanced/widget/trait.Widget.html
Normal file
File diff suppressed because one or more lines are too long
34
cosmic/iced/application/fn.application.html
Normal file
34
cosmic/iced/application/fn.application.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!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 an iced `Application` given its boot, update, and view logic."><title>application in cosmic::iced::application - 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"><section id="rustdoc-toc"><h2 class="location"><a href="#">application</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>application</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">application</a></div><h1>Function <span class="fn">application</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 application<State, Message, Theme, Renderer>(
|
||||
boot: impl <a class="trait" href="trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message>,
|
||||
update: impl <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn">UpdateFn</a><State, Message>,
|
||||
view: impl for<'a> <a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer>,
|
||||
) -> <a class="struct" href="../struct.Application.html" title="struct cosmic::iced::Application">Application</a><impl <a class="trait" href="../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = State, Message = Message, Theme = Theme>><div class="where">where
|
||||
State: 'static,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
|
||||
Theme: <a class="trait" href="../daemon/program/graphics/core/theme/trait.Base.html" title="trait cosmic::iced::daemon::program::graphics::core::theme::Base">Base</a>,
|
||||
Renderer: <a class="trait" href="../daemon/program/trait.Renderer.html" title="trait cosmic::iced::daemon::program::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an iced <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> given its boot, update, and view logic.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::{button, column, text, Column};
|
||||
|
||||
<span class="kw">pub fn </span>main() -> iced::Result {
|
||||
iced::application(u64::default, update, view).run()
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
Increment,
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(value: <span class="kw-2">&mut </span>u64, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::Increment => <span class="kw-2">*</span>value += <span class="number">1</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(value: <span class="kw-2">&</span>u64) -> Column<Message> {
|
||||
<span class="macro">column!</span>[
|
||||
text(value),
|
||||
button(<span class="string">"+"</span>).on_press(Message::Increment),
|
||||
]
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
17
cosmic/iced/application/fn.timed.html
Normal file
17
cosmic/iced/application/fn.timed.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!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 an `Application` with an `update` function that also takes the `Instant` of each `Message`."><title>timed in cosmic::iced::application - 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>application</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">application</a></div><h1>Function <span class="fn">timed</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 timed<State, Message, Theme, Renderer>(
|
||||
boot: impl <a class="trait" href="trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message>,
|
||||
update: impl <a class="trait" href="timed/trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message>,
|
||||
subscription: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <a class="struct" href="../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><Message>,
|
||||
view: impl for<'a> <a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer>,
|
||||
) -> <a class="struct" href="../struct.Application.html" title="struct cosmic::iced::Application">Application</a><impl <a class="trait" href="../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = State, Message = (Message, <a class="struct" href="../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>), Theme = Theme>><div class="where">where
|
||||
State: 'static,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
|
||||
Theme: <a class="trait" href="../daemon/program/graphics/core/theme/trait.Base.html" title="trait cosmic::iced::daemon::program::graphics::core::theme::Base">Base</a> + 'static,
|
||||
Renderer: <a class="trait" href="../daemon/program/trait.Renderer.html" title="trait cosmic::iced::daemon::program::Renderer">Renderer</a> + 'static,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</p>
|
||||
<p>This constructor is useful to create animated applications that
|
||||
are <em>pure</em> (e.g. without relying on side-effect calls like <a href="../time/struct.Instant.html#method.now" title="associated function cosmic::iced::time::Instant::now"><code>Instant::now</code></a>).</p>
|
||||
<p>Purity is needed when you want your application to end up in the
|
||||
same exact state given the same history of messages. This property
|
||||
enables proper time traveling debugging with <a href="https://github.com/iced-rs/comet"><code>comet</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
31
cosmic/iced/application/index.html
Normal file
31
cosmic/iced/application/index.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!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 and run iced applications step by step."><title>cosmic::iced::application - 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 application</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#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</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>application</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 and run iced applications step by step.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::{button, column, text, Column};
|
||||
<span class="kw">use </span>iced::Theme;
|
||||
|
||||
<span class="kw">pub fn </span>main() -> iced::Result {
|
||||
iced::application(u64::default, update, view)
|
||||
.theme(Theme::Dark)
|
||||
.centered()
|
||||
.run()
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
Increment,
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(value: <span class="kw-2">&mut </span>u64, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::Increment => <span class="kw-2">*</span>value += <span class="number">1</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(value: <span class="kw-2">&</span>u64) -> Column<Message> {
|
||||
<span class="macro">column!</span>[
|
||||
text(value),
|
||||
button(<span class="string">"+"</span>).on_press(Message::Increment),
|
||||
]
|
||||
}</code></pre></div>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="timed/index.html" title="mod cosmic::iced::application::timed">timed</a></dt><dd>An <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> that receives an <a href="../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> in update logic.</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.Application.html" title="struct cosmic::iced::application::Application">Application</a></dt><dd>The underlying definition and configuration of an iced application.</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.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a></dt><dd>The logic to initialize the <code>State</code> of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.IntoBoot.html" title="trait cosmic::iced::application::IntoBoot">Into<wbr>Boot</a></dt><dd>The initial state of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.ThemeFn.html" title="trait cosmic::iced::application::ThemeFn">ThemeFn</a></dt><dd>The theme logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.TitleFn.html" title="trait cosmic::iced::application::TitleFn">TitleFn</a></dt><dd>The title logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn">Update<wbr>Fn</a></dt><dd>The update logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a></dt><dd>The view logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</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.application.html" title="fn cosmic::iced::application::application">application</a></dt><dd>Creates an iced <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> given its boot, update, and view logic.</dd><dt><a class="fn" href="fn.timed.html" title="fn cosmic::iced::application::timed">timed</a></dt><dd>Creates an <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/application/sidebar-items.js
Normal file
1
cosmic/iced/application/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["application","timed"],"mod":["timed"],"struct":["Application"],"trait":["BootFn","IntoBoot","ThemeFn","TitleFn","UpdateFn","ViewFn"]};
|
||||
154
cosmic/iced/application/struct.Application.html
Normal file
154
cosmic/iced/application/struct.Application.html
Normal file
File diff suppressed because one or more lines are too long
17
cosmic/iced/application/timed/fn.timed.html
Normal file
17
cosmic/iced/application/timed/fn.timed.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!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 an `Application` with an `update` function that also takes the `Instant` of each `Message`."><title>timed in cosmic::iced::application::timed - 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>application::<wbr>timed</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">application</a>::<wbr><a href="index.html">timed</a></div><h1>Function <span class="fn">timed</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 timed<State, Message, Theme, Renderer>(
|
||||
boot: impl <a class="trait" href="../trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message>,
|
||||
update: impl <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message>,
|
||||
subscription: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><Message>,
|
||||
view: impl for<'a> <a class="trait" href="../trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer>,
|
||||
) -> <a class="struct" href="../../struct.Application.html" title="struct cosmic::iced::Application">Application</a><impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = State, Message = (Message, <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>), Theme = Theme>><div class="where">where
|
||||
State: 'static,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
|
||||
Theme: <a class="trait" href="../../daemon/program/graphics/core/theme/trait.Base.html" title="trait cosmic::iced::daemon::program::graphics::core::theme::Base">Base</a> + 'static,
|
||||
Renderer: <a class="trait" href="../../daemon/program/trait.Renderer.html" title="trait cosmic::iced::daemon::program::Renderer">Renderer</a> + 'static,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</p>
|
||||
<p>This constructor is useful to create animated applications that
|
||||
are <em>pure</em> (e.g. without relying on side-effect calls like <a href="../../time/struct.Instant.html#method.now" title="associated function cosmic::iced::time::Instant::now"><code>Instant::now</code></a>).</p>
|
||||
<p>Purity is needed when you want your application to end up in the
|
||||
same exact state given the same history of messages. This property
|
||||
enables proper time traveling debugging with <a href="https://github.com/iced-rs/comet"><code>comet</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/application/timed/index.html
Normal file
3
cosmic/iced/application/timed/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An `Application` that receives an `Instant` in update logic."><title>cosmic::iced::application::timed - 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 timed</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><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>application</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">application</a></div><h1>Module <span>timed</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>An <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> that receives an <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> in update logic.</p>
|
||||
</div></details><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">Update<wbr>Fn</a></dt><dd>The update logic of some timed <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</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.timed.html" title="fn cosmic::iced::application::timed::timed">timed</a></dt><dd>Creates an <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/application/timed/sidebar-items.js
Normal file
1
cosmic/iced/application/timed/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["timed"],"trait":["UpdateFn"]};
|
||||
25
cosmic/iced/application/timed/trait.UpdateFn.html
Normal file
25
cosmic/iced/application/timed/trait.UpdateFn.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<!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 update logic of some timed `Application`."><title>UpdateFn in cosmic::iced::application::timed - 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="#">Update<wbr>Fn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.update" title="update">update</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-UpdateFn%3CState,+Message%3E-for-()" title="()">()</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>application::<wbr>timed</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">application</a>::<wbr><a href="index.html">timed</a></div><h1>Trait <span class="trait">UpdateFn</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 UpdateFn<State, Message> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
message: Message,
|
||||
now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The update logic of some timed <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This is like <a href="../trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn"><code>application::UpdateFn</code></a>,
|
||||
but it also takes an <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a>.</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.update" class="method"><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
message: Message,
|
||||
now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>></h4></section></summary><div class="docblock"><p>Processes the message and updates the state of the <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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-UpdateFn%3CState,+Message%3E-for-()" class="impl"><a href="#impl-UpdateFn%3CState,+Message%3E-for-()" class="anchor">§</a><h3 class="code-header">impl<State, Message> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message> 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.update" class="method trait-impl"><a href="#method.update" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
_state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
_message: Message,
|
||||
_now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>></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-UpdateFn%3CState,+Message%3E-for-T" class="impl"><a href="#impl-UpdateFn%3CState,+Message%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, State, Message, C> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, Message, <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>) -> C,
|
||||
C: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>>,</div></h3></section></div><script src="../../../../trait.impl/iced/application/timed/trait.UpdateFn.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
13
cosmic/iced/application/trait.BootFn.html
Normal file
13
cosmic/iced/application/trait.BootFn.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!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 logic to initialize the `State` of some `Application`."><title>BootFn in cosmic::iced::application - 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="#">BootFn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.boot" title="boot">boot</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>application</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">application</a></div><h1>Trait <span class="trait">BootFn</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 BootFn<State, Message> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.boot" class="fn">boot</a>(&self) -> (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The logic to initialize the <code>State</code> of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This trait is implemented for both <code>Fn() -> State</code> and
|
||||
<code>Fn() -> (State, Task<Message>)</code>.</p>
|
||||
<p>In practice, this means that <a href="../fn.application.html" title="fn cosmic::iced::application"><code>application</code></a> can both take
|
||||
simple functions like <code>State::default</code> and more advanced ones
|
||||
that return a <a href="../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a>.</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.boot" class="method"><h4 class="code-header">fn <a href="#tymethod.boot" class="fn">boot</a>(&self) -> (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>)</h4></section></summary><div class="docblock"><p>Initializes the <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> state.</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-BootFn%3CState,+Message%3E-for-T" class="impl"><a href="#impl-BootFn%3CState,+Message%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, C, State, Message> <a class="trait" href="trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> C,
|
||||
C: <a class="trait" href="trait.IntoBoot.html" title="trait cosmic::iced::application::IntoBoot">IntoBoot</a><State, Message>,</div></h3></section></div><script src="../../../trait.impl/iced/application/trait.BootFn.js" async></script></section></div></main></body></html>
|
||||
6
cosmic/iced/application/trait.IntoBoot.html
Normal file
6
cosmic/iced/application/trait.IntoBoot.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The initial state of some `Application`."><title>IntoBoot in cosmic::iced::application - 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="#">Into<wbr>Boot</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.into_boot" title="into_boot">into_boot</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-IntoBoot%3CState,+Message%3E-for-(State,+Task%3CMessage%3E)" title="(State, Task<Message>)">(State, Task<Message>)</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>application</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">application</a></div><h1>Trait <span class="trait">IntoBoot</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 IntoBoot<State, Message> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.into_boot" class="fn">into_boot</a>(self) -> (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The initial state of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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.into_boot" class="method"><h4 class="code-header">fn <a href="#tymethod.into_boot" class="fn">into_boot</a>(self) -> (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>)</h4></section></summary><div class="docblock"><p>Turns some type into the initial state of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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-IntoBoot%3CState,+Message%3E-for-(State,+Task%3CMessage%3E)" class="impl"><a href="#impl-IntoBoot%3CState,+Message%3E-for-(State,+Task%3CMessage%3E)" class="anchor">§</a><h3 class="code-header">impl<State, Message> <a class="trait" href="trait.IntoBoot.html" title="trait cosmic::iced::application::IntoBoot">IntoBoot</a><State, Message> for (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>)</h3></section></summary><div class="impl-items"><section id="method.into_boot" class="method trait-impl"><a href="#method.into_boot" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.into_boot" class="fn">into_boot</a>(self) -> (State, <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>)</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-IntoBoot%3CState,+Message%3E-for-State" class="impl"><a href="#impl-IntoBoot%3CState,+Message%3E-for-State" class="anchor">§</a><h3 class="code-header">impl<State, Message> <a class="trait" href="trait.IntoBoot.html" title="trait cosmic::iced::application::IntoBoot">IntoBoot</a><State, Message> for State</h3></section></div><script src="../../../trait.impl/iced/application/trait.IntoBoot.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
17
cosmic/iced/application/trait.ThemeFn.html
Normal file
17
cosmic/iced/application/trait.ThemeFn.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme logic of some `Application`."><title>ThemeFn in cosmic::iced::application - 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="#">ThemeFn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.theme" title="theme">theme</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>application</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">application</a></div><h1>Trait <span class="trait">ThemeFn</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 ThemeFn<State, Theme> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.theme" class="fn">theme</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Theme>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>Any implementors of this trait can be provided as an argument to
|
||||
<a href="../struct.Application.html#method.theme" title="method cosmic::iced::Application::theme"><code>Application::theme</code></a>.</p>
|
||||
<p><code>iced</code> provides two implementors:</p>
|
||||
<ul>
|
||||
<li>the built-in <a href="../enum.Theme.html" title="enum cosmic::iced::Theme"><code>Theme</code></a> itself</li>
|
||||
<li>and any <code>Fn(&State) -> impl Into<Option<Theme>></code>.</li>
|
||||
</ul>
|
||||
</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.theme" class="method"><h4 class="code-header">fn <a href="#tymethod.theme" class="fn">theme</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Theme></h4></section></summary><div class="docblock"><p>Returns the theme of the <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> for the current state.</p>
|
||||
<p>If <code>None</code> is returned, <code>iced</code> will try to use a theme that
|
||||
matches the system color scheme.</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-ThemeFn%3CState,+Theme%3E-for-F" class="impl"><a href="#impl-ThemeFn%3CState,+Theme%3E-for-F" class="anchor">§</a><h3 class="code-header">impl<F, T, State, Theme> <a class="trait" href="trait.ThemeFn.html" title="trait cosmic::iced::application::ThemeFn">ThemeFn</a><State, Theme> for F<div class="where">where
|
||||
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> T,
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Theme>>,</div></h3></section><section id="impl-ThemeFn%3CState,+Theme%3E-for-Theme" class="impl"><a href="#impl-ThemeFn%3CState,+Theme%3E-for-Theme" class="anchor">§</a><h3 class="code-header">impl<State> <a class="trait" href="trait.ThemeFn.html" title="trait cosmic::iced::application::ThemeFn">ThemeFn</a><State, <a class="enum" href="../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>> for <a class="enum" href="../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></div><script src="../../../trait.impl/iced/application/trait.ThemeFn.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
10
cosmic/iced/application/trait.TitleFn.html
Normal file
10
cosmic/iced/application/trait.TitleFn.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!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 title logic of some `Application`."><title>TitleFn in cosmic::iced::application - 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="#">TitleFn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.title" title="title">title</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-TitleFn%3CState%3E-for-%26str" title="&'static str">&'static str</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>application</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">application</a></div><h1>Trait <span class="trait">TitleFn</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 TitleFn<State> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.title" class="fn">title</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <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>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The title logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This trait is implemented both for <code>&static str</code> and
|
||||
any closure <code>Fn(&State) -> String</code>.</p>
|
||||
<p>This trait allows the <a href="../fn.application.html" title="fn cosmic::iced::application"><code>application</code></a> builder to take any of them.</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.title" class="method"><h4 class="code-header">fn <a href="#tymethod.title" class="fn">title</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <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>Produces the title of the <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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-TitleFn%3CState%3E-for-%26str" class="impl"><a href="#impl-TitleFn%3CState%3E-for-%26str" class="anchor">§</a><h3 class="code-header">impl<State> <a class="trait" href="trait.TitleFn.html" title="trait cosmic::iced::application::TitleFn">TitleFn</a><State> for &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.title" class="method trait-impl"><a href="#method.title" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.title" class="fn">title</a>(&self, _state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <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></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-TitleFn%3CState%3E-for-T" class="impl"><a href="#impl-TitleFn%3CState%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, State> <a class="trait" href="trait.TitleFn.html" title="trait cosmic::iced::application::TitleFn">TitleFn</a><State> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <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>,</div></h3></section></div><script src="../../../trait.impl/iced/application/trait.TitleFn.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
10
cosmic/iced/application/trait.UpdateFn.html
Normal file
10
cosmic/iced/application/trait.UpdateFn.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!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 update logic of some `Application`."><title>UpdateFn in cosmic::iced::application - 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="#">Update<wbr>Fn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.update" title="update">update</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-UpdateFn%3CState,+Never%3E-for-()" title="()">()</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>application</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">application</a></div><h1>Trait <span class="trait">UpdateFn</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 UpdateFn<State, Message> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.update" class="fn">update</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, message: Message) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The update logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This trait allows the <a href="../fn.application.html" title="fn cosmic::iced::application"><code>application</code></a> builder to take any closure that
|
||||
returns any <code>Into<Task<Message>></code>.</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.update" class="method"><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, message: Message) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message></h4></section></summary><div class="docblock"><p>Processes the message and updates the state of the <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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-UpdateFn%3CState,+Never%3E-for-()" class="impl"><a href="#impl-UpdateFn%3CState,+Never%3E-for-()" class="anchor">§</a><h3 class="code-header">impl<State> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn">UpdateFn</a><State, <a class="enum" href="../enum.Never.html" title="enum cosmic::iced::Never">Infallible</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.update" class="method trait-impl"><a href="#method.update" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(&self, _state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, _message: <a class="enum" href="../enum.Never.html" title="enum cosmic::iced::Never">Infallible</a>) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="../enum.Never.html" title="enum cosmic::iced::Never">Infallible</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-UpdateFn%3CState,+Message%3E-for-T" class="impl"><a href="#impl-UpdateFn%3CState,+Message%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, State, Message, C> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn">UpdateFn</a><State, Message> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, Message) -> C,
|
||||
C: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>>,</div></h3></section></div><script src="../../../trait.impl/iced/application/trait.UpdateFn.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
11
cosmic/iced/application/trait.ViewFn.html
Normal file
11
cosmic/iced/application/trait.ViewFn.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The view logic of some `Application`."><title>ViewFn in cosmic::iced::application - 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="#">ViewFn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.view" title="view">view</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>application</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">application</a></div><h1>Trait <span class="trait">ViewFn</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 ViewFn<'a, State, Message, Theme, Renderer> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.view" class="fn">view</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a State</a>) -> <a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The view logic of some <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This trait allows the <a href="../fn.application.html" title="fn cosmic::iced::application"><code>application</code></a> builder to take any closure that
|
||||
returns any <code>Into<Element<'_, Message>></code>.</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.view" class="method"><h4 class="code-header">fn <a href="#tymethod.view" class="fn">view</a>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a State</a>) -> <a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer></h4></section></summary><div class="docblock"><p>Produces the widget of the <a href="../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</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-ViewFn%3C'a,+State,+Message,+Theme,+Renderer%3E-for-T" class="impl"><a href="#impl-ViewFn%3C'a,+State,+Message,+Theme,+Renderer%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<'a, T, State, Message, Theme, Renderer, Widget> <a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a State</a>) -> Widget,
|
||||
State: 'static,
|
||||
Widget: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,</div></h3></section></div><script src="../../../trait.impl/iced/application/trait.ViewFn.js" async></script></section></div></main></body></html>
|
||||
82
cosmic/iced/clipboard/dnd/enum.DndEvent.html
Normal file
82
cosmic/iced/clipboard/dnd/enum.DndEvent.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/iced/clipboard/dnd/enum.Icon.html
Normal file
76
cosmic/iced/clipboard/dnd/enum.Icon.html
Normal file
File diff suppressed because one or more lines are too long
102
cosmic/iced/clipboard/dnd/enum.OfferEvent.html
Normal file
102
cosmic/iced/clipboard/dnd/enum.OfferEvent.html
Normal file
File diff suppressed because one or more lines are too long
82
cosmic/iced/clipboard/dnd/enum.SourceEvent.html
Normal file
82
cosmic/iced/clipboard/dnd/enum.SourceEvent.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/iced/clipboard/dnd/index.html
Normal file
1
cosmic/iced/clipboard/dnd/index.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/iced/clipboard/dnd/platform/index.html
Normal file
1
cosmic/iced/clipboard/dnd/platform/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `platform` mod in crate `cosmic`."><title>cosmic::iced::clipboard::dnd::platform - 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"><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>clipboard::<wbr>dnd</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">clipboard</a>::<wbr><a href="../index.html">dnd</a></div><h1>Module <span>platform</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></section></div></main></body></html>
|
||||
1
cosmic/iced/clipboard/dnd/platform/sidebar-items.js
Normal file
1
cosmic/iced/clipboard/dnd/platform/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {};
|
||||
1
cosmic/iced/clipboard/dnd/sidebar-items.js
Normal file
1
cosmic/iced/clipboard/dnd/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["DndEvent","Icon","OfferEvent","SourceEvent"],"mod":["platform"],"struct":["DataWrapper","DndAction","DndDestinationRectangle","DndSurface","Rectangle"],"trait":["Sender"]};
|
||||
79
cosmic/iced/clipboard/dnd/struct.DataWrapper.html
Normal file
79
cosmic/iced/clipboard/dnd/struct.DataWrapper.html
Normal file
File diff suppressed because one or more lines are too long
137
cosmic/iced/clipboard/dnd/struct.DndAction.html
Normal file
137
cosmic/iced/clipboard/dnd/struct.DndAction.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
67
cosmic/iced/clipboard/dnd/struct.DndSurface.html
Normal file
67
cosmic/iced/clipboard/dnd/struct.DndSurface.html
Normal file
File diff suppressed because one or more lines are too long
74
cosmic/iced/clipboard/dnd/struct.Rectangle.html
Normal file
74
cosmic/iced/clipboard/dnd/struct.Rectangle.html
Normal file
File diff suppressed because one or more lines are too long
5
cosmic/iced/clipboard/dnd/trait.Sender.html
Normal file
5
cosmic/iced/clipboard/dnd/trait.Sender.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Sender` trait in crate `cosmic`."><title>Sender in cosmic::iced::clipboard::dnd - 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="#">Sender</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.send" title="send">send</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>clipboard::<wbr>dnd</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">clipboard</a>::<wbr><a href="index.html">dnd</a></div><h1>Trait <span class="trait">Sender</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 Sender<T> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.send" class="fn">send</a>(&self, t: <a class="enum" href="enum.DndEvent.html" title="enum cosmic::iced::clipboard::dnd::DndEvent">DndEvent</a><T>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/mpsc/struct.SendError.html" title="struct std::sync::mpsc::SendError">SendError</a><<a class="enum" href="enum.DndEvent.html" title="enum cosmic::iced::clipboard::dnd::DndEvent">DndEvent</a><T>>>;
|
||||
}</code></pre><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.send" class="method"><h4 class="code-header">fn <a href="#tymethod.send" class="fn">send</a>(&self, t: <a class="enum" href="enum.DndEvent.html" title="enum cosmic::iced::clipboard::dnd::DndEvent">DndEvent</a><T>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/mpsc/struct.SendError.html" title="struct std::sync::mpsc::SendError">SendError</a><<a class="enum" href="enum.DndEvent.html" title="enum cosmic::iced::clipboard::dnd::DndEvent">DndEvent</a><T>>></h4></section></summary><div class="docblock"><p>Send an event in the channel</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/dnd/trait.Sender.js" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/clipboard/fn.read.html
Normal file
2
cosmic/iced/clipboard/fn.read.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Read the current contents of the clipboard."><title>read in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">read</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 read() -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read the current contents of the clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/clipboard/fn.read_data.html
Normal file
3
cosmic/iced/clipboard/fn.read_data.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Read the current contents of the clipboard."><title>read_data in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">read_data</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 read_data<T>() -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>><div class="where">where
|
||||
T: <a class="trait" href="mime/trait.AllowedMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AllowedMimeTypes">AllowedMimeTypes</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read the current contents of the clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/clipboard/fn.read_primary.html
Normal file
2
cosmic/iced/clipboard/fn.read_primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Read the current contents of the primary clipboard."><title>read_primary in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">read_primary</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 read_primary() -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read the current contents of the primary clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/clipboard/fn.read_primary_data.html
Normal file
3
cosmic/iced/clipboard/fn.read_primary_data.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Read from the primary clipboard"><title>read_primary_data in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">read_primary_data</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 read_primary_data<T>() -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>><div class="where">where
|
||||
T: <a class="trait" href="mime/trait.AllowedMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AllowedMimeTypes">AllowedMimeTypes</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read from the primary clipboard</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/clipboard/fn.write.html
Normal file
2
cosmic/iced/clipboard/fn.write.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Write the given contents to the clipboard."><title>write in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">write</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 write<T>(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>) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><T></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Write the given contents to the clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/iced/clipboard/fn.write_data.html
Normal file
4
cosmic/iced/clipboard/fn.write_data.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Write the given contents to the clipboard."><title>write_data in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">write_data</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 write_data<Message>(
|
||||
contents: impl <a class="trait" href="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> + 'static,
|
||||
) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Write the given contents to the clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/clipboard/fn.write_primary.html
Normal file
2
cosmic/iced/clipboard/fn.write_primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Write the given contents to the primary clipboard."><title>write_primary in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">write_primary</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 write_primary<Message>(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>) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Write the given contents to the primary clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/iced/clipboard/fn.write_primary_data.html
Normal file
4
cosmic/iced/clipboard/fn.write_primary_data.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Write the given contents to the clipboard."><title>write_primary_data in cosmic::iced::clipboard - 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>clipboard</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">clipboard</a></div><h1>Function <span class="fn">write_primary_data</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 write_primary_data<Message>(
|
||||
contents: impl <a class="trait" href="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> + 'static,
|
||||
) -> <a class="struct" href="../../struct.Task.html" title="struct cosmic::Task">Task</a><Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Write the given contents to the clipboard.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/clipboard/index.html
Normal file
2
cosmic/iced/clipboard/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Access the clipboard."><title>cosmic::iced::clipboard - 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 clipboard</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="#functions" title="Functions">Functions</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>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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Access the clipboard.</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="dnd/index.html" title="mod cosmic::iced::clipboard::dnd">dnd</a></dt><dt><a class="mod" href="mime/index.html" title="mod cosmic::iced::clipboard::mime">mime</a></dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.read.html" title="fn cosmic::iced::clipboard::read">read</a></dt><dd>Read the current contents of the clipboard.</dd><dt><a class="fn" href="fn.read_data.html" title="fn cosmic::iced::clipboard::read_data">read_<wbr>data</a></dt><dd>Read the current contents of the clipboard.</dd><dt><a class="fn" href="fn.read_primary.html" title="fn cosmic::iced::clipboard::read_primary">read_<wbr>primary</a></dt><dd>Read the current contents of the primary clipboard.</dd><dt><a class="fn" href="fn.read_primary_data.html" title="fn cosmic::iced::clipboard::read_primary_data">read_<wbr>primary_<wbr>data</a></dt><dd>Read from the primary clipboard</dd><dt><a class="fn" href="fn.write.html" title="fn cosmic::iced::clipboard::write">write</a></dt><dd>Write the given contents to the clipboard.</dd><dt><a class="fn" href="fn.write_data.html" title="fn cosmic::iced::clipboard::write_data">write_<wbr>data</a></dt><dd>Write the given contents to the clipboard.</dd><dt><a class="fn" href="fn.write_primary.html" title="fn cosmic::iced::clipboard::write_primary">write_<wbr>primary</a></dt><dd>Write the given contents to the primary clipboard.</dd><dt><a class="fn" href="fn.write_primary_data.html" title="fn cosmic::iced::clipboard::write_primary_data">write_<wbr>primary_<wbr>data</a></dt><dd>Write the given contents to the clipboard.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/clipboard/mime/index.html
Normal file
1
cosmic/iced/clipboard/mime/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cosmic` crate."><title>cosmic::iced::clipboard::mime - 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="../../../../crates.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 crate"><!--[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"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#modules">Crate 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="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>clipboard</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">clipboard</a></div><h1>Crate <span>mime</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><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="platform/index.html" title="mod cosmic::iced::clipboard::mime::platform">platform</a></dt></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.ClipboardData.html" title="struct cosmic::iced::clipboard::mime::ClipboardData">Clipboard<wbr>Data</a></dt><dd>Raw data from the clipboard</dd><dt><a class="struct" href="struct.ClipboardLoadData.html" title="struct cosmic::iced::clipboard::mime::ClipboardLoadData">Clipboard<wbr>Load<wbr>Data</a></dt><dd>Data that can be loaded from the clipboard.</dd><dt><a class="struct" href="struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">Clipboard<wbr>Store<wbr>Data</a></dt><dd>Data that can be stored to the clipboard.</dd><dt><a class="struct" href="struct.Error.html" title="struct cosmic::iced::clipboard::mime::Error">Error</a></dt></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.AllowedMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AllowedMimeTypes">Allowed<wbr>Mime<wbr>Types</a></dt><dd>Describes the mime types which are accepted.</dd><dt><a class="trait" href="trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMime<wbr>Types</a></dt><dd>Can be converted to data with the available mime types.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/clipboard/mime/platform/index.html
Normal file
1
cosmic/iced/clipboard/mime/platform/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `platform` mod in crate `cosmic`."><title>cosmic::iced::clipboard::mime::platform - 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 platform</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>clipboard::<wbr>mime</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">clipboard</a>::<wbr><a href="../index.html">mime</a></div><h1>Module <span>platform</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><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="linux/index.html" title="mod cosmic::iced::clipboard::mime::platform::linux">linux</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/clipboard/mime/platform/linux/index.html
Normal file
1
cosmic/iced/clipboard/mime/platform/linux/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `linux` mod in crate `cosmic`."><title>cosmic::iced::clipboard::mime::platform::linux - 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"><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>clipboard::<wbr>mime::<wbr>platform</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">clipboard</a>::<wbr><a href="../../index.html">mime</a>::<wbr><a href="../index.html">platform</a></div><h1>Module <span>linux</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></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {};
|
||||
1
cosmic/iced/clipboard/mime/platform/sidebar-items.js
Normal file
1
cosmic/iced/clipboard/mime/platform/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"mod":["linux"]};
|
||||
1
cosmic/iced/clipboard/mime/sidebar-items.js
Normal file
1
cosmic/iced/clipboard/mime/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"mod":["platform"],"struct":["ClipboardData","ClipboardLoadData","ClipboardStoreData","Error"],"trait":["AllowedMimeTypes","AsMimeTypes"]};
|
||||
68
cosmic/iced/clipboard/mime/struct.ClipboardData.html
Normal file
68
cosmic/iced/clipboard/mime/struct.ClipboardData.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/iced/clipboard/mime/struct.ClipboardLoadData.html
Normal file
76
cosmic/iced/clipboard/mime/struct.ClipboardLoadData.html
Normal file
File diff suppressed because one or more lines are too long
73
cosmic/iced/clipboard/mime/struct.ClipboardStoreData.html
Normal file
73
cosmic/iced/clipboard/mime/struct.ClipboardStoreData.html
Normal file
File diff suppressed because one or more lines are too long
69
cosmic/iced/clipboard/mime/struct.Error.html
Normal file
69
cosmic/iced/clipboard/mime/struct.Error.html
Normal file
File diff suppressed because one or more lines are too long
12
cosmic/iced/clipboard/mime/trait.AllowedMimeTypes.html
Normal file
12
cosmic/iced/clipboard/mime/trait.AllowedMimeTypes.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!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="Describes the mime types which are accepted."><title>AllowedMimeTypes in cosmic::iced::clipboard::mime - 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="#">Allowed<wbr>Mime<wbr>Types</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.allowed" title="allowed">allowed</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>clipboard::<wbr>mime</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">clipboard</a>::<wbr><a href="index.html">mime</a></div><h1>Trait <span class="trait">AllowedMimeTypes</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 AllowedMimeTypes:
|
||||
<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><(<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <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>)>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>
|
||||
+ 'static {
|
||||
// Required method
|
||||
fn <a href="#tymethod.allowed" class="fn">allowed</a>() -> <a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<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>]>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Describes the mime types which are accepted.</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.allowed" class="method"><h4 class="code-header">fn <a href="#tymethod.allowed" class="fn">allowed</a>() -> <a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<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>List allowed mime types for the type to convert from a byte slice.</p>
|
||||
<p>Allowed mime types should be listed in order of decreasing preference,
|
||||
most preferred first.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AllowedMimeTypes-for-ClipboardData" class="impl"><a href="#impl-AllowedMimeTypes-for-ClipboardData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AllowedMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AllowedMimeTypes">AllowedMimeTypes</a> for <a class="struct" href="struct.ClipboardData.html" title="struct cosmic::iced::clipboard::mime::ClipboardData">ClipboardData</a></h3></section></div><script src="../../../../trait.impl/mime/trait.AllowedMimeTypes.js" data-ignore-extern-crates="mime" async></script></section></div></main></body></html>
|
||||
9
cosmic/iced/clipboard/mime/trait.AsMimeTypes.html
Normal file
9
cosmic/iced/clipboard/mime/trait.AsMimeTypes.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Can be converted to data with the available mime types."><title>AsMimeTypes in cosmic::iced::clipboard::mime - 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="#">AsMime<wbr>Types</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.as_bytes" title="as_bytes">as_bytes</a></li><li><a href="#tymethod.available" title="available">available</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>clipboard::<wbr>mime</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">clipboard</a>::<wbr><a href="index.html">mime</a></div><h1>Trait <span class="trait">AsMimeTypes</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 AsMimeTypes {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.available" class="fn">available</a>(&self) -> <a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<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>]>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.as_bytes" class="fn">as_bytes</a>(&self, mime_type: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Can be converted to data with the available mime types.</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.available" class="method"><h4 class="code-header">fn <a href="#tymethod.available" class="fn">available</a>(&self) -> <a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<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>List available mime types for this data to convert to a byte slice.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.as_bytes" class="method"><h4 class="code-header">fn <a href="#tymethod.as_bytes" class="fn">as_bytes</a>(&self, mime_type: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></summary><div class="docblock"><p>Converts a type to a byte slice for the given mime type if possible.</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-AsMimeTypes-for-TextInputString" class="impl"><a class="src rightside" href="../../../../src/cosmic/widget/text_input/input.rs.html#2863-2881">Source</a><a href="#impl-AsMimeTypes-for-TextInputString" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> for <a class="struct" href="../../../widget/text_input/struct.TextInputString.html" title="struct cosmic::widget::text_input::TextInputString">TextInputString</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section><section id="impl-AsMimeTypes-for-Box%3CT%3E" class="impl"><a href="#impl-AsMimeTypes-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> 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><T><div class="where">where
|
||||
T: <a class="trait" href="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.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></div><script src="../../../../trait.impl/mime/trait.AsMimeTypes.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>
|
||||
1
cosmic/iced/clipboard/sidebar-items.js
Normal file
1
cosmic/iced/clipboard/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["read","read_data","read_primary","read_primary_data","write","write_data","write_primary","write_primary_data"],"mod":["dnd","mime"]};
|
||||
15
cosmic/iced/daemon/fn.daemon.html
Normal file
15
cosmic/iced/daemon/fn.daemon.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!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 an iced `Daemon` given its title, update, and view logic."><title>daemon in cosmic::iced::daemon - 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>daemon</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">daemon</a></div><h1>Function <span class="fn">daemon</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 daemon<State, Message, Theme, Renderer>(
|
||||
boot: impl <a class="trait" href="../application/trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message>,
|
||||
update: impl <a class="trait" href="../application/trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn">UpdateFn</a><State, Message>,
|
||||
view: impl for<'a> <a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::daemon::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer>,
|
||||
) -> <a class="struct" href="../struct.Daemon.html" title="struct cosmic::iced::Daemon">Daemon</a><impl <a class="trait" href="../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = State, Message = Message, Theme = Theme>><div class="where">where
|
||||
State: 'static,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
|
||||
Theme: <a class="trait" href="program/graphics/core/theme/trait.Base.html" title="trait cosmic::iced::daemon::program::graphics::core::theme::Base">Base</a>,
|
||||
Renderer: <a class="trait" href="program/trait.Renderer.html" title="trait cosmic::iced::daemon::program::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an iced <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a> given its title, update, and view logic.</p>
|
||||
<p>A <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a> will not open a window by default, but will run silently
|
||||
instead until a <a href="../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> from <a href="../window/fn.open.html" title="fn cosmic::iced::window::open"><code>window::open</code></a> is returned by its update logic.</p>
|
||||
<p>Furthermore, a <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a> will not stop running when all its windows are closed.
|
||||
In order to completely terminate a <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a>, its process must be interrupted or
|
||||
its update logic must produce a <a href="../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> from <a href="../fn.exit.html" title="fn cosmic::iced::exit"><code>exit</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/daemon/index.html
Normal file
2
cosmic/iced/daemon/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Create and run daemons that run in the background."><title>cosmic::iced::daemon - 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 daemon</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="#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</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>daemon</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 and run daemons that run in the background.</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="program/index.html" title="mod cosmic::iced::daemon::program">program</a></dt><dd>The definition of an iced program.</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.Daemon.html" title="struct cosmic::iced::daemon::Daemon">Daemon</a></dt><dd>The underlying definition and configuration of an iced daemon.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Program.html" title="trait cosmic::iced::daemon::Program">Program</a></dt><dd>The internal definition of a <a href="../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a>.</dd><dt><a class="trait" href="trait.ThemeFn.html" title="trait cosmic::iced::daemon::ThemeFn">ThemeFn</a></dt><dd>The theme logic of some <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a>.</dd><dt><a class="trait" href="trait.TitleFn.html" title="trait cosmic::iced::daemon::TitleFn">TitleFn</a></dt><dd>The title logic of some <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a>.</dd><dt><a class="trait" href="trait.ViewFn.html" title="trait cosmic::iced::daemon::ViewFn">ViewFn</a></dt><dd>The view logic of some <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</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.daemon.html" title="fn cosmic::iced::daemon::daemon">daemon</a></dt><dd>Creates an iced <a href="../struct.Daemon.html" title="struct cosmic::iced::Daemon"><code>Daemon</code></a> given its title, update, and view logic.</dd></dl></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_executor.html
Normal file
6
cosmic/iced/daemon/program/fn.with_executor.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given executor function."><title>with_executor in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_executor</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 with_executor<P, E>(
|
||||
program: P,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,
|
||||
E: <a class="trait" href="../../trait.Executor.html" title="trait cosmic::iced::Executor">Executor</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given executor function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_scale_factor.html
Normal file
6
cosmic/iced/daemon/program/fn.with_scale_factor.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given scale factor function."><title>with_scale_factor in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_scale_factor</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 with_scale_factor<P>(
|
||||
program: P,
|
||||
f: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, <a class="struct" href="../../window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given scale factor function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_style.html
Normal file
6
cosmic/iced/daemon/program/fn.with_style.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given style function."><title>with_style in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_style</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 with_style<P>(
|
||||
program: P,
|
||||
f: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, &<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>) -> <a class="struct" href="graphics/core/theme/struct.Style.html" title="struct cosmic::iced::daemon::program::graphics::core::theme::Style">Style</a>,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given style function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_subscription.html
Normal file
6
cosmic/iced/daemon/program/fn.with_subscription.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given subscription function."><title>with_subscription in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_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><pre class="rust item-decl"><code>pub fn with_subscription<P>(
|
||||
program: P,
|
||||
f: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>) -> <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>>,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given subscription function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_theme.html
Normal file
6
cosmic/iced/daemon/program/fn.with_theme.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given theme function."><title>with_theme in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_theme</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 with_theme<P>(
|
||||
program: P,
|
||||
f: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, <a class="struct" href="../../window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>>,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given theme function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/daemon/program/fn.with_title.html
Normal file
6
cosmic/iced/daemon/program/fn.with_title.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Decorates a `Program` with the given title function."><title>with_title in cosmic::iced::daemon::program - 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>daemon::<wbr>program</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">daemon</a>::<wbr><a href="index.html">program</a></div><h1>Function <span class="fn">with_title</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 with_title<P>(
|
||||
program: P,
|
||||
title: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, <a class="struct" href="../../window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -> <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>,
|
||||
) -> impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = <P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>>::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>><div class="where">where
|
||||
P: <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Decorates a <a href="../../trait.Program.html" title="trait cosmic::iced::Program"><code>Program</code></a> with the given title function.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
98
cosmic/iced/daemon/program/graphics/cache/enum.State.html
vendored
Normal file
98
cosmic/iced/daemon/program/graphics/cache/enum.State.html
vendored
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/iced/daemon/program/graphics/cache/index.html
vendored
Normal file
2
cosmic/iced/daemon/program/graphics/cache/index.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Cache computations and efficiently reuse them."><title>cosmic::iced::daemon::program::graphics::cache - 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 cache</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a></div><h1>Module <span>cache</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>Cache computations and efficiently reuse 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.Cache.html" title="struct cosmic::iced::daemon::program::graphics::cache::Cache">Cache</a></dt><dd>A simple cache that stores generated values to avoid recomputation.</dd><dt><a class="struct" href="struct.Group.html" title="struct cosmic::iced::daemon::program::graphics::cache::Group">Group</a></dt><dd>A cache group.</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.State.html" title="enum cosmic::iced::daemon::program::graphics::cache::State">State</a></dt><dd>The state of a <a href="../struct.Cache.html" title="struct cosmic::iced::daemon::program::graphics::Cache"><code>Cache</code></a>.</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.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</a></dt><dd>A piece of data that can be cached.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/daemon/program/graphics/cache/sidebar-items.js
vendored
Normal file
1
cosmic/iced/daemon/program/graphics/cache/sidebar-items.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["State"],"struct":["Cache","Group"],"trait":["Cached"]};
|
||||
80
cosmic/iced/daemon/program/graphics/cache/struct.Cache.html
vendored
Normal file
80
cosmic/iced/daemon/program/graphics/cache/struct.Cache.html
vendored
Normal file
File diff suppressed because one or more lines are too long
98
cosmic/iced/daemon/program/graphics/cache/struct.Group.html
vendored
Normal file
98
cosmic/iced/daemon/program/graphics/cache/struct.Group.html
vendored
Normal file
File diff suppressed because one or more lines are too long
15
cosmic/iced/daemon/program/graphics/cache/trait.Cached.html
vendored
Normal file
15
cosmic/iced/daemon/program/graphics/cache/trait.Cached.html
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!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 data that can be cached."><title>Cached in cosmic::iced::daemon::program::graphics::cache - 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="#">Cached</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Cache" title="Cache">Cache</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.cache" title="cache">cache</a></li><li><a href="#tymethod.load" title="load">load</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Cached-for-()" title="()">()</a></li><li><a href="#impl-Cached-for-Geometry" title="Geometry">Geometry</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>daemon::<wbr>program::<wbr>graphics::<wbr>cache</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a>::<wbr><a href="index.html">cache</a></div><h1>Trait <span class="trait">Cached</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 Cached: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
type <a href="#associatedtype.Cache" class="associatedtype">Cache</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.load" class="fn">load</a>(cache: &Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.cache" class="fn">cache</a>(self, group: <a class="struct" href="../../../../../widget/canvas/struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a>, previous: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>>) -> Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A piece of data that can be cached.</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.Cache" class="method"><h4 class="code-header">type <a href="#associatedtype.Cache" class="associatedtype">Cache</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>The type of cache produced.</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.load" class="method"><h4 class="code-header">fn <a href="#tymethod.load" class="fn">load</a>(cache: &Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>) -> Self</h4></section></summary><div class="docblock"><p>Loads the <a href="trait.Cached.html#associatedtype.Cache" title="associated type iced_graphics::cache::Cached::Cache::Cache"><code>Cache</code></a> into a proper instance.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.cache" class="method"><h4 class="code-header">fn <a href="#tymethod.cache" class="fn">cache</a>(self, group: <a class="struct" href="../../../../../widget/canvas/struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a>, previous: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>>) -> Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a></h4></section></summary><div class="docblock"><p>Caches this value, producing its corresponding <a href="trait.Cached.html#associatedtype.Cache" title="associated type iced_graphics::cache::Cached::Cache::Cache"><code>Cache</code></a>.</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-Cached-for-()" class="impl"><a href="#impl-Cached-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</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="associatedtype.Cache-1" class="associatedtype trait-impl"><a href="#associatedtype.Cache-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Cache" class="associatedtype">Cache</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.load" class="method trait-impl"><a href="#method.load" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.load" class="fn">load</a>(_cache: &<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</a>>::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>)</h4></section><section id="method.cache" class="method trait-impl"><a href="#method.cache" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.cache" class="fn">cache</a>(
|
||||
self,
|
||||
_group: <a class="struct" href="../../../../../widget/canvas/struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a>,
|
||||
_previous: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</a>>::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>>,
|
||||
) -> <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</a>>::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cached-for-Geometry" class="impl"><a href="#impl-Cached-for-Geometry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Cached.html" title="trait cosmic::iced::daemon::program::graphics::cache::Cached">Cached</a> for Geometry</h3></section></summary><div class="impl-items"><section id="associatedtype.Cache-2" class="associatedtype trait-impl"><a href="#associatedtype.Cache-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Cache" class="associatedtype">Cache</a> = Cache</h4></section><section id="method.load-1" class="method trait-impl"><a href="#method.load-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.load" class="fn">load</a>(cache: &Cache) -> Geometry</h4></section><section id="method.cache-1" class="method trait-impl"><a href="#method.cache-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.cache" class="fn">cache</a>(self, _group: <a class="struct" href="../../../../../widget/canvas/struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a>, _previous: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Cache>) -> Cache</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_graphics/cache/trait.Cached.js" data-ignore-extern-crates="std,iced_tiny_skia" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A flag that indicates whether the renderer should perform gamma correction."><title>GAMMA_CORRECTION in cosmic::iced::daemon::program::graphics::color - 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 constant"><!--[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>daemon::<wbr>program::<wbr>graphics::<wbr>color</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a>::<wbr><a href="index.html">color</a></div><h1>Constant <span class="constant">GAMMA_CORRECTION</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 const GAMMA_CORRECTION: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> = internal::GAMMA_CORRECTION; // true</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A flag that indicates whether the renderer should perform gamma correction.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/daemon/program/graphics/color/fn.pack.html
Normal file
2
cosmic/iced/daemon/program/graphics/color/fn.pack.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Packs a `Color`."><title>pack in cosmic::iced::daemon::program::graphics::color - 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>daemon::<wbr>program::<wbr>graphics::<wbr>color</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a>::<wbr><a href="index.html">color</a></div><h1>Function <span class="fn">pack</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn pack(color: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>>) -> <a class="struct" href="struct.Packed.html" title="struct cosmic::iced::daemon::program::graphics::color::Packed">Packed</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Packs a <a href="../../../../struct.Color.html" title="struct cosmic::iced::Color"><code>Color</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/daemon/program/graphics/color/index.html
Normal file
2
cosmic/iced/daemon/program/graphics/color/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Manage colors for shaders."><title>cosmic::iced::daemon::program::graphics::color - 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 color</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="#constants" title="Constants">Constants</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>daemon::<wbr>program::<wbr>graphics</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a></div><h1>Module <span>color</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>Manage colors for shaders.</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.Packed.html" title="struct cosmic::iced::daemon::program::graphics::color::Packed">Packed</a></dt><dd>A color packed as 4 floats representing RGBA channels.</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.GAMMA_CORRECTION.html" title="constant cosmic::iced::daemon::program::graphics::color::GAMMA_CORRECTION">GAMMA_<wbr>CORRECTION</a></dt><dd>A flag that indicates whether the renderer should perform gamma correction.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.pack.html" title="fn cosmic::iced::daemon::program::graphics::color::pack">pack</a></dt><dd>Packs a <a href="../../../../struct.Color.html" title="struct cosmic::iced::Color"><code>Color</code></a>.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"constant":["GAMMA_CORRECTION"],"fn":["pack"],"struct":["Packed"]};
|
||||
77
cosmic/iced/daemon/program/graphics/color/struct.Packed.html
Normal file
77
cosmic/iced/daemon/program/graphics/color/struct.Packed.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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 compositor is responsible for initializing a renderer and managing window surfaces."><title>cosmic::iced::daemon::program::graphics::compositor - 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 compositor</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics</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">daemon</a>::<wbr><a href="../../index.html">program</a>::<wbr><a href="../index.html">graphics</a></div><h1>Module <span>compositor</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A compositor is responsible for initializing a renderer and managing window
|
||||
surfaces.</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.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></dt><dd>Contains information about the graphics (e.g. graphics adapter, graphics backend).</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.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">Surface<wbr>Error</a></dt><dd>Result of an unsuccessful call to <a href="../trait.Compositor.html#tymethod.present" title="method cosmic::iced::daemon::program::graphics::Compositor::present"><code>Compositor::present</code></a>.</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.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Compositor">Compositor</a></dt><dd>A graphics compositor that can draw to windows.</dd><dt><a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a></dt><dd>Defines the default compositor of a renderer.</dd><dt><a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a></dt><dd>An owned display handle that can be used in a <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</dd><dt><a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a></dt><dd>A window that can be used in a <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["SurfaceError"],"struct":["Information"],"trait":["Compositor","Default","Display","Window"]};
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue