deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
2
cosmic/iced/widget/button/constant.DEFAULT_PADDING.html
Normal file
2
cosmic/iced/widget/button/constant.DEFAULT_PADDING.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The default `Padding` of a `Button`."><title>DEFAULT_PADDING in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Constant <span class="constant">DEFAULT_PADDING</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 DEFAULT_PADDING: <a class="struct" href="../../struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default <a href="../../struct.Padding.html" title="struct cosmic::iced::Padding"><code>Padding</code></a> of a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
85
cosmic/iced/widget/button/enum.Status.html
Normal file
85
cosmic/iced/widget/button/enum.Status.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/iced/widget/button/fn.background.html
Normal file
2
cosmic/iced/widget/button/fn.background.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A button using background shades."><title>background in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">background</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 background(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A button using background shades.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.danger.html
Normal file
2
cosmic/iced/widget/button/fn.danger.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A danger button; denoting a destructive action."><title>danger in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">danger</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 danger(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A danger button; denoting a destructive action.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/widget/button/fn.focus.html
Normal file
3
cosmic/iced/widget/button/fn.focus.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Produces a `Task` that focuses the `Button` with the given `Id`."><title>focus in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">focus</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn focus<Message>(id: <a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>) -> <a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message><div class="where">where
|
||||
Message: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Produces a <a href="../../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that focuses the <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a> with the given <a href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.primary.html
Normal file
2
cosmic/iced/widget/button/fn.primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A primary button; denoting a main action."><title>primary in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">primary</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn primary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A primary button; denoting a main action.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.secondary.html
Normal file
2
cosmic/iced/widget/button/fn.secondary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A secondary button; denoting a complementary action."><title>secondary in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">secondary</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 secondary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A secondary button; denoting a complementary action.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.subtle.html
Normal file
2
cosmic/iced/widget/button/fn.subtle.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A subtle button using weak background shades."><title>subtle in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">subtle</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 subtle(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A subtle button using weak background shades.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.success.html
Normal file
2
cosmic/iced/widget/button/fn.success.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A success button; denoting a good outcome."><title>success in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">success</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 success(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A success button; denoting a good outcome.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.text.html
Normal file
2
cosmic/iced/widget/button/fn.text.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A text button; useful for links."><title>text in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">text</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn text(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A text button; useful for links.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/fn.warning.html
Normal file
2
cosmic/iced/widget/button/fn.warning.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A warning button; denoting a risky action."><title>warning in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Function <span class="fn">warning</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 warning(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A warning button; denoting a risky action.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
14
cosmic/iced/widget/button/index.html
Normal file
14
cosmic/iced/widget/button/index.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!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="Buttons allow your users to perform actions by pressing them."><title>cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module button</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</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>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>button</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Buttons allow your users to perform actions by pressing them.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::button;
|
||||
|
||||
<span class="attr">#[derive(Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
ButtonPressed,
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
button(<span class="string">"Press me!"</span>).on_press(Message::ButtonPressed).into()
|
||||
}</code></pre></div>
|
||||
<p>Allow your users to perform actions by pressing a button.</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.Button.html" title="struct cosmic::iced::widget::button::Button">Button</a></dt><dd>A generic widget that produces a message when pressed.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></dt><dd>The style of a button.</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.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a></dt><dd>The possible status of a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</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.DEFAULT_PADDING.html" title="constant cosmic::iced::widget::button::DEFAULT_PADDING">DEFAULT_<wbr>PADDING</a></dt><dd>The default <a href="../../struct.Padding.html" title="struct cosmic::iced::Padding"><code>Padding</code></a> of a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</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.Catalog.html" title="trait cosmic::iced::widget::button::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.background.html" title="fn cosmic::iced::widget::button::background">background</a></dt><dd>A button using background shades.</dd><dt><a class="fn" href="fn.danger.html" title="fn cosmic::iced::widget::button::danger">danger</a></dt><dd>A danger button; denoting a destructive action.</dd><dt><a class="fn" href="fn.focus.html" title="fn cosmic::iced::widget::button::focus">focus</a></dt><dd>Produces a <a href="../../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that focuses the <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a> with the given <a href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</dd><dt><a class="fn" href="fn.primary.html" title="fn cosmic::iced::widget::button::primary">primary</a></dt><dd>A primary button; denoting a main action.</dd><dt><a class="fn" href="fn.secondary.html" title="fn cosmic::iced::widget::button::secondary">secondary</a></dt><dd>A secondary button; denoting a complementary action.</dd><dt><a class="fn" href="fn.subtle.html" title="fn cosmic::iced::widget::button::subtle">subtle</a></dt><dd>A subtle button using weak background shades.</dd><dt><a class="fn" href="fn.success.html" title="fn cosmic::iced::widget::button::success">success</a></dt><dd>A success button; denoting a good outcome.</dd><dt><a class="fn" href="fn.text.html" title="fn cosmic::iced::widget::button::text">text</a></dt><dd>A text button; useful for links.</dd><dt><a class="fn" href="fn.warning.html" title="fn cosmic::iced::widget::button::warning">warning</a></dt><dd>A warning button; denoting a risky action.</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.StyleFn.html" title="type cosmic::iced::widget::button::StyleFn">StyleFn</a></dt><dd>A styling function for a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/button/sidebar-items.js
Normal file
1
cosmic/iced/widget/button/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"constant":["DEFAULT_PADDING"],"enum":["Status"],"fn":["background","danger","focus","primary","secondary","subtle","success","text","warning"],"struct":["Button","Style"],"trait":["Catalog"],"type":["StyleFn"]};
|
||||
210
cosmic/iced/widget/button/struct.Button.html
Normal file
210
cosmic/iced/widget/button/struct.Button.html
Normal file
File diff suppressed because one or more lines are too long
93
cosmic/iced/widget/button/struct.Style.html
Normal file
93
cosmic/iced/widget/button/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
51
cosmic/iced/widget/button/trait.Catalog.html
Normal file
51
cosmic/iced/widget/button/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `Button`."><title>Catalog in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::button::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::button::Catalog::Class">Class</a><'_>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</p>
|
||||
<p>All themes that can be used with <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>
|
||||
must implement this trait.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[derive(Debug, Default)]
|
||||
</span><span class="kw">pub enum </span>ButtonClass {
|
||||
<span class="attr">#[default]
|
||||
</span>Primary,
|
||||
Secondary,
|
||||
Danger
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>Catalog <span class="kw">for </span>MyTheme {
|
||||
<span class="kw">type </span>Class<<span class="lifetime">'a</span>> = ButtonClass;
|
||||
|
||||
<span class="kw">fn </span>default<<span class="lifetime">'a</span>>() -> <span class="self">Self</span>::Class<<span class="lifetime">'a</span>> {
|
||||
ButtonClass::default()
|
||||
}
|
||||
|
||||
|
||||
<span class="kw">fn </span>style(<span class="kw-2">&</span><span class="self">self</span>, class: <span class="kw-2">&</span><span class="self">Self</span>::Class<<span class="lifetime">'_</span>>, status: Status) -> Style {
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>style = Style::default();
|
||||
|
||||
<span class="kw">match </span>class {
|
||||
ButtonClass::Primary => {
|
||||
style.background = <span class="prelude-val">Some</span>(Background::Color(Color::from_rgb(<span class="number">0.529</span>, <span class="number">0.808</span>, <span class="number">0.921</span>)));
|
||||
},
|
||||
ButtonClass::Secondary => {
|
||||
style.background = <span class="prelude-val">Some</span>(Background::Color(Color::WHITE));
|
||||
},
|
||||
ButtonClass::Danger => {
|
||||
style.background = <span class="prelude-val">Some</span>(Background::Color(Color::from_rgb(<span class="number">0.941</span>, <span class="number">0.502</span>, <span class="number">0.502</span>)));
|
||||
},
|
||||
}
|
||||
|
||||
style
|
||||
}
|
||||
}</code></pre></div>
|
||||
<p>Although, in order to use <a href="../struct.Button.html#method.style" title="method cosmic::iced::widget::Button::style"><code>Button::style</code></a>
|
||||
with <code>MyTheme</code>, <a href="trait.Catalog.html#associatedtype.Class" title="associated type cosmic::iced::widget::button::Catalog::Class"><code>Catalog::Class</code></a> must implement
|
||||
<code>From<StyleFn<'_, MyTheme>></code>.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="trait.Catalog.html" title="trait cosmic::iced::widget::button::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::button::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="trait.Catalog.html" title="trait cosmic::iced::widget::button::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::button::Catalog::Class">Class</a><'_>, status: <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::iced::widget::button::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::button::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#68-147">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::button::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#69">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../../style/iced/enum.Button.html" title="enum cosmic::style::iced::Button">Button</a></h4></section></div></details></div><script src="../../../../trait.impl/iced_widget/button/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/button/type.StyleFn.html
Normal file
2
cosmic/iced/widget/button/type.StyleFn.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `Button`."><title>StyleFn in cosmic::iced::widget::button - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>button</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">button</a></div><h1>Type Alias <span class="type">StyleFn</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 StyleFn<'a, Theme> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>, <a class="enum" href="enum.Status.html" title="enum cosmic::iced::widget::button::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::button::Style">Style</a> + 'a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a>.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn<'a, Theme>(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::iced::widget::button::StyleFn" async></script></section></div></main></body></html>
|
||||
89
cosmic/iced/widget/canvas/enum.Event.html
Normal file
89
cosmic/iced/widget/canvas/enum.Event.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/iced/widget/canvas/enum.Gradient.html
Normal file
76
cosmic/iced/widget/canvas/enum.Gradient.html
Normal file
File diff suppressed because one or more lines are too long
78
cosmic/iced/widget/canvas/enum.LineCap.html
Normal file
78
cosmic/iced/widget/canvas/enum.LineCap.html
Normal file
File diff suppressed because one or more lines are too long
77
cosmic/iced/widget/canvas/enum.LineJoin.html
Normal file
77
cosmic/iced/widget/canvas/enum.LineJoin.html
Normal file
File diff suppressed because one or more lines are too long
75
cosmic/iced/widget/canvas/enum.Style.html
Normal file
75
cosmic/iced/widget/canvas/enum.Style.html
Normal file
File diff suppressed because one or more lines are too long
45
cosmic/iced/widget/canvas/index.html
Normal file
45
cosmic/iced/widget/canvas/index.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Canvases can be leveraged to draw interactive 2D graphics."><title>cosmic::iced::widget::canvas - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module canvas</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example-drawing-a-simple-circle" title="Example: Drawing a Simple Circle">Example: Drawing a Simple Circle</a></li></ul><h3><a href="#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="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>canvas</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Canvases can be leveraged to draw interactive 2D graphics.</p>
|
||||
<h2 id="example-drawing-a-simple-circle"><a class="doc-anchor" href="#example-drawing-a-simple-circle">§</a>Example: Drawing a Simple Circle</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::mouse;
|
||||
<span class="kw">use </span>iced::widget::canvas;
|
||||
<span class="kw">use </span>iced::{Color, Rectangle, Renderer, Theme};
|
||||
|
||||
<span class="comment">// First, we define the data we need for drawing
|
||||
</span><span class="attr">#[derive(Debug)]
|
||||
</span><span class="kw">struct </span>Circle {
|
||||
radius: f32,
|
||||
}
|
||||
|
||||
<span class="comment">// Then, we implement the `Program` trait
|
||||
</span><span class="kw">impl</span><Message> canvas::Program<Message> <span class="kw">for </span>Circle {
|
||||
<span class="comment">// No internal state
|
||||
</span><span class="kw">type </span>State = ();
|
||||
|
||||
<span class="kw">fn </span>draw(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
_state: <span class="kw-2">&</span>(),
|
||||
renderer: <span class="kw-2">&</span>Renderer,
|
||||
_theme: <span class="kw-2">&</span>Theme,
|
||||
bounds: Rectangle,
|
||||
_cursor: mouse::Cursor
|
||||
) -> Vec<canvas::Geometry> {
|
||||
<span class="comment">// We prepare a new `Frame`
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>frame = canvas::Frame::new(renderer, bounds.size());
|
||||
|
||||
<span class="comment">// We create a `Path` representing a simple circle
|
||||
</span><span class="kw">let </span>circle = canvas::Path::circle(frame.center(), <span class="self">self</span>.radius);
|
||||
|
||||
<span class="comment">// And fill it with some color
|
||||
</span>frame.fill(<span class="kw-2">&</span>circle, Color::BLACK);
|
||||
|
||||
<span class="comment">// Then, we produce the geometry
|
||||
</span><span class="macro">vec!</span>[frame.into_geometry()]
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Finally, we simply use our `Circle` to create the `Canvas`!
|
||||
</span><span class="kw">fn </span>view<<span class="lifetime">'a</span>, Message: <span class="lifetime">'a</span>>(_state: <span class="kw-2">&</span><span class="lifetime">'a </span>State) -> Element<<span class="lifetime">'a</span>, Message> {
|
||||
canvas(Circle { radius: <span class="number">50.0 </span>}).into()
|
||||
}</code></pre></div>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Action.html" title="struct cosmic::iced::widget::canvas::Action">Action</a></dt><dd>A runtime action that can be performed by some widgets.</dd><dt><a class="struct" href="struct.Canvas.html" title="struct cosmic::iced::widget::canvas::Canvas">Canvas</a></dt><dd>A widget capable of drawing 2D graphics.</dd><dt><a class="struct" href="struct.Fill.html" title="struct cosmic::iced::widget::canvas::Fill">Fill</a></dt><dd>The style used to fill geometry.</dd><dt><a class="struct" href="struct.Group.html" title="struct cosmic::iced::widget::canvas::Group">Group</a></dt><dd>A cache group.</dd><dt><a class="struct" href="struct.Image.html" title="struct cosmic::iced::widget::canvas::Image">Image</a></dt><dd>A raster image that can be drawn.</dd><dt><a class="struct" href="struct.LineDash.html" title="struct cosmic::iced::widget::canvas::LineDash">Line<wbr>Dash</a></dt><dd>The dash pattern used when stroking the line.</dd><dt><a class="struct" href="struct.Path.html" title="struct cosmic::iced::widget::canvas::Path">Path</a></dt><dd>An immutable set of points that may or may not be connected.</dd><dt><a class="struct" href="struct.Stroke.html" title="struct cosmic::iced::widget::canvas::Stroke">Stroke</a></dt><dd>The style of a stroke.</dd><dt><a class="struct" href="struct.Text.html" title="struct cosmic::iced::widget::canvas::Text">Text</a></dt><dd>A bunch of text that can be drawn to a canvas</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Event.html" title="enum cosmic::iced::widget::canvas::Event">Event</a></dt><dd>A user interface event.</dd><dt><a class="enum" href="enum.Gradient.html" title="enum cosmic::iced::widget::canvas::Gradient">Gradient</a></dt><dd>A fill which linearly interpolates colors along a direction.</dd><dt><a class="enum" href="enum.LineCap.html" title="enum cosmic::iced::widget::canvas::LineCap">LineCap</a></dt><dd>The shape used at the end of open subpaths when they are stroked.</dd><dt><a class="enum" href="enum.LineJoin.html" title="enum cosmic::iced::widget::canvas::LineJoin">Line<wbr>Join</a></dt><dd>The shape used at the corners of paths or basic shapes when they are
|
||||
stroked.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::iced::widget::canvas::Style">Style</a></dt><dd>The coloring style of some drawing.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Program.html" title="trait cosmic::iced::widget::canvas::Program">Program</a></dt><dd>The state and logic of a <a href="../../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.Cache.html" title="type cosmic::iced::widget::canvas::Cache">Cache</a></dt><dd>A simple cache that stores generated <a href="../../../widget/canvas/type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a> to avoid recomputation.</dd><dt><a class="type" href="type.Frame.html" title="type cosmic::iced::widget::canvas::Frame">Frame</a></dt><dd>The frame supported by a renderer.</dd><dt><a class="type" href="type.Geometry.html" title="type cosmic::iced::widget::canvas::Geometry">Geometry</a></dt><dd>The geometry supported by a renderer.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/canvas/sidebar-items.js
Normal file
1
cosmic/iced/widget/canvas/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Event","Gradient","LineCap","LineJoin","Style"],"struct":["Action","Canvas","Fill","Group","Image","LineDash","Path","Stroke","Text"],"trait":["Program"],"type":["Cache","Frame","Geometry"]};
|
||||
93
cosmic/iced/widget/canvas/struct.Action.html
Normal file
93
cosmic/iced/widget/canvas/struct.Action.html
Normal file
File diff suppressed because one or more lines are too long
212
cosmic/iced/widget/canvas/struct.Canvas.html
Normal file
212
cosmic/iced/widget/canvas/struct.Canvas.html
Normal file
File diff suppressed because one or more lines are too long
78
cosmic/iced/widget/canvas/struct.Fill.html
Normal file
78
cosmic/iced/widget/canvas/struct.Fill.html
Normal file
File diff suppressed because one or more lines are too long
98
cosmic/iced/widget/canvas/struct.Group.html
Normal file
98
cosmic/iced/widget/canvas/struct.Group.html
Normal file
File diff suppressed because one or more lines are too long
101
cosmic/iced/widget/canvas/struct.Image.html
Normal file
101
cosmic/iced/widget/canvas/struct.Image.html
Normal file
File diff suppressed because one or more lines are too long
74
cosmic/iced/widget/canvas/struct.LineDash.html
Normal file
74
cosmic/iced/widget/canvas/struct.LineDash.html
Normal file
File diff suppressed because one or more lines are too long
84
cosmic/iced/widget/canvas/struct.Path.html
Normal file
84
cosmic/iced/widget/canvas/struct.Path.html
Normal file
File diff suppressed because one or more lines are too long
86
cosmic/iced/widget/canvas/struct.Stroke.html
Normal file
86
cosmic/iced/widget/canvas/struct.Stroke.html
Normal file
File diff suppressed because one or more lines are too long
100
cosmic/iced/widget/canvas/struct.Text.html
Normal file
100
cosmic/iced/widget/canvas/struct.Text.html
Normal file
File diff suppressed because one or more lines are too long
84
cosmic/iced/widget/canvas/trait.Program.html
Normal file
84
cosmic/iced/widget/canvas/trait.Program.html
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The state and logic of a `Canvas`."><title>Program in cosmic::iced::widget::canvas - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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="#">Program</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.State" title="State">State</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.draw" title="draw">draw</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.mouse_interaction" title="mouse_interaction">mouse_interaction</a></li><li><a href="#method.update" title="update">update</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Program%3CMessage,+Theme,+Renderer%3E-for-%26T" title="&T">&T</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>widget::<wbr>canvas</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">canvas</a></div><h1>Trait <span class="trait">Program</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 Program<Message, Theme = <a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, Renderer = Renderer><div class="where">where
|
||||
Renderer: <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>,</div>{
|
||||
type <a href="#associatedtype.State" class="associatedtype">State</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.draw" class="fn">draw</a>(
|
||||
&self,
|
||||
state: &Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<Renderer as <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry">Geometry</a>>;
|
||||
|
||||
// Provided methods
|
||||
fn <a href="#method.update" class="fn">update</a>(
|
||||
&self,
|
||||
_state: &mut Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
_event: &<a class="enum" href="../../enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widget/canvas/struct.Action.html" title="struct cosmic::widget::canvas::Action">Action</a><Message>> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
|
||||
&self,
|
||||
_state: &Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="../../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a> { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The state and logic of a <a href="../../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</p>
|
||||
<p>A <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a> can mutate internal state and produce messages for an
|
||||
application.</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.State" class="method"><h4 class="code-header">type <a href="#associatedtype.State" class="associatedtype">State</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static</h4></section></summary><div class="docblock"><p>The internal state mutated by the <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.draw" class="method"><h4 class="code-header">fn <a href="#tymethod.draw" class="fn">draw</a>(
|
||||
&self,
|
||||
state: &Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<Renderer as <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry">Geometry</a>></h4></section></summary><div class="docblock"><p>Draws the state of the <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a>, producing a bunch of <a href="../../../widget/canvas/type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a>.</p>
|
||||
<p><a href="../../../widget/canvas/type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a> can be easily generated with a <a href="../../../widget/canvas/type.Frame.html" title="type cosmic::widget::canvas::Frame"><code>Frame</code></a> or stored in a
|
||||
<a href="../../../widget/canvas/type.Cache.html" title="type cosmic::widget::canvas::Cache"><code>Cache</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.update" class="method"><h4 class="code-header">fn <a href="#method.update" class="fn">update</a>(
|
||||
&self,
|
||||
_state: &mut Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
_event: &<a class="enum" href="../../enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widget/canvas/struct.Action.html" title="struct cosmic::widget::canvas::Action">Action</a><Message>></h4></section></summary><div class="docblock"><p>Updates the <a href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="associated type iced_widget::canvas::program::Program::State::State"><code>State</code></a> of the <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a>.</p>
|
||||
<p>When a <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a> is used in a <a href="../../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>, the runtime will call this
|
||||
method for each <a href="../../enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a>.</p>
|
||||
<p>This method can optionally return an <a href="../../../widget/canvas/struct.Action.html" title="struct cosmic::widget::canvas::Action"><code>Action</code></a> to either notify an
|
||||
application of any meaningful interactions, capture the event, or
|
||||
request a redraw.</p>
|
||||
<p>By default, this method does and returns nothing.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.mouse_interaction" class="method"><h4 class="code-header">fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
|
||||
&self,
|
||||
_state: &Self::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
_bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
_cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="../../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a></h4></section></summary><div class="docblock"><p>Returns the current mouse interaction of the <a href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program"><code>Program</code></a>.</p>
|
||||
<p>The interaction returned will be in effect even if the cursor position
|
||||
is out of bounds of the program’s <a href="../../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</p>
|
||||
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Program%3CMessage,+Theme,+Renderer%3E-for-%26T" class="impl"><a href="#impl-Program%3CMessage,+Theme,+Renderer%3E-for-%26T" class="anchor">§</a><h3 class="code-header">impl<Message, Theme, Renderer, T> <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a><div class="where">where
|
||||
Renderer: <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>,
|
||||
T: <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.State-1" class="associatedtype trait-impl"><a href="#associatedtype.State-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.State" class="associatedtype">State</a> = <T as <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>>::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a></h4></section><section id="method.update-1" class="method trait-impl"><a href="#method.update-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.update" class="fn">update</a>(
|
||||
&self,
|
||||
state: &mut <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a> as <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>>::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
event: &<a class="enum" href="../../enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widget/canvas/struct.Action.html" title="struct cosmic::widget::canvas::Action">Action</a><Message>></h4></section><section id="method.draw" class="method trait-impl"><a href="#method.draw" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draw" class="fn">draw</a>(
|
||||
&self,
|
||||
state: &<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a> as <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>>::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<Renderer as <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry">Geometry</a>></h4></section><section id="method.mouse_interaction-1" class="method trait-impl"><a href="#method.mouse_interaction-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.mouse_interaction" class="fn">mouse_interaction</a>(
|
||||
&self,
|
||||
state: &<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a> as <a class="trait" href="../../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>>::<a class="associatedtype" href="../../../widget/canvas/trait.Program.html#associatedtype.State" title="type cosmic::widget::canvas::Program::State">State</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
cursor: <a class="enum" href="../../mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
) -> <a class="enum" href="../../mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</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_widget/canvas/program/trait.Program.js" async></script></section></div></main></body></html>
|
||||
4
cosmic/iced/widget/canvas/type.Cache.html
Normal file
4
cosmic/iced/widget/canvas/type.Cache.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A simple cache that stores generated `Geometry` to avoid recomputation."><title>Cache in cosmic::iced::widget::canvas - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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="#">Cache</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>canvas</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">canvas</a></div><h1>Type Alias <span class="type">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><pre class="rust item-decl"><code>pub type Cache<Renderer = Renderer> = <a class="struct" href="../../daemon/program/graphics/geometry/struct.Cache.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Cache">Cache</a><Renderer>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A simple cache that stores generated <a href="../../../widget/canvas/type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a> to avoid recomputation.</p>
|
||||
<p>A <a href="../../../widget/canvas/type.Cache.html" title="type cosmic::widget::canvas::Cache"><code>Cache</code></a> will not redraw its geometry unless the dimensions of its layer
|
||||
change or it is explicitly cleared.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct Cache<Renderer = Renderer> { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/cosmic/iced/daemon/program/graphics/geometry/struct.Cache.js" data-self-path="cosmic::widget::canvas::Cache" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/canvas/type.Frame.html
Normal file
2
cosmic/iced/widget/canvas/type.Frame.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The frame supported by a renderer."><title>Frame in cosmic::iced::widget::canvas - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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="#">Frame</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>canvas</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">canvas</a></div><h1>Type Alias <span class="type">Frame</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 Frame<Renderer = Renderer> = <a class="struct" href="../../daemon/program/graphics/geometry/struct.Frame.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Frame">Frame</a><Renderer>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The frame supported by a renderer.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct Frame<Renderer = Renderer> { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/cosmic/iced/daemon/program/graphics/geometry/struct.Frame.js" data-self-path="cosmic::widget::canvas::Frame" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/canvas/type.Geometry.html
Normal file
2
cosmic/iced/widget/canvas/type.Geometry.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The geometry supported by a renderer."><title>Geometry in cosmic::iced::widget::canvas - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc 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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>canvas</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">canvas</a></div><h1>Type Alias <span class="type">Geometry</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 Geometry<Renderer = Renderer> = <Renderer as <a class="trait" href="../../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry">Geometry</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The geometry supported by a renderer.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
92
cosmic/iced/widget/checkbox/enum.Status.html
Normal file
92
cosmic/iced/widget/checkbox/enum.Status.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/iced/widget/checkbox/fn.danger.html
Normal file
2
cosmic/iced/widget/checkbox/fn.danger.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A danger checkbox; denoting a negative toggle."><title>danger in cosmic::iced::widget::checkbox - 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>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Function <span class="fn">danger</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 danger(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A danger checkbox; denoting a negative toggle.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/checkbox/fn.primary.html
Normal file
2
cosmic/iced/widget/checkbox/fn.primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A primary checkbox; denoting a main toggle."><title>primary in cosmic::iced::widget::checkbox - 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>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Function <span class="fn">primary</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn primary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A primary checkbox; denoting a main toggle.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/checkbox/fn.secondary.html
Normal file
2
cosmic/iced/widget/checkbox/fn.secondary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A secondary checkbox; denoting a complementary toggle."><title>secondary in cosmic::iced::widget::checkbox - 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>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Function <span class="fn">secondary</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 secondary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A secondary checkbox; denoting a complementary toggle.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/checkbox/fn.success.html
Normal file
2
cosmic/iced/widget/checkbox/fn.success.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A success checkbox; denoting a positive toggle."><title>success in cosmic::iced::widget::checkbox - 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>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Function <span class="fn">success</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 success(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A success checkbox; denoting a positive toggle.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
29
cosmic/iced/widget/checkbox/index.html
Normal file
29
cosmic/iced/widget/checkbox/index.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!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="Checkboxes can be used to let users make binary choices."><title>cosmic::iced::widget::checkbox - 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 checkbox</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#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>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>checkbox</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>Checkboxes can be used to let users make binary choices.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::checkbox;
|
||||
|
||||
<span class="kw">struct </span>State {
|
||||
is_checked: bool,
|
||||
}
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
CheckboxToggled(bool),
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
checkbox(state.is_checked)
|
||||
.label(<span class="string">"Toggle me!"</span>)
|
||||
.on_toggle(Message::CheckboxToggled)
|
||||
.into()
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(state: <span class="kw-2">&mut </span>State, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::CheckboxToggled(is_checked) => {
|
||||
state.is_checked = is_checked;
|
||||
}
|
||||
}
|
||||
}</code></pre></div>
|
||||
<p><img src="https://github.com/iced-rs/iced/blob/7760618fb112074bc40b148944521f312152012a/docs/images/checkbox.png?raw=true" alt="Checkbox drawn by iced_wgpu" />
|
||||
Show toggle controls using checkboxes.</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.Checkbox.html" title="struct cosmic::iced::widget::checkbox::Checkbox">Checkbox</a></dt><dd>A box that can be checked.</dd><dt><a class="struct" href="struct.Icon.html" title="struct cosmic::iced::widget::checkbox::Icon">Icon</a></dt><dd>The icon in a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::checkbox::Style">Style</a></dt><dd>The style of a checkbox.</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.Status.html" title="enum cosmic::iced::widget::checkbox::Status">Status</a></dt><dd>The possible status of a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</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.Catalog.html" title="trait cosmic::iced::widget::checkbox::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.danger.html" title="fn cosmic::iced::widget::checkbox::danger">danger</a></dt><dd>A danger checkbox; denoting a negative toggle.</dd><dt><a class="fn" href="fn.primary.html" title="fn cosmic::iced::widget::checkbox::primary">primary</a></dt><dd>A primary checkbox; denoting a main toggle.</dd><dt><a class="fn" href="fn.secondary.html" title="fn cosmic::iced::widget::checkbox::secondary">secondary</a></dt><dd>A secondary checkbox; denoting a complementary toggle.</dd><dt><a class="fn" href="fn.success.html" title="fn cosmic::iced::widget::checkbox::success">success</a></dt><dd>A success checkbox; denoting a positive toggle.</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.StyleFn.html" title="type cosmic::iced::widget::checkbox::StyleFn">StyleFn</a></dt><dd>A styling function for a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/checkbox/sidebar-items.js
Normal file
1
cosmic/iced/widget/checkbox/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Status"],"fn":["danger","primary","secondary","success"],"struct":["Checkbox","Icon","Style"],"trait":["Catalog"],"type":["StyleFn"]};
|
||||
239
cosmic/iced/widget/checkbox/struct.Checkbox.html
Normal file
239
cosmic/iced/widget/checkbox/struct.Checkbox.html
Normal file
File diff suppressed because one or more lines are too long
92
cosmic/iced/widget/checkbox/struct.Icon.html
Normal file
92
cosmic/iced/widget/checkbox/struct.Icon.html
Normal file
File diff suppressed because one or more lines are too long
79
cosmic/iced/widget/checkbox/struct.Style.html
Normal file
79
cosmic/iced/widget/checkbox/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/iced/widget/checkbox/trait.Catalog.html
Normal file
11
cosmic/iced/widget/checkbox/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `Checkbox`."><title>Catalog in cosmic::iced::widget::checkbox - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog: <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.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../../../widget/checkbox/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::checkbox::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../../../widget/checkbox/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::checkbox::Catalog::Class">Class</a><'_>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="../../../widget/checkbox/trait.Catalog.html" title="trait cosmic::widget::checkbox::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../../../widget/checkbox/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::checkbox::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="../../../widget/checkbox/trait.Catalog.html" title="trait cosmic::widget::checkbox::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../../../widget/checkbox/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::checkbox::Catalog::Class">Class</a><'_>, status: <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/checkbox/trait.Catalog.html" title="trait cosmic::widget::checkbox::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#187-383">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/checkbox/trait.Catalog.html" title="trait cosmic::widget::checkbox::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#188">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../../style/enum.Checkbox.html" title="enum cosmic::style::Checkbox">Checkbox</a></h4></section></div></details></div><script src="../../../../trait.impl/iced_widget/checkbox/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
3
cosmic/iced/widget/checkbox/type.StyleFn.html
Normal file
3
cosmic/iced/widget/checkbox/type.StyleFn.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `Checkbox`."><title>StyleFn in cosmic::iced::widget::checkbox - 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="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>checkbox</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">widget</a>::<wbr><a href="index.html">checkbox</a></div><h1>Type Alias <span class="type">StyleFn</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 StyleFn<'a, Theme> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>, <a class="enum" href="../../../widget/checkbox/enum.Status.html" title="enum cosmic::widget::checkbox::Status">Status</a>) -> <a class="struct" href="../../../widget/checkbox/struct.Style.html" title="struct cosmic::widget::checkbox::Style">Style</a> + 'a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</p>
|
||||
<p>This is just a boxed closure: <code>Fn(&Theme, Status) -> Style</code>.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn<'a, Theme>(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::widget::checkbox::StyleFn" async></script></section></div></main></body></html>
|
||||
4
cosmic/iced/widget/column/fn.with_capacity.html
Normal file
4
cosmic/iced/widget/column/fn.with_capacity.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `with_capacity` fn in crate `cosmic`."><title>with_capacity in cosmic::iced::widget::column - 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>widget::<wbr>column</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">widget</a>::<wbr><a href="index.html">column</a></div><h1>Function <span class="fn">with_capacity</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_capacity<'a, Message, Theme, Renderer>(
|
||||
capacity: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
) -> <a class="struct" href="../../../widget/struct.Column.html" title="struct cosmic::widget::Column">Column</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Renderer: <a class="trait" href="../../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre></section></div></main></body></html>
|
||||
4
cosmic/iced/widget/column/fn.with_children.html
Normal file
4
cosmic/iced/widget/column/fn.with_children.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `with_children` fn in crate `cosmic`."><title>with_children in cosmic::iced::widget::column - 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>widget::<wbr>column</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">widget</a>::<wbr><a href="index.html">column</a></div><h1>Function <span class="fn">with_children</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_children<'a, Message, Theme, Renderer>(
|
||||
children: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../../widget/struct.Column.html" title="struct cosmic::widget::Column">Column</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Renderer: <a class="trait" href="../../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/column/index.html
Normal file
2
cosmic/iced/widget/column/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Distribute content vertically."><title>cosmic::iced::widget::column - 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 column</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>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>column</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>Distribute content vertically.</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.Column.html" title="struct cosmic::iced::widget::column::Column">Column</a></dt><dd>A container that distributes its contents vertically.</dd><dt><a class="struct" href="struct.Wrapping.html" title="struct cosmic::iced::widget::column::Wrapping">Wrapping</a></dt><dd>A <a href="../../../widget/struct.Column.html" title="struct cosmic::widget::Column"><code>Column</code></a> that wraps its contents.</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.with_capacity.html" title="fn cosmic::iced::widget::column::with_capacity">with_<wbr>capacity</a></dt><dt><a class="fn" href="fn.with_children.html" title="fn cosmic::iced::widget::column::with_children">with_<wbr>children</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/column/sidebar-items.js
Normal file
1
cosmic/iced/widget/column/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["with_capacity","with_children"],"struct":["Column","Wrapping"]};
|
||||
198
cosmic/iced/widget/column/struct.Column.html
Normal file
198
cosmic/iced/widget/column/struct.Column.html
Normal file
File diff suppressed because one or more lines are too long
135
cosmic/iced/widget/column/struct.Wrapping.html
Normal file
135
cosmic/iced/widget/column/struct.Wrapping.html
Normal file
File diff suppressed because one or more lines are too long
51
cosmic/iced/widget/combo_box/index.html
Normal file
51
cosmic/iced/widget/combo_box/index.html
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<!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="Combo boxes display a dropdown list of searchable and selectable options."><title>cosmic::iced::widget::combo_box - 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 combo_<wbr>box</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>combo_box</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>Combo boxes display a dropdown list of searchable and selectable options.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::combo_box;
|
||||
|
||||
<span class="kw">struct </span>State {
|
||||
fruits: combo_box::State<Fruit>,
|
||||
favorite: <span class="prelude-ty">Option</span><Fruit>,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Fruit {
|
||||
Apple,
|
||||
Orange,
|
||||
Strawberry,
|
||||
Tomato,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
FruitSelected(Fruit),
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
combo_box(
|
||||
<span class="kw-2">&</span>state.fruits,
|
||||
<span class="string">"Select your favorite fruit..."</span>,
|
||||
state.favorite.as_ref(),
|
||||
Message::FruitSelected
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(state: <span class="kw-2">&mut </span>State, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::FruitSelected(fruit) => {
|
||||
state.favorite = <span class="prelude-val">Some</span>(fruit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>std::fmt::Display <span class="kw">for </span>Fruit {
|
||||
<span class="kw">fn </span>fmt(<span class="kw-2">&</span><span class="self">self</span>, f: <span class="kw-2">&mut </span>std::fmt::Formatter<<span class="lifetime">'_</span>>) -> std::fmt::Result {
|
||||
f.write_str(<span class="kw">match </span><span class="self">self </span>{
|
||||
<span class="self">Self</span>::Apple => <span class="string">"Apple"</span>,
|
||||
<span class="self">Self</span>::Orange => <span class="string">"Orange"</span>,
|
||||
<span class="self">Self</span>::Strawberry => <span class="string">"Strawberry"</span>,
|
||||
<span class="self">Self</span>::Tomato => <span class="string">"Tomato"</span>,
|
||||
})
|
||||
}
|
||||
}</code></pre></div>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ComboBox.html" title="struct cosmic::iced::widget::combo_box::ComboBox">Combo<wbr>Box</a></dt><dd>A widget for searching and selecting a single value from a list of options.</dd><dt><a class="struct" href="struct.State.html" title="struct cosmic::iced::widget::combo_box::State">State</a></dt><dd>The local state of a <a href="../../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</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.Catalog.html" title="trait cosmic::iced::widget::combo_box::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/combo_box/sidebar-items.js
Normal file
1
cosmic/iced/widget/combo_box/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["ComboBox","State"],"trait":["Catalog"]};
|
||||
268
cosmic/iced/widget/combo_box/struct.ComboBox.html
Normal file
268
cosmic/iced/widget/combo_box/struct.ComboBox.html
Normal file
File diff suppressed because one or more lines are too long
80
cosmic/iced/widget/combo_box/struct.State.html
Normal file
80
cosmic/iced/widget/combo_box/struct.State.html
Normal file
File diff suppressed because one or more lines are too long
8
cosmic/iced/widget/combo_box/trait.Catalog.html
Normal file
8
cosmic/iced/widget/combo_box/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `ComboBox`."><title>Catalog in cosmic::iced::widget::combo_box - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.default_input" title="default_input">default_input</a></li><li><a href="#method.default_menu" title="default_menu">default_menu</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>widget::<wbr>combo_<wbr>box</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">widget</a>::<wbr><a href="index.html">combo_box</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog: <a class="trait" href="../text_input/trait.Catalog.html" title="trait cosmic::iced::widget::text_input::Catalog">Catalog</a> + <a class="trait" href="../../overlay/menu/trait.Catalog.html" title="trait cosmic::iced::overlay::menu::Catalog">Catalog</a> {
|
||||
// Provided methods
|
||||
fn <a href="#method.default_input" class="fn">default_input</a><'a>() -> Self::<a class="associatedtype" href="../text_input/trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text_input::Catalog::Class">Class</a><'a> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.default_menu" class="fn">default_menu</a><'a>() -> Self::<a class="associatedtype" href="../../overlay/menu/trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::overlay::menu::Catalog::Class">Class</a><'a> { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</code></a>.</p>
|
||||
</div></details><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.default_input" class="method"><h4 class="code-header">fn <a href="#method.default_input" class="fn">default_input</a><'a>() -> Self::<a class="associatedtype" href="../text_input/trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text_input::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class for the text input of the <a href="../../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.default_menu" class="method"><h4 class="code-header">fn <a href="#method.default_menu" class="fn">default_menu</a><'a>() -> Self::<a class="associatedtype" href="../../overlay/menu/trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::overlay::menu::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class for the menu of the <a href="../../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</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="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/combo_box/trait.Catalog.html" title="trait cosmic::widget::combo_box::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#1590">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/combo_box/trait.Catalog.html" title="trait cosmic::widget::combo_box::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></div><script src="../../../../trait.impl/iced_widget/combo_box/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.background.html
Normal file
2
cosmic/iced/widget/container/fn.background.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with the given `Background`."><title>background in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">background</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 background(background: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../enum.Background.html" title="enum cosmic::iced::Background">Background</a>>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with the given <a href="../../enum.Background.html" title="enum cosmic::iced::Background"><code>Background</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.bordered_box.html
Normal file
2
cosmic/iced/widget/container/fn.bordered_box.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A bordered `Container` with a background."><title>bordered_box in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">bordered_box</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 bordered_box(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A bordered <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a background.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.danger.html
Normal file
2
cosmic/iced/widget/container/fn.danger.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a danger background color."><title>danger in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">danger</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 danger(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a danger background color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.dark.html
Normal file
2
cosmic/iced/widget/container/fn.dark.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a dark background and white text."><title>dark in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">dark</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 dark(_theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a dark background and white text.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
7
cosmic/iced/widget/container/fn.draw_background.html
Normal file
7
cosmic/iced/widget/container/fn.draw_background.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Draws the background of a `Container` given its `Style` and its `bounds`."><title>draw_background in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">draw_background</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 draw_background<Renderer>(
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>,
|
||||
style: &<a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
)<div class="where">where
|
||||
Renderer: <a class="trait" href="../../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Draws the background of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> given its <a href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style"><code>Style</code></a> and its <code>bounds</code>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
12
cosmic/iced/widget/container/fn.layout.html
Normal file
12
cosmic/iced/widget/container/fn.layout.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Computes the layout of a `Container`."><title>layout in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">layout</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn layout(
|
||||
limits: &<a class="struct" href="../../struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>,
|
||||
width: <a class="enum" href="../../enum.Length.html" title="enum cosmic::iced::Length">Length</a>,
|
||||
height: <a class="enum" href="../../enum.Length.html" title="enum cosmic::iced::Length">Length</a>,
|
||||
max_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
max_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
horizontal_alignment: <a class="enum" href="../../daemon/program/graphics/core/alignment/enum.Horizontal.html" title="enum cosmic::iced::daemon::program::graphics::core::alignment::Horizontal">Horizontal</a>,
|
||||
vertical_alignment: <a class="enum" href="../../daemon/program/graphics/core/alignment/enum.Vertical.html" title="enum cosmic::iced::daemon::program::graphics::core::alignment::Vertical">Vertical</a>,
|
||||
layout_content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&<a class="struct" href="../../struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>) -> <a class="struct" href="../../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a>,
|
||||
) -> <a class="struct" href="../../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Computes the layout of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.primary.html
Normal file
2
cosmic/iced/widget/container/fn.primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a primary background color."><title>primary in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">primary</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn primary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a primary background color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.rounded_box.html
Normal file
2
cosmic/iced/widget/container/fn.rounded_box.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A rounded `Container` with a background."><title>rounded_box in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">rounded_box</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_box(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A rounded <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a background.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.secondary.html
Normal file
2
cosmic/iced/widget/container/fn.secondary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a secondary background color."><title>secondary in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">secondary</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 secondary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a secondary background color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.success.html
Normal file
2
cosmic/iced/widget/container/fn.success.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a success background color."><title>success in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">success</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 success(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a success background color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.transparent.html
Normal file
2
cosmic/iced/widget/container/fn.transparent.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A transparent `Container`."><title>transparent in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">transparent</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 transparent<Theme>(_theme: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A transparent <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/widget/container/fn.visible_bounds.html
Normal file
3
cosmic/iced/widget/container/fn.visible_bounds.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Produces a `Task` that queries the visible screen bounds of the `Container` with the given `Id`."><title>visible_bounds in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">visible_bounds</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 visible_bounds(id: <a class="struct" href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id">Id</a>) -> <a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Produces a <a href="../../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that queries the visible screen bounds of the
|
||||
<a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with the given <a href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/fn.warning.html
Normal file
2
cosmic/iced/widget/container/fn.warning.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `Container` with a warning background color."><title>warning in cosmic::iced::widget::container - 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>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Function <span class="fn">warning</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 warning(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a warning background color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
17
cosmic/iced/widget/container/index.html
Normal file
17
cosmic/iced/widget/container/index.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Containers let you align a widget inside their boundaries."><title>cosmic::iced::widget::container - 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 container</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><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>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>container</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Containers let you align a widget inside their boundaries.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::container;
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
<span class="comment">// ...
|
||||
</span>}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
container(<span class="string">"This text is centered inside a rounded box!"</span>)
|
||||
.padding(<span class="number">10</span>)
|
||||
.center(<span class="number">800</span>)
|
||||
.style(container::rounded_box)
|
||||
.into()
|
||||
}</code></pre></div>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Container.html" title="struct cosmic::iced::widget::container::Container">Container</a></dt><dd>A widget that aligns its contents inside of its boundaries.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::container::Style">Style</a></dt><dd>The appearance of a container.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::container::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.background.html" title="fn cosmic::iced::widget::container::background">background</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with the given <a href="../../enum.Background.html" title="enum cosmic::iced::Background"><code>Background</code></a>.</dd><dt><a class="fn" href="fn.bordered_box.html" title="fn cosmic::iced::widget::container::bordered_box">bordered_<wbr>box</a></dt><dd>A bordered <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a background.</dd><dt><a class="fn" href="fn.danger.html" title="fn cosmic::iced::widget::container::danger">danger</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a danger background color.</dd><dt><a class="fn" href="fn.dark.html" title="fn cosmic::iced::widget::container::dark">dark</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a dark background and white text.</dd><dt><a class="fn" href="fn.draw_background.html" title="fn cosmic::iced::widget::container::draw_background">draw_<wbr>background</a></dt><dd>Draws the background of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> given its <a href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style"><code>Style</code></a> and its <code>bounds</code>.</dd><dt><a class="fn" href="fn.layout.html" title="fn cosmic::iced::widget::container::layout">layout</a></dt><dd>Computes the layout of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd><dt><a class="fn" href="fn.primary.html" title="fn cosmic::iced::widget::container::primary">primary</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a primary background color.</dd><dt><a class="fn" href="fn.rounded_box.html" title="fn cosmic::iced::widget::container::rounded_box">rounded_<wbr>box</a></dt><dd>A rounded <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a background.</dd><dt><a class="fn" href="fn.secondary.html" title="fn cosmic::iced::widget::container::secondary">secondary</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a secondary background color.</dd><dt><a class="fn" href="fn.success.html" title="fn cosmic::iced::widget::container::success">success</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a success background color.</dd><dt><a class="fn" href="fn.transparent.html" title="fn cosmic::iced::widget::container::transparent">transparent</a></dt><dd>A transparent <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd><dt><a class="fn" href="fn.visible_bounds.html" title="fn cosmic::iced::widget::container::visible_bounds">visible_<wbr>bounds</a></dt><dd>Produces a <a href="../../../struct.Task.html" title="struct cosmic::Task"><code>Task</code></a> that queries the visible screen bounds of the
|
||||
<a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with the given <a href="../../../widget/struct.Id.html" title="struct cosmic::widget::Id"><code>Id</code></a>.</dd><dt><a class="fn" href="fn.warning.html" title="fn cosmic::iced::widget::container::warning">warning</a></dt><dd>A <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with a warning background color.</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.StyleFn.html" title="type cosmic::iced::widget::container::StyleFn">StyleFn</a></dt><dd>A styling function for a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/container/sidebar-items.js
Normal file
1
cosmic/iced/widget/container/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["background","bordered_box","danger","dark","draw_background","layout","primary","rounded_box","secondary","success","transparent","visible_bounds","warning"],"struct":["Container","Style"],"trait":["Catalog"],"type":["StyleFn"]};
|
||||
217
cosmic/iced/widget/container/struct.Container.html
Normal file
217
cosmic/iced/widget/container/struct.Container.html
Normal file
File diff suppressed because one or more lines are too long
88
cosmic/iced/widget/container/struct.Style.html
Normal file
88
cosmic/iced/widget/container/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/iced/widget/container/trait.Catalog.html
Normal file
11
cosmic/iced/widget/container/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `Container`."><title>Catalog in cosmic::iced::widget::container - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../../../widget/aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../../../widget/aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="../../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="../../../widget/aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="../../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="../../../widget/aspect_ratio/trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::aspect_ratio::Catalog::Class">Class</a><'_>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#467-671">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> for cosmic::<a class="struct" href="../../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#468">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../../style/enum.Container.html" title="enum cosmic::style::Container">Container</a><'a></h4></section></div></details></div><script src="../../../../trait.impl/iced_widget/container/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/container/type.StyleFn.html
Normal file
2
cosmic/iced/widget/container/type.StyleFn.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `Container`."><title>StyleFn in cosmic::iced::widget::container - 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="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>container</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">widget</a>::<wbr><a href="index.html">container</a></div><h1>Type Alias <span class="type">StyleFn</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 StyleFn<'a, Theme> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>) -> <a class="struct" href="../../../widget/aspect_ratio/struct.Style.html" title="struct cosmic::widget::aspect_ratio::Style">Style</a> + 'a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a>.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn<'a, Theme>(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::widget::container::StyleFn" async></script></section></div></main></body></html>
|
||||
138
cosmic/iced/widget/enum.Theme.html
Normal file
138
cosmic/iced/widget/enum.Theme.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/iced/widget/float/index.html
Normal file
2
cosmic/iced/widget/float/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Make elements float!"><title>cosmic::iced::widget::float - 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 float</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Make elements float!</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.Float.html" title="struct cosmic::iced::widget::float::Float">Float</a></dt><dd>A widget that can make its contents float over other widgets.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::float::Style">Style</a></dt><dd>The style of a <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</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.Catalog.html" title="trait cosmic::iced::widget::float::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.StyleFn.html" title="type cosmic::iced::widget::float::StyleFn">StyleFn</a></dt><dd>A styling function for a <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/widget/float/sidebar-items.js
Normal file
1
cosmic/iced/widget/float/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Float","Style"],"trait":["Catalog"],"type":["StyleFn"]};
|
||||
148
cosmic/iced/widget/float/struct.Float.html
Normal file
148
cosmic/iced/widget/float/struct.Float.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/iced/widget/float/struct.Style.html
Normal file
76
cosmic/iced/widget/float/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
13
cosmic/iced/widget/float/trait.Catalog.html
Normal file
13
cosmic/iced/widget/float/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `Float`."><title>Catalog in cosmic::iced::widget::float - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>float</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">widget</a>::<wbr><a href="index.html">float</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::float::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::float::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::float::Style">Style</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a>.</p>
|
||||
<p>All themes that can be used with <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a>
|
||||
must implement this trait.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="trait.Catalog.html" title="trait cosmic::iced::widget::float::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::float::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="trait.Catalog.html" title="trait cosmic::iced::widget::float::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::float::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::float::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::iced::widget::float::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::float::Catalog">Catalog</a> for <a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::float::Style">Style</a> + 'a></h4></section></div></details></div><script src="../../../../trait.impl/iced_widget/float/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/float/type.StyleFn.html
Normal file
2
cosmic/iced/widget/float/type.StyleFn.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `Float`."><title>StyleFn in cosmic::iced::widget::float - 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="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>float</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">widget</a>::<wbr><a href="index.html">float</a></div><h1>Type Alias <span class="type">StyleFn</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 StyleFn<'a, Theme> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::float::Style">Style</a> + 'a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a>.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn<'a, Theme>(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::iced::widget::float::StyleFn" async></script></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.bottom.html
Normal file
10
cosmic/iced/widget/fn.bottom.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space vertically and bottom-aligns its contents inside."><title>bottom in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</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<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
vertically and bottom-aligns its contents inside.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bottom = container(<span class="string">"Bottom!"</span>).align_bottom(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.bottom_center.html
Normal file
10
cosmic/iced/widget/fn.bottom_center.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space and aligns its contents inside to the bottom center."><title>bottom_center in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">bottom_center</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_center<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
and aligns its contents inside to the bottom center.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bottom_center = container(<span class="string">"Bottom Center!"</span>).center_x(Fill).align_bottom(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.bottom_right.html
Normal file
10
cosmic/iced/widget/fn.bottom_right.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space and aligns its contents inside to the bottom right corner."><title>bottom_right in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</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<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
and aligns its contents inside to the bottom right corner.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bottom_right = container(<span class="string">"Bottom!"</span>).align_right(Fill).align_bottom(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
17
cosmic/iced/widget/fn.button.html
Normal file
17
cosmic/iced/widget/fn.button.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Button` with the provided content."><title>button in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">button</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">button</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn button<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="struct.Button.html" title="struct cosmic::iced::widget::Button">Button</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="button/trait.Catalog.html" title="trait cosmic::iced::widget::button::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="struct.Button.html" title="struct cosmic::iced::widget::Button"><code>Button</code></a> with the provided content.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::button;
|
||||
|
||||
<span class="attr">#[derive(Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
ButtonPressed,
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
button(<span class="string">"Press me!"</span>).on_press(Message::ButtonPressed).into()
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
49
cosmic/iced/widget/fn.canvas.html
Normal file
49
cosmic/iced/widget/fn.canvas.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!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 `Canvas`."><title>canvas in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">canvas</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example-drawing-a-simple-circle" title="Example: Drawing a Simple Circle">Example: Drawing a Simple Circle</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">canvas</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn canvas<P, Message, Theme, Renderer>(
|
||||
program: P,
|
||||
) -> <a class="struct" href="../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas">Canvas</a><P, Message, Theme, Renderer><div class="where">where
|
||||
Renderer: <a class="trait" href="../daemon/program/graphics/geometry/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::geometry::Renderer">Renderer</a>,
|
||||
P: <a class="trait" href="../../widget/canvas/trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a><Message, Theme, Renderer>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</p>
|
||||
<p>Canvases can be leveraged to draw interactive 2D graphics.</p>
|
||||
<h2 id="example-drawing-a-simple-circle"><a class="doc-anchor" href="#example-drawing-a-simple-circle">§</a>Example: Drawing a Simple Circle</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::mouse;
|
||||
<span class="kw">use </span>iced::widget::canvas;
|
||||
<span class="kw">use </span>iced::{Color, Rectangle, Renderer, Theme};
|
||||
|
||||
<span class="comment">// First, we define the data we need for drawing
|
||||
</span><span class="attr">#[derive(Debug)]
|
||||
</span><span class="kw">struct </span>Circle {
|
||||
radius: f32,
|
||||
}
|
||||
|
||||
<span class="comment">// Then, we implement the `Program` trait
|
||||
</span><span class="kw">impl</span><Message> canvas::Program<Message> <span class="kw">for </span>Circle {
|
||||
<span class="comment">// No internal state
|
||||
</span><span class="kw">type </span>State = ();
|
||||
|
||||
<span class="kw">fn </span>draw(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
_state: <span class="kw-2">&</span>(),
|
||||
renderer: <span class="kw-2">&</span>Renderer,
|
||||
_theme: <span class="kw-2">&</span>Theme,
|
||||
bounds: Rectangle,
|
||||
_cursor: mouse::Cursor
|
||||
) -> Vec<canvas::Geometry> {
|
||||
<span class="comment">// We prepare a new `Frame`
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>frame = canvas::Frame::new(renderer, bounds.size());
|
||||
|
||||
<span class="comment">// We create a `Path` representing a simple circle
|
||||
</span><span class="kw">let </span>circle = canvas::Path::circle(frame.center(), <span class="self">self</span>.radius);
|
||||
|
||||
<span class="comment">// And fill it with some color
|
||||
</span>frame.fill(<span class="kw-2">&</span>circle, Color::BLACK);
|
||||
|
||||
<span class="comment">// Then, we produce the geometry
|
||||
</span><span class="macro">vec!</span>[frame.into_geometry()]
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Finally, we simply use our `Circle` to create the `Canvas`!
|
||||
</span><span class="kw">fn </span>view<<span class="lifetime">'a</span>, Message: <span class="lifetime">'a</span>>(_state: <span class="kw-2">&</span><span class="lifetime">'a </span>State) -> Element<<span class="lifetime">'a</span>, Message> {
|
||||
canvas(Circle { radius: <span class="number">50.0 </span>}).into()
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.center.html
Normal file
10
cosmic/iced/widget/fn.center.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space and centers its contents inside."><title>center in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">center</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 center<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
and centers its contents inside.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>center = container(<span class="string">"Center!"</span>).center(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.center_x.html
Normal file
10
cosmic/iced/widget/fn.center_x.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space horizontally and centers its contents inside."><title>center_x in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">center_x</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 center_x<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
horizontally and centers its contents inside.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>center_x = container(<span class="string">"Horizontal Center!"</span>).center_x(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.center_y.html
Normal file
10
cosmic/iced/widget/fn.center_y.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Container` that fills all the available space vertically and centers its contents inside."><title>center_y in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">center_y</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 center_y<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> that fills all the available space
|
||||
vertically and centers its contents inside.</p>
|
||||
<p>This is equivalent to:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>center_y = container(<span class="string">"Vertical Center!"</span>).center_y(Fill);</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
32
cosmic/iced/widget/fn.checkbox.html
Normal file
32
cosmic/iced/widget/fn.checkbox.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!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 `Checkbox`."><title>checkbox in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">checkbox</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">checkbox</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 checkbox<'a, Message, Theme, Renderer>(
|
||||
is_checked: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
) -> <a class="struct" href="../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox">Checkbox</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/checkbox/trait.Catalog.html" title="trait cosmic::widget::checkbox::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Checkbox.html" title="struct cosmic::widget::Checkbox"><code>Checkbox</code></a>.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::checkbox;
|
||||
|
||||
<span class="kw">struct </span>State {
|
||||
is_checked: bool,
|
||||
}
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
CheckboxToggled(bool),
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
checkbox(state.is_checked)
|
||||
.label(<span class="string">"Toggle me!"</span>)
|
||||
.on_toggle(Message::CheckboxToggled)
|
||||
.into()
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(state: <span class="kw-2">&mut </span>State, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::CheckboxToggled(is_checked) => {
|
||||
state.is_checked = is_checked;
|
||||
}
|
||||
}
|
||||
}</code></pre></div>
|
||||
<p><img src="https://github.com/iced-rs/iced/blob/7760618fb112074bc40b148944521f312152012a/docs/images/checkbox.png?raw=true" alt="Checkbox drawn by iced_wgpu" /></p>
|
||||
</div></details></section></div></main></body></html>
|
||||
16
cosmic/iced/widget/fn.column.html
Normal file
16
cosmic/iced/widget/fn.column.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Column` with the given children."><title>column in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">column</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">column</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 column<'a, Message, Theme, Renderer>(
|
||||
children: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Column.html" title="struct cosmic::widget::Column">Column</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Column.html" title="struct cosmic::widget::Column"><code>Column</code></a> with the given children.</p>
|
||||
<p>Columns distribute their children vertically.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::{column, text};
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
<span class="comment">// ...
|
||||
</span>}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
column((<span class="number">0</span>..<span class="number">5</span>).map(|i| <span class="macro">text!</span>(<span class="string">"Item {i}"</span>).into())).into()
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
60
cosmic/iced/widget/fn.combo_box.html
Normal file
60
cosmic/iced/widget/fn.combo_box.html
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<!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 `ComboBox`."><title>combo_box in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">combo_<wbr>box</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">combo_box</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 combo_box<'a, T, Message, Theme, Renderer>(
|
||||
state: &'a <a class="struct" href="../../widget/combo_box/struct.State.html" title="struct cosmic::widget::combo_box::State">State</a><T>,
|
||||
placeholder: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
selection: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>>,
|
||||
on_selected: 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>(T) -> Message + 'static,
|
||||
) -> <a class="struct" href="../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox">ComboBox</a><'a, T, Message, Theme, Renderer><div class="where">where
|
||||
T: <a class="trait" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Display.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::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>,
|
||||
Theme: <a class="trait" href="../../widget/combo_box/trait.Catalog.html" title="trait cosmic::widget::combo_box::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.ComboBox.html" title="struct cosmic::widget::ComboBox"><code>ComboBox</code></a>.</p>
|
||||
<p>Combo boxes display a dropdown list of searchable and selectable options.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::combo_box;
|
||||
|
||||
<span class="kw">struct </span>State {
|
||||
fruits: combo_box::State<Fruit>,
|
||||
favorite: <span class="prelude-ty">Option</span><Fruit>,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Fruit {
|
||||
Apple,
|
||||
Orange,
|
||||
Strawberry,
|
||||
Tomato,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Debug, Clone)]
|
||||
</span><span class="kw">enum </span>Message {
|
||||
FruitSelected(Fruit),
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
combo_box(
|
||||
<span class="kw-2">&</span>state.fruits,
|
||||
<span class="string">"Select your favorite fruit..."</span>,
|
||||
state.favorite.as_ref(),
|
||||
Message::FruitSelected
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>update(state: <span class="kw-2">&mut </span>State, message: Message) {
|
||||
<span class="kw">match </span>message {
|
||||
Message::FruitSelected(fruit) => {
|
||||
state.favorite = <span class="prelude-val">Some</span>(fruit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>std::fmt::Display <span class="kw">for </span>Fruit {
|
||||
<span class="kw">fn </span>fmt(<span class="kw-2">&</span><span class="self">self</span>, f: <span class="kw-2">&mut </span>std::fmt::Formatter<<span class="lifetime">'_</span>>) -> std::fmt::Result {
|
||||
f.write_str(<span class="kw">match </span><span class="self">self </span>{
|
||||
<span class="self">Self</span>::Apple => <span class="string">"Apple"</span>,
|
||||
<span class="self">Self</span>::Orange => <span class="string">"Orange"</span>,
|
||||
<span class="self">Self</span>::Strawberry => <span class="string">"Strawberry"</span>,
|
||||
<span class="self">Self</span>::Tomato => <span class="string">"Tomato"</span>,
|
||||
})
|
||||
}
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/fn.component.html
Normal file
10
cosmic/iced/widget/fn.component.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Turns an implementor of `Component` into an `Element` that can be embedded in any application."><title>component in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">component</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 component<'a, C, Message, Theme, Renderer>(
|
||||
component: C,
|
||||
) -> <a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
C: <a class="trait" href="trait.Component.html" title="trait cosmic::iced::widget::Component">Component</a><Message, Theme, Renderer> + 'a,
|
||||
<C as <a class="trait" href="trait.Component.html" title="trait cosmic::iced::widget::Component">Component</a><Message, Theme, Renderer>>::<a class="associatedtype" href="trait.Component.html#associatedtype.State" title="type cosmic::iced::widget::Component::State">State</a>: 'static,
|
||||
Message: 'a,
|
||||
Theme: 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a> + 'a,</div></code></pre><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.13.0: components introduce encapsulated state and hamper the use of a single source of truth. Instead, leverage the Elm Architecture directly, or implement a custom widget</span></div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Turns an implementor of <a href="trait.Component.html" title="trait cosmic::iced::widget::Component"><code>Component</code></a> into an <a href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element"><code>Element</code></a> that can be
|
||||
embedded in any application.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
21
cosmic/iced/widget/fn.container.html
Normal file
21
cosmic/iced/widget/fn.container.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!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 `Container` with the provided content."><title>container in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">container</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">container</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn container<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="../../widget/struct.Container.html" title="struct cosmic::widget::Container">Container</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="../../widget/aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> + 'a,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../widget/struct.Container.html" title="struct cosmic::widget::Container"><code>Container</code></a> with the provided content.</p>
|
||||
<p>Containers let you align a widget inside their boundaries.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::container;
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
<span class="comment">// ...
|
||||
</span>}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
container(<span class="string">"This text is centered inside a rounded box!"</span>)
|
||||
.padding(<span class="number">10</span>)
|
||||
.center(<span class="number">800</span>)
|
||||
.style(container::rounded_box)
|
||||
.into()
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/iced/widget/fn.float.html
Normal file
6
cosmic/iced/widget/fn.float.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new `Float` widget with the given content."><title>float in cosmic::iced::widget - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">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 fn float<'a, Message, Theme, Renderer>(
|
||||
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, Theme, Renderer>>,
|
||||
) -> <a class="struct" href="struct.Float.html" title="struct cosmic::iced::widget::Float">Float</a><'a, Message, Theme, Renderer><div class="where">where
|
||||
Theme: <a class="trait" href="float/trait.Catalog.html" title="trait cosmic::iced::widget::float::Catalog">Catalog</a>,
|
||||
Renderer: <a class="trait" href="../advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="struct.Float.html" title="struct cosmic::iced::widget::Float"><code>Float</code></a> widget with the given content.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue