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

View 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&lt;P, E&gt;(
program: P,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

View 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&lt;P&gt;(
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>(&amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<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>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

View 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&lt;P&gt;(
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>(&amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, &amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>) -&gt; <a class="struct" href="graphics/core/theme/struct.Style.html" title="struct cosmic::iced::daemon::program::graphics::core::theme::Style">Style</a>,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

View 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&lt;P&gt;(
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>(&amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>) -&gt; <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>&gt;,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

View 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&lt;P&gt;(
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>(&amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<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>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

View 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&lt;P&gt;(
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>(&amp;&lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<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>) -&gt; <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
) -&gt; impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&lt;State = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.State" title="type cosmic::iced::Program::State">State</a>, Message = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Message" title="type cosmic::iced::Program::Message">Message</a>, Theme = &lt;P as <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a>&gt;::<a class="associatedtype" href="../../trait.Program.html#associatedtype.Theme" title="type cosmic::iced::Program::Theme">Theme</a>&gt;<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>

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["State"],"struct":["Cache","Group"],"trait":["Cached"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,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: &amp;Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>) -&gt; 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>&lt;Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>&gt;) -&gt; 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: &amp;Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>) -&gt; 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>&lt;Self::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>&gt;) -&gt; 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: &amp;&lt;<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>&gt;::<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>&lt;&lt;<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>&gt;::<a class="associatedtype" href="trait.Cached.html#associatedtype.Cache" title="type cosmic::iced::daemon::program::graphics::cache::Cached::Cache">Cache</a>&gt;,
) -&gt; &lt;<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>&gt;::<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: &amp;Cache) -&gt; 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>&lt;Cache&gt;) -&gt; 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>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>&lt;<a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>&gt;) -&gt; <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>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"constant":["GAMMA_CORRECTION"],"fn":["pack"],"struct":["Packed"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,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>

View file

@ -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

View file

@ -0,0 +1,189 @@
<!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 graphics compositor that can draw to windows."><title>Compositor in 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 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="#">Compositor</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Renderer" title="Renderer">Renderer</a></li><li><a href="#associatedtype.Surface" title="Surface">Surface</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.configure_surface" title="configure_surface">configure_surface</a></li><li><a href="#tymethod.create_renderer" title="create_renderer">create_renderer</a></li><li><a href="#tymethod.create_surface" title="create_surface">create_surface</a></li><li><a href="#tymethod.information" title="information">information</a></li><li><a href="#tymethod.present" title="present">present</a></li><li><a href="#tymethod.screenshot" title="screenshot">screenshot</a></li><li><a href="#tymethod.with_backend" title="with_backend">with_backend</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.load_font" title="load_font">load_font</a></li><li><a href="#method.new" title="new">new</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Compositor-for-()" title="()">()</a></li><li><a href="#impl-Compositor-for-Compositor" title="Compositor">Compositor</a></li><li><a href="#impl-Compositor-for-Compositor%3CA,+B%3E" title="Compositor&#60;A, B&#62;">Compositor&#60;A, B&#62;</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>compositor</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">compositor</a></div><h1>Trait <span class="trait">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><pre class="rust item-decl"><code>pub trait Compositor: <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.Renderer" class="associatedtype">Renderer</a>;
type <a href="#associatedtype.Surface" class="associatedtype">Surface</a>;
// Required methods
fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
backend: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
) -&gt; impl <a class="trait" href="../futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.create_surface" class="fn">create_surface</a>&lt;W&gt;(
&amp;mut self,
window: W,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>
<span class="where">where W: <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>;
<span class="item-spacer"></span> fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
&amp;mut self,
surface: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
);
<span class="item-spacer"></span> fn <a href="#tymethod.information" class="fn">information</a>(&amp;self) -&gt; <a class="struct" href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.present" class="fn">present</a>(
&amp;mut self,
renderer: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
surface: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
on_pre_present: 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>(),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
&amp;mut self,
renderer: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
) -&gt; <a class="struct" href="../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt; <a href="#" class="tooltip" data-notable-ty="Vec&lt;u8&gt;"></a>;
// Provided methods
fn <a href="#method.new" class="fn">new</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
) -&gt; impl <a class="trait" href="../futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.load_font" class="fn">load_font</a>(&amp;mut self, font: <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>&lt;'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;) { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A graphics compositor that can draw to windows.</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.Renderer" class="method"><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a></h4></section></summary><div class="docblock"><p>The iced renderer of the backend.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Surface" class="method"><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a></h4></section></summary><div class="docblock"><p>The surface of the backend.</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.with_backend" class="method"><h4 class="code-header">fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
backend: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
) -&gt; impl <a class="trait" href="../futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Creates a new <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a> with a backend preference.</p>
<p>If the backend does not match the preference, it will return
<a href="../enum.Error.html#variant.GraphicsAdapterNotFound" title="variant cosmic::iced::daemon::program::graphics::Error::GraphicsAdapterNotFound"><code>Error::GraphicsAdapterNotFound</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_renderer" class="method"><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section></summary><div class="docblock"><p>Creates a <a href="../trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Self::Renderer</code></a> for the <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_surface" class="method"><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a>&lt;W&gt;(
&amp;mut self,
window: W,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
W: <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Crates a new <a href="../trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a> for the given window.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.configure_surface" class="method"><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
&amp;mut self,
surface: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section></summary><div class="docblock"><p>Configures a new <a href="../trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a> with the given dimensions.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.information" class="method"><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&amp;self) -&gt; <a class="struct" href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section></summary><div class="docblock"><p>Returns <a href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information"><code>Information</code></a> used by this <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.present" class="method"><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
&amp;mut self,
renderer: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
surface: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
on_pre_present: 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>(),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>&gt;</h4></section></summary><div class="docblock"><p>Presents the <a href="../trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Renderer</code></a> primitives to the next frame of the given <a href="../trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.screenshot" class="method"><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
&amp;mut self,
renderer: &amp;mut Self::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
) -&gt; <a class="struct" href="../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt; <a href="#" class="tooltip" data-notable-ty="Vec&lt;u8&gt;"></a></h4></section></summary><div class="docblock"><p>Screenshots the current <a href="../trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Renderer</code></a> primitives to an offscreen texture, and returns the bytes of
the texture ordered as <code>RGBA</code> in the <code>sRGB</code> color space.</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.new" class="method"><h4 class="code-header">fn <a href="#method.new" class="fn">new</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
) -&gt; impl <a class="trait" href="../futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Creates a new <a href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.load_font" class="method"><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&amp;mut self, font: <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>&lt;'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;)</h4></section></summary><div class="docblock"><p>Loads a font from its bytes.</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-Compositor-for-()" class="impl"><a href="#impl-Compositor-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</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.Renderer-1" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Surface-1" class="associatedtype trait-impl"><a href="#associatedtype.Surface-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.with_backend" class="method trait-impl"><a href="#method.with_backend" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
_settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
_display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a>,
_compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
_shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
_preferred_backend: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;</h4></section><section id="method.create_renderer" class="method trait-impl"><a href="#method.create_renderer" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&amp;self) -&gt; &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface" class="method trait-impl"><a href="#method.create_surface" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a>&lt;W&gt;(
&amp;mut self,
_window: W,
_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
W: <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface" class="method trait-impl"><a href="#method.configure_surface" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
&amp;mut self,
_surface: &amp;mut &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section><section id="method.load_font-1" class="method trait-impl"><a href="#method.load_font-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&amp;mut self, _font: <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>&lt;'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;)</h4></section><section id="method.information" class="method trait-impl"><a href="#method.information" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&amp;self) -&gt; <a class="struct" href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present" class="method trait-impl"><a href="#method.present" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
&amp;mut self,
_renderer: &amp;mut &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
_surface: &amp;mut &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
_viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
_background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
_on_pre_present: 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>(),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>&gt;</h4></section><section id="method.screenshot" class="method trait-impl"><a href="#method.screenshot" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
&amp;mut self,
_renderer: &amp;mut &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
_viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
_background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
) -&gt; <a class="struct" href="../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt; <a href="#" class="tooltip" data-notable-ty="Vec&lt;u8&gt;"></a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Compositor-for-Compositor" class="impl"><a href="#impl-Compositor-for-Compositor" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a> for Compositor</h3></section></summary><div class="impl-items"><section id="associatedtype.Renderer-2" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = Renderer</h4></section><section id="associatedtype.Surface-2" class="associatedtype trait-impl"><a href="#associatedtype.Surface-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = Surface</h4></section><section id="method.with_backend-1" class="method trait-impl"><a href="#method.with_backend-1" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a>,
_compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a>,
_shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
backend: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Compositor, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;</h4></section><section id="method.create_renderer-1" class="method trait-impl"><a href="#method.create_renderer-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&amp;self) -&gt; &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface-1" class="method trait-impl"><a href="#method.create_surface-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a>&lt;W&gt;(
&amp;mut self,
window: W,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
W: <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface-1" class="method trait-impl"><a href="#method.configure_surface-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
&amp;mut self,
surface: &amp;mut &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section><section id="method.information-1" class="method trait-impl"><a href="#method.information-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&amp;self) -&gt; <a class="struct" href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present-1" class="method trait-impl"><a href="#method.present-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
&amp;mut self,
renderer: &amp;mut &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
surface: &amp;mut &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
on_pre_present: 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>(),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>&gt;</h4></section><section id="method.screenshot-1" class="method trait-impl"><a href="#method.screenshot-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
&amp;mut self,
renderer: &amp;mut &lt;Compositor as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
) -&gt; <a class="struct" href="../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt; <a href="#" class="tooltip" data-notable-ty="Vec&lt;u8&gt;"></a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Compositor-for-Compositor%3CA,+B%3E" class="impl"><a href="#impl-Compositor-for-Compositor%3CA,+B%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, B&gt; <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a> for Compositor&lt;A, B&gt;<div class="where">where
A: <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>,
B: <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Renderer-3" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = Renderer&lt;&lt;A as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>, &lt;B as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>&gt;</h4></section><section id="associatedtype.Surface-3" class="associatedtype trait-impl"><a href="#associatedtype.Surface-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = Surface&lt;&lt;A as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>, &lt;B as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>&gt;</h4></section><section id="method.with_backend-2" class="method trait-impl"><a href="#method.with_backend-2" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
settings: <a class="struct" href="../struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
display: impl <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
compatible_window: impl <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
shell: <a class="struct" href="../struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
backend: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Compositor&lt;A, B&gt;, <a class="enum" href="../enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>&gt;</h4></section><section id="method.create_renderer-2" class="method trait-impl"><a href="#method.create_renderer-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&amp;self) -&gt; &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface-2" class="method trait-impl"><a href="#method.create_surface-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a>&lt;W&gt;(
&amp;mut self,
window: W,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
W: <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface-2" class="method trait-impl"><a href="#method.configure_surface-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
&amp;mut self,
surface: &amp;mut &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
)</h4></section><section id="method.load_font-2" class="method trait-impl"><a href="#method.load_font-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&amp;mut self, font: <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>&lt;'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;)</h4></section><section id="method.information-2" class="method trait-impl"><a href="#method.information-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&amp;self) -&gt; <a class="struct" href="struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present-2" class="method trait-impl"><a href="#method.present-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
&amp;mut self,
renderer: &amp;mut &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
surface: &amp;mut &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
on_pre_present: 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>(),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>&gt;</h4></section><section id="method.screenshot-2" class="method trait-impl"><a href="#method.screenshot-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
&amp;mut self,
renderer: &amp;mut &lt;Compositor&lt;A, B&gt; as <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&gt;::<a class="associatedtype" href="../trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
viewport: &amp;<a class="struct" href="../struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
background_color: <a class="struct" href="../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
) -&gt; <a class="struct" href="../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt; <a href="#" class="tooltip" data-notable-ty="Vec&lt;u8&gt;"></a></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/compositor/trait.Compositor.js" data-ignore-extern-crates="iced_renderer,std,iced_tiny_skia" async></script><script type="text/json" id="notable-traits-data">{"Vec<u8>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html\" title=\"struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec\">Vec</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>, A&gt;</code></h3><pre><code><div class=\"where\">impl&lt;A&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <a class=\"struct\" href=\"../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html\" title=\"struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec\">Vec</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>, A&gt;<div class=\"where\">where\n A: <a class=\"trait\" href=\"../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/alloc/trait.Allocator.html\" title=\"trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::alloc::Allocator\">Allocator</a>,</div></div>"}</script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Defines the default compositor of a renderer."><title>Default in 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 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="#">Default</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Compositor" title="Compositor">Compositor</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Default-for-()" title="()">()</a></li><li><a href="#impl-Default-for-Renderer" title="Renderer">Renderer</a></li><li><a href="#impl-Default-for-Renderer%3CA,+B%3E" title="Renderer&#60;A, B&#62;">Renderer&#60;A, B&#62;</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>daemon::<wbr>program::<wbr>graphics::<wbr>compositor</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">compositor</a></div><h1>Trait <span class="trait">Default</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 Default {
type <a href="#associatedtype.Compositor" class="associatedtype">Compositor</a>: <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&lt;Renderer = Self&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines the default compositor of a renderer.</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.Compositor" class="method"><h4 class="code-header">type <a href="#associatedtype.Compositor" class="associatedtype">Compositor</a>: <a class="trait" href="../trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>&lt;Renderer = Self&gt;</h4></section></summary><div class="docblock"><p>The compositor of the renderer.</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-Default-for-()" class="impl"><a href="#impl-Default-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</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.Compositor-1" class="associatedtype trait-impl"><a href="#associatedtype.Compositor-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Compositor" class="associatedtype">Compositor</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Default-for-Renderer" class="impl"><a href="#impl-Default-for-Renderer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a> for Renderer</h3></section></summary><div class="impl-items"><section id="associatedtype.Compositor-2" class="associatedtype trait-impl"><a href="#associatedtype.Compositor-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Compositor" class="associatedtype">Compositor</a> = Compositor</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Default-for-Renderer%3CA,+B%3E" class="impl"><a href="#impl-Default-for-Renderer%3CA,+B%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, B&gt; <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a> for Renderer&lt;A, B&gt;<div class="where">where
A: <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a>,
B: <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Compositor-3" class="associatedtype trait-impl"><a href="#associatedtype.Compositor-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Compositor" class="associatedtype">Compositor</a> = Compositor&lt;&lt;A as <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a>&gt;::<a class="associatedtype" href="trait.Default.html#associatedtype.Compositor" title="type cosmic::iced::daemon::program::graphics::compositor::Default::Compositor">Compositor</a>, &lt;B as <a class="trait" href="trait.Default.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Default">Default</a>&gt;::<a class="associatedtype" href="trait.Default.html#associatedtype.Compositor" title="type cosmic::iced::daemon::program::graphics::compositor::Default::Compositor">Compositor</a>&gt;</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/compositor/trait.Default.js" data-ignore-extern-crates="iced_renderer,std,iced_tiny_skia" async></script></section></div></main></body></html>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An owned display handle that can be used in a `Compositor`."><title>Display in 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 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="#">Display</a></h2><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>compositor</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">compositor</a></div><h1>Trait <span class="trait">Display</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 Display: <a class="trait" href="../../runtime/window/raw_window_handle/trait.HasDisplayHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasDisplayHandle">HasDisplayHandle</a> + 'static { }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>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>.</p>
<p>This is just a convenient super trait of the <code>raw-window-handle</code>
trait.</p>
</div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Display-for-T" class="impl"><a href="#impl-Display-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> for T<div class="where">where
T: <a class="trait" href="../../runtime/window/raw_window_handle/trait.HasDisplayHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasDisplayHandle">HasDisplayHandle</a> + 'static,</div></h3></section></div><script src="../../../../../../trait.impl/iced_graphics/compositor/trait.Display.js" async></script></section></div></main></body></html>

View 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="A window that can be used in a `Compositor`."><title>Window in 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 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="#">Window</a></h2><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>compositor</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">compositor</a></div><h1>Trait <span class="trait">Window</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 Window:
<a class="trait" href="../../runtime/window/raw_window_handle/trait.HasWindowHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasWindowHandle">HasWindowHandle</a>
+ <a class="trait" href="../../runtime/window/raw_window_handle/trait.HasDisplayHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasDisplayHandle">HasDisplayHandle</a>
+ <a class="trait" href="../futures/trait.MaybeSend.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSend">MaybeSend</a>
+ <a class="trait" href="../futures/trait.MaybeSync.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSync">MaybeSync</a>
+ 'static { }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>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>.</p>
<p>This is just a convenient super trait of the <code>raw-window-handle</code>
traits.</p>
</div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Window-for-T" class="impl"><a href="#impl-Window-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> for T<div class="where">where
T: <a class="trait" href="../../runtime/window/raw_window_handle/trait.HasWindowHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasWindowHandle">HasWindowHandle</a> + <a class="trait" href="../../runtime/window/raw_window_handle/trait.HasDisplayHandle.html" title="trait cosmic::iced::daemon::program::runtime::window::raw_window_handle::HasDisplayHandle">HasDisplayHandle</a> + <a class="trait" href="../futures/trait.MaybeSend.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSend">MaybeSend</a> + <a class="trait" href="../futures/trait.MaybeSync.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSync">MaybeSync</a> + 'static,</div></h3></section></div><script src="../../../../../../trait.impl/iced_graphics/compositor/trait.Window.js" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,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="Align and position widgets."><title>cosmic::iced::daemon::program::graphics::core::alignment - 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 alignment</a></h2><h3><a href="#enums">Module Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core</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">core</a></div><h1>Module <span>alignment</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>Align and position widgets.</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.Alignment.html" title="enum cosmic::iced::daemon::program::graphics::core::alignment::Alignment">Alignment</a></dt><dd>Alignment on the axis of a container.</dd><dt><a class="enum" href="enum.Horizontal.html" title="enum cosmic::iced::daemon::program::graphics::core::alignment::Horizontal">Horizontal</a></dt><dd>The horizontal <a href="../../../../../enum.Alignment.html" title="enum cosmic::iced::Alignment"><code>Alignment</code></a> of some resource.</dd><dt><a class="enum" href="enum.Vertical.html" title="enum cosmic::iced::daemon::program::graphics::core::alignment::Vertical">Vertical</a></dt><dd>The vertical <a href="../../../../../enum.Alignment.html" title="enum cosmic::iced::Alignment"><code>Alignment</code></a> of some resource.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Alignment","Horizontal","Vertical"]};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Animate your applications."><title>cosmic::iced::daemon::program::graphics::core::animation - 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 animation</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::<wbr>core</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">core</a></div><h1>Module <span>animation</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>Animate your applications.</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.Animation.html" title="struct cosmic::iced::daemon::program::graphics::core::animation::Animation">Animation</a></dt><dd>The animation of some particular state.</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.Easing.html" title="enum cosmic::iced::daemon::program::graphics::core::animation::Easing">Easing</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.Float.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Float">Float</a></dt><dd>Defines a float representation for arbitrary types</dd><dt><a class="trait" href="trait.Interpolable.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Interpolable">Interpolable</a></dt><dd>A type implementing <code>Interpolable</code> can be used with <code>Animated&lt;T&gt;.animate(...)</code></dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Easing"],"struct":["Animation"],"trait":["Float","Interpolable"]};

File diff suppressed because one or more lines are too long

View 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="Defines a float representation for arbitrary types"><title>Float in cosmic::iced::daemon::program::graphics::core::animation - 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="#">Float</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.float_value" title="float_value">float_value</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Float-for-bool" title="bool">bool</a></li><li><a href="#impl-Float-for-f32" title="f32">f32</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>daemon::<wbr>program::<wbr>graphics::<wbr>core::<wbr>animation</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">core</a>::<wbr><a href="index.html">animation</a></div><h1>Trait <span class="trait">Float</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 Float {
// Required method
fn <a href="#tymethod.float_value" class="fn">float_value</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines a float representation for arbitrary types</p>
<p>The actual float values are pretty arbitrary - as interpolation from
one float to another will look the same, however in the case of
asymmetric animations the direction of the animation is determined
using these float representations.
In general, this defines keyframes &amp; associates animated values on
a continuous axis so that transitions &amp; interruptions can be represented.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.float_value" class="method"><h4 class="code-header">fn <a href="#tymethod.float_value" class="fn">float_value</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></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-Float-for-bool" class="impl"><a href="#impl-Float-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Float.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Float">FloatRepresentable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h3></section></summary><div class="impl-items"><section id="method.float_value" class="method trait-impl"><a href="#method.float_value" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.float_value" class="fn">float_value</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Float-for-f32" class="impl"><a href="#impl-Float-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Float.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Float">FloatRepresentable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.float_value-1" class="method trait-impl"><a href="#method.float_value-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.float_value" class="fn">float_value</a>(&amp;self) -&gt; <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"></div><script src="../../../../../../../trait.impl/lilt/traits/trait.FloatRepresentable.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>

View 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="A type implementing `Interpolable` can be used with `Animated&#60;T&#62;.animate(...)`"><title>Interpolable in cosmic::iced::daemon::program::graphics::core::animation - 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="#">Interpolable</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.interpolated" title="interpolated">interpolated</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Interpolable-for-Option%3CT%3E" title="Option&#60;T&#62;">Option&#60;T&#62;</a></li><li><a href="#impl-Interpolable-for-f32" title="f32">f32</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>core::<wbr>animation</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">core</a>::<wbr><a href="index.html">animation</a></div><h1>Trait <span class="trait">Interpolable</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 Interpolable {
// Required method
fn <a href="#tymethod.interpolated" class="fn">interpolated</a>(&amp;self, other: Self, ratio: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; Self;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A type implementing <code>Interpolable</code> can be used with <code>Animated&lt;T&gt;.animate(...)</code></p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.interpolated" class="method"><h4 class="code-header">fn <a href="#tymethod.interpolated" class="fn">interpolated</a>(&amp;self, other: Self, ratio: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; Self</h4></section></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-Interpolable-for-f32" class="impl"><a href="#impl-Interpolable-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Interpolable.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Interpolable">Interpolable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.interpolated" class="method trait-impl"><a href="#method.interpolated" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.interpolated" class="fn">interpolated</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, ratio: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Interpolable-for-Option%3CT%3E" class="impl"><a href="#impl-Interpolable-for-Option%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Interpolable.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Interpolable">Interpolable</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.Interpolable.html" title="trait cosmic::iced::daemon::program::graphics::core::animation::Interpolable">Interpolable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,</div></h3></section></summary><div class="impl-items"><section id="method.interpolated-1" class="method trait-impl"><a href="#method.interpolated-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.interpolated" class="fn">interpolated</a>(&amp;self, other: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;, ratio: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</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/lilt/traits/trait.Interpolable.js" data-ignore-extern-crates="std,core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given value as bottom left and bottom right."><title>bottom in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">bottom</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 bottom(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as bottom left and bottom right.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given bottom left value."><title>bottom_left in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">bottom_left</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 bottom_left(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given bottom left value.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given bottom right value."><title>bottom_right in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">bottom_right</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 bottom_right(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given bottom right value.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Border` with the given `Color`."><title>color in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">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><pre class="rust item-decl"><code>pub fn color(color: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Border.html" title="struct cosmic::iced::Border">Border</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <a href="../../../../../struct.Color.html" title="struct cosmic::iced::Color"><code>Color</code></a>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(border::color(Color::BLACK), Border::default().color(Color::BLACK));</code></pre></div>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given value as top left and bottom left."><title>left in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">left</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 left(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top left and bottom left.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the same value for each corner."><title>radius in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">radius</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 radius(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the same value for each corner.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given value as top right and bottom right."><title>right in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">right</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 right(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top right and bottom right.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Border` with the given `Radius`."><title>rounded in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">rounded</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 rounded(radius: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Border.html" title="struct cosmic::iced::Border">Border</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(border::rounded(<span class="number">10</span>), Border::default().rounded(<span class="number">10</span>));</code></pre></div>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given value as top left and top right."><title>top in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">top</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 top(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top left and top right.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given top left value."><title>top_left in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">top_left</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 top_left(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given top left value.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Radius` with the given top right value."><title>top_right in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">top_right</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 top_right(value: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius">Radius</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given top right value.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Border` with the given `width`."><title>width in cosmic::iced::daemon::program::graphics::core::border - 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>core::<wbr>border</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">core</a>::<wbr><a href="index.html">border</a></div><h1>Function <span class="fn">width</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 width(width: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Pixels.html" title="struct cosmic::iced::Pixels">Pixels</a>&gt;) -&gt; <a class="struct" href="../../../../../struct.Border.html" title="struct cosmic::iced::Border">Border</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <code>width</code>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(border::width(<span class="number">10</span>), Border::default().width(<span class="number">10</span>));</code></pre></div>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Draw lines around containers."><title>cosmic::iced::daemon::program::graphics::core::border - 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 border</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core</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">core</a></div><h1>Module <span>border</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>Draw lines around containers.</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.Border.html" title="struct cosmic::iced::daemon::program::graphics::core::border::Border">Border</a></dt><dd>A border.</dd><dt><a class="struct" href="struct.Radius.html" title="struct cosmic::iced::daemon::program::graphics::core::border::Radius">Radius</a></dt><dd>The border radii for the corners of a graphics primitive in the order:
top-left, top-right, bottom-right, bottom-left.</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.bottom.html" title="fn cosmic::iced::daemon::program::graphics::core::border::bottom">bottom</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as bottom left and bottom right.</dd><dt><a class="fn" href="fn.bottom_left.html" title="fn cosmic::iced::daemon::program::graphics::core::border::bottom_left">bottom_<wbr>left</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given bottom left value.</dd><dt><a class="fn" href="fn.bottom_right.html" title="fn cosmic::iced::daemon::program::graphics::core::border::bottom_right">bottom_<wbr>right</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given bottom right value.</dd><dt><a class="fn" href="fn.color.html" title="fn cosmic::iced::daemon::program::graphics::core::border::color">color</a></dt><dd>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <a href="../../../../../struct.Color.html" title="struct cosmic::iced::Color"><code>Color</code></a>.</dd><dt><a class="fn" href="fn.left.html" title="fn cosmic::iced::daemon::program::graphics::core::border::left">left</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top left and bottom left.</dd><dt><a class="fn" href="fn.radius.html" title="fn cosmic::iced::daemon::program::graphics::core::border::radius">radius</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the same value for each corner.</dd><dt><a class="fn" href="fn.right.html" title="fn cosmic::iced::daemon::program::graphics::core::border::right">right</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top right and bottom right.</dd><dt><a class="fn" href="fn.rounded.html" title="fn cosmic::iced::daemon::program::graphics::core::border::rounded">rounded</a></dt><dd>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a>.</dd><dt><a class="fn" href="fn.top.html" title="fn cosmic::iced::daemon::program::graphics::core::border::top">top</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given value as top left and top right.</dd><dt><a class="fn" href="fn.top_left.html" title="fn cosmic::iced::daemon::program::graphics::core::border::top_left">top_<wbr>left</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given top left value.</dd><dt><a class="fn" href="fn.top_right.html" title="fn cosmic::iced::daemon::program::graphics::core::border::top_right">top_<wbr>right</a></dt><dd>Creates a new <a href="../../../../../struct.Radius.html" title="struct cosmic::iced::Radius"><code>Radius</code></a> with the given top right value.</dd><dt><a class="fn" href="fn.width.html" title="fn cosmic::iced::daemon::program::graphics::core::border::width">width</a></dt><dd>Creates a new <a href="../../../../../struct.Border.html" title="struct cosmic::iced::Border"><code>Border</code></a> with the given <code>width</code>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["bottom","bottom_left","bottom_right","color","left","radius","right","rounded","top","top_left","top_right","width"],"struct":["Border","Radius"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,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="Reads the current content of the primary `Clipboard`."><title>peek_dnd in cosmic::iced::daemon::program::graphics::core::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>daemon::<wbr>program::<wbr>graphics::<wbr>core::<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">daemon</a>::<wbr><a href="../../../index.html">program</a>::<wbr><a href="../../index.html">graphics</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">clipboard</a></div><h1>Function <span class="fn">peek_dnd</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 peek_dnd&lt;T&gt;(
clipboard: &amp;mut dyn <a class="trait" href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
mime: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="../../../../../clipboard/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>Reads the current content of the primary <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Reads the current content of the `Clipboard`."><title>read_data in cosmic::iced::daemon::program::graphics::core::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>daemon::<wbr>program::<wbr>graphics::<wbr>core::<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">daemon</a>::<wbr><a href="../../../index.html">program</a>::<wbr><a href="../../index.html">graphics</a>::<wbr><a href="../index.html">core</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&lt;T&gt;(clipboard: &amp;mut dyn <a class="trait" href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="../../../../../clipboard/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>Reads the current content of the <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Reads the current content of the primary `Clipboard`."><title>read_primary_data in cosmic::iced::daemon::program::graphics::core::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>daemon::<wbr>program::<wbr>graphics::<wbr>core::<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">daemon</a>::<wbr><a href="../../../index.html">program</a>::<wbr><a href="../../index.html">graphics</a>::<wbr><a href="../index.html">core</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&lt;T&gt;(clipboard: &amp;mut dyn <a class="trait" href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="../../../../../clipboard/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>Reads the current content of the primary <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
</div></details></section></div></main></body></html>

View 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="Starts a DnD operation. icon surface is a tuple of the icon element and optionally the icon element state."><title>start_dnd in cosmic::iced::daemon::program::graphics::core::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>daemon::<wbr>program::<wbr>graphics::<wbr>core::<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">daemon</a>::<wbr><a href="../../../index.html">program</a>::<wbr><a href="../../index.html">graphics</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">clipboard</a></div><h1>Function <span class="fn">start_dnd</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 start_dnd&lt;T, R&gt;(
clipboard: &amp;mut dyn <a class="trait" href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a>,
internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>&gt;,
icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a>&lt;<a class="struct" href="../struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a>&lt;'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, T, R&gt;&gt;&gt;,
content: <a class="struct" href="../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../../../../../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;,
actions: <a class="struct" href="../../../../../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
)<div class="where">where
T: 'static,
R: 'static,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Starts a DnD operation.
icon surface is a tuple of the icon element and optionally the icon element state.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Access the clipboard."><title>cosmic::iced::daemon::program::graphics::core::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="#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><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>daemon::<wbr>program::<wbr>graphics::<wbr>core</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">core</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="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DndDestinationRectangles.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::DndDestinationRectangles">DndDestination<wbr>Rectangles</a></dt><dd>A list of DnD destination rectangles.</dd><dt><a class="struct" href="struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">Icon<wbr>Surface</a></dt><dt><a class="struct" href="struct.Null.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::Null">Null</a></dt><dd>A null implementation of the <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a> trait.</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.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a></dt><dd>Source of a DnD operation.</dd><dt><a class="enum" href="enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a></dt><dd>The kind of <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</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.Clipboard.html" title="trait cosmic::iced::daemon::program::graphics::core::clipboard::Clipboard">Clipboard</a></dt><dd>A buffer for short-term storage and transfer within and between
applications.</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.peek_dnd.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::peek_dnd">peek_<wbr>dnd</a></dt><dd>Reads the current content of the primary <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</dd><dt><a class="fn" href="fn.read_data.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::read_data">read_<wbr>data</a></dt><dd>Reads the current content of the <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</dd><dt><a class="fn" href="fn.read_primary_data.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::read_primary_data">read_<wbr>primary_<wbr>data</a></dt><dd>Reads the current content of the primary <a href="../../../../../advanced/trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</dd><dt><a class="fn" href="fn.start_dnd.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::start_dnd">start_<wbr>dnd</a></dt><dd>Starts a DnD operation.
icon surface is a tuple of the icon element and optionally the icon element state.</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.DynIconSurface.html" title="type cosmic::iced::daemon::program::graphics::core::clipboard::DynIconSurface">DynIcon<wbr>Surface</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["DndSource","Kind"],"fn":["peek_dnd","read_data","read_primary_data","start_dnd"],"struct":["DndDestinationRectangles","IconSurface","Null"],"trait":["Clipboard"],"type":["DynIconSurface"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

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

View file

@ -0,0 +1,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 `DynIconSurface` type in crate `cosmic`."><title>DynIconSurface in cosmic::iced::daemon::program::graphics::core::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 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="#">DynIcon<wbr>Surface</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.element" title="element">element</a></li><li><a href="#structfield.offset" title="offset">offset</a></li><li><a href="#structfield.state" title="state">state</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core::<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">daemon</a>::<wbr><a href="../../../index.html">program</a>::<wbr><a href="../../index.html">graphics</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">clipboard</a></div><h1>Type Alias <span class="type">DynIconSurface</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 DynIconSurface = <a class="struct" href="struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a>&lt;<a class="struct" href="../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;&gt;;</code></pre><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 DynIconSurface {
pub element: <a class="struct" href="../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;,
pub state: <a class="enum" href="../widget/tree/enum.State.html" title="enum cosmic::iced::daemon::program::graphics::core::widget::tree::State">State</a>,
pub offset: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.element" class="structfield section-header"><a href="#structfield.element" class="anchor field">§</a><code>element: <a class="struct" href="../../../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</code></span><span id="structfield.state" class="structfield section-header"><a href="#structfield.state" class="anchor field">§</a><code>state: <a class="enum" href="../widget/tree/enum.State.html" title="enum cosmic::iced::daemon::program::graphics::core::widget::tree::State">State</a></code></span><span id="structfield.offset" class="structfield section-header"><a href="#structfield.offset" class="anchor field">§</a><code>offset: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a></code></span><script src="../../../../../../../type.impl/cosmic/iced/daemon/program/graphics/core/clipboard/struct.IconSurface.js" data-self-path="cosmic::iced::daemon::program::graphics::core::clipboard::DynIconSurface" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Handle events of a user interface."><title>cosmic::iced::daemon::program::graphics::core::event - 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 event</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="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core</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">core</a></div><h1>Module <span>event</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>Handle events of a user interface.</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="wayland/index.html" title="mod cosmic::iced::daemon::program::graphics::core::event::wayland">wayland</a></dt><dd>A platform specific event for wayland</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Event.html" title="enum cosmic::iced::daemon::program::graphics::core::event::Event">Event</a></dt><dd>A user interface event.</dd><dt><a class="enum" href="enum.PlatformSpecific.html" title="enum cosmic::iced::daemon::program::graphics::core::event::PlatformSpecific">Platform<wbr>Specific</a></dt><dd>A platform specific event</dd><dt><a class="enum" href="enum.Status.html" title="enum cosmic::iced::daemon::program::graphics::core::event::Status">Status</a></dt><dd>The status of an <a href="../../../../../enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a> after being processed.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Event","PlatformSpecific","Status"],"mod":["wayland"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A platform specific event for wayland"><title>cosmic::iced::daemon::program::graphics::core::event::wayland - 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 wayland</a></h2><h3><a href="#enums">Module Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core::<wbr>event</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">core</a>::<wbr><a href="../index.html">event</a></div><h1>Module <span>wayland</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 platform specific event for wayland</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::daemon::program::graphics::core::event::wayland::Event">Event</a></dt><dd>wayland events</dd><dt><a class="enum" href="enum.LayerEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::LayerEvent">Layer<wbr>Event</a></dt><dd>layer surface events</dd><dt><a class="enum" href="enum.OutputEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::OutputEvent">Output<wbr>Event</a></dt><dd>output events</dd><dt><a class="enum" href="enum.OverlapNotifyEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::OverlapNotifyEvent">Overlap<wbr>Notify<wbr>Event</a></dt><dt><a class="enum" href="enum.PopupEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::PopupEvent">Popup<wbr>Event</a></dt><dd>popup events</dd><dt><a class="enum" href="enum.SeatEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::SeatEvent">Seat<wbr>Event</a></dt><dd>seat events
Only one seat can interact with an iced_sctk application at a time, but many may interact with the application over the lifetime of the application</dd><dt><a class="enum" href="enum.SessionLockEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::SessionLockEvent">Session<wbr>Lock<wbr>Event</a></dt><dd>session lock events</dd><dt><a class="enum" href="enum.SubsurfaceEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::SubsurfaceEvent">Subsurface<wbr>Event</a></dt><dd>popup events</dd><dt><a class="enum" href="enum.WindowEvent.html" title="enum cosmic::iced::daemon::program::graphics::core::event::wayland::WindowEvent">Window<wbr>Event</a></dt><dd>window events</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Event","LayerEvent","OutputEvent","OverlapNotifyEvent","PopupEvent","SeatEvent","SessionLockEvent","SubsurfaceEvent","WindowEvent"]};

View 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="A function that can never be called."><title>never in cosmic::iced::daemon::program::graphics::core - 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>core</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">core</a></div><h1>Function <span class="fn">never</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 never&lt;T&gt;(never: <a class="enum" href="../../../../enum.Never.html" title="enum cosmic::iced::Never">Infallible</a>) -&gt; T</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A function that can <em>never</em> be called.</p>
<p>This is useful to turn generic types into anything
you want by coercing them into a type with no possible
values.</p>
</div></details></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,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="Load and use fonts."><title>cosmic::iced::daemon::program::graphics::core::font - 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 font</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>daemon::<wbr>program::<wbr>graphics::<wbr>core</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">core</a></div><h1>Module <span>font</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>Load and use fonts.</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.Font.html" title="struct cosmic::iced::daemon::program::graphics::core::font::Font">Font</a></dt><dd>A font.</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.Family.html" title="enum cosmic::iced::daemon::program::graphics::core::font::Family">Family</a></dt><dd>A font family.</dd><dt><a class="enum" href="enum.Stretch.html" title="enum cosmic::iced::daemon::program::graphics::core::font::Stretch">Stretch</a></dt><dd>The width of some text.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::iced::daemon::program::graphics::core::font::Style">Style</a></dt><dd>The style of some text.</dd><dt><a class="enum" href="enum.Weight.html" title="enum cosmic::iced::daemon::program::graphics::core::font::Weight">Weight</a></dt><dd>The weight of some text.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Family","Stretch","Style","Weight"],"struct":["Font"]};

File diff suppressed because one or more lines are too long

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