deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
18
cosmic/widget/dropdown/fn.draw.html
Normal file
18
cosmic/widget/dropdown/fn.draw.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!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 a `Dropdown`."><title>draw in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">draw</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#863-953">Source</a> </span></div><pre class="rust item-decl"><code>pub fn draw<'a, S>(
|
||||
renderer: &mut <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>,
|
||||
theme: &<a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>,
|
||||
layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
cursor: <a class="enum" href="../../iced/mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
gap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
text_size: <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.f32.html">f32</a>>,
|
||||
text_line_height: <a class="enum" href="../../iced/widget/text/enum.LineHeight.html" title="enum cosmic::iced::widget::text::LineHeight">LineHeight</a>,
|
||||
font: <a class="struct" href="../../font/struct.Font.html" title="struct cosmic::font::Font">Font</a>,
|
||||
selected: <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">&'a S</a>>,
|
||||
icon: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="struct" href="../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a>>,
|
||||
placeholder: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||||
state: &'a <a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::State">State</a>,
|
||||
viewport: &<a class="struct" href="../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
)<div class="where">where
|
||||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + 'a,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Draws a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
6
cosmic/widget/dropdown/fn.dropdown.html
Normal file
6
cosmic/widget/dropdown/fn.dropdown.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="Displays a list of options in a popover menu on select."><title>dropdown in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">dropdown</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/mod.rs.html#23-33">Source</a> </span></div><pre class="rust item-decl"><code>pub fn dropdown<'a, S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, Message: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
selections: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>>>,
|
||||
selected: <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.usize.html">usize</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>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
|
||||
) -> <a class="struct" href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown">Dropdown</a><'a, S, Message, Message></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Displays a list of options in a popover menu on select.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
14
cosmic/widget/dropdown/fn.layout.html
Normal file
14
cosmic/widget/dropdown/fn.layout.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="Computes the layout of a `Dropdown`."><title>layout in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">layout</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#454-533">Source</a> </span></div><pre class="rust item-decl"><code>pub fn layout(
|
||||
renderer: &<a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>,
|
||||
limits: &<a class="struct" href="../../iced/struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>,
|
||||
width: <a class="enum" href="../../iced/enum.Length.html" title="enum cosmic::iced::Length">Length</a>,
|
||||
gap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
text_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
text_line_height: <a class="enum" href="../../iced/widget/text/enum.LineHeight.html" title="enum cosmic::iced::widget::text::LineHeight">LineHeight</a>,
|
||||
font: <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="../../font/struct.Font.html" title="struct cosmic::font::Font">Font</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.str.html">str</a>, &mut <a class="struct" href="../../iced/daemon/program/graphics/core/text/paragraph/struct.Plain.html" title="struct cosmic::iced::daemon::program::graphics::core::text::paragraph::Plain">Plain</a><<<a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a> as <a class="trait" href="../../iced/daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>>::<a class="associatedtype" href="../../iced/daemon/program/graphics/core/text/trait.Renderer.html#associatedtype.Paragraph" title="type cosmic::iced::daemon::program::graphics::core::text::Renderer::Paragraph">Paragraph</a>>)>,
|
||||
placeholder: <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.str.html">str</a>>,
|
||||
has_icons: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
) -> <a class="struct" href="../../iced/daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Computes the layout of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
14
cosmic/widget/dropdown/fn.menu_widget.html
Normal file
14
cosmic/widget/dropdown/fn.menu_widget.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="Returns the current menu widget of a `Dropdown`."><title>menu_widget in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">menu_widget</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#732-790">Source</a> </span></div><pre class="rust item-decl"><code>pub fn menu_widget<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static, Message: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
bounds: <a class="struct" href="../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
state: &<a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::State">State</a>,
|
||||
gap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
text_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
selections: <a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>>,
|
||||
icons: <a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="struct" href="../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a>]>,
|
||||
selected_option: <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.usize.html">usize</a>>,
|
||||
on_selected: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</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.usize.html">usize</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static>,
|
||||
close_on_selected: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Message>,
|
||||
) -> <a class="type" href="../../type.Element.html" title="type cosmic::Element">Element</a><'static, Message><div class="where">where
|
||||
<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>: <a class="trait" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::ToOwned">ToOwned</a>,</div></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code> and crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the current menu widget of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/dropdown/fn.mouse_interaction.html
Normal file
2
cosmic/widget/dropdown/fn.mouse_interaction.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="Returns the current `mouse::Interaction` of a `Dropdown`."><title>mouse_interaction in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">mouse_interaction</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#718-727">Source</a> </span></div><pre class="rust item-decl"><code>pub fn mouse_interaction(layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>, cursor: <a class="enum" href="../../iced/mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>) -> <a class="enum" href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction">Interaction</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the current <a href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction"><code>mouse::Interaction</code></a> of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
18
cosmic/widget/dropdown/fn.overlay.html
Normal file
18
cosmic/widget/dropdown/fn.overlay.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the current overlay of a `Dropdown`."><title>overlay in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">overlay</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#794-859">Source</a> </span></div><pre class="rust item-decl"><code>pub fn overlay<'a, S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static, Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a>(
|
||||
layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
_renderer: &<a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>,
|
||||
state: &'a mut <a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::State">State</a>,
|
||||
gap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
text_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
_text_line_height: <a class="enum" href="../../iced/widget/text/enum.LineHeight.html" title="enum cosmic::iced::widget::text::LineHeight">LineHeight</a>,
|
||||
_font: <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="../../font/struct.Font.html" title="struct cosmic::font::Font">Font</a>>,
|
||||
selections: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>,
|
||||
icons: &'a [<a class="struct" href="../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a>],
|
||||
selected_option: <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.usize.html">usize</a>>,
|
||||
on_selected: &'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.usize.html">usize</a>) -> Message,
|
||||
translation: <a class="struct" href="../../iced/struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>,
|
||||
close_on_selected: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Message>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../iced/daemon/program/graphics/core/overlay/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::overlay::Element">Element</a><'a, Message, <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>, <a class="type" href="../../type.Renderer.html" title="type cosmic::Renderer">Renderer</a>>><div class="where">where
|
||||
<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>: <a class="trait" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::ToOwned">ToOwned</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the current overlay of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/widget/dropdown/fn.popup_dropdown.html
Normal file
10
cosmic/widget/dropdown/fn.popup_dropdown.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="Displays a list of options in a popover menu on select. AppMessage must be the App’s toplevel message."><title>popup_dropdown in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">popup_dropdown</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/mod.rs.html#37-57">Source</a> </span></div><pre class="rust item-decl"><code>pub fn popup_dropdown<'a, S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, Message: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, AppMessage: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
selections: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>>>,
|
||||
selected: <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.usize.html">usize</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>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
|
||||
_parent_id: <a class="struct" href="../../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>,
|
||||
_on_surface_action: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="enum" href="../../surface/enum.Action.html" title="enum cosmic::surface::Action">Action</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
|
||||
_map_action: 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>(Message) -> AppMessage + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
|
||||
) -> <a class="struct" href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown">Dropdown</a><'a, S, Message, AppMessage></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Displays a list of options in a popover menu on select.
|
||||
AppMessage must be the App’s toplevel message.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
22
cosmic/widget/dropdown/fn.update.html
Normal file
22
cosmic/widget/dropdown/fn.update.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!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="Processes an `Event` and updates the `State` of a `Dropdown` accordingly."><title>update in cosmic::widget::dropdown - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Function <span class="fn">update</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#538-714">Source</a> </span></div><pre class="rust item-decl"><code>pub fn update<'a, S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static, Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static, AppMessage: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static>(
|
||||
event: &<a class="enum" href="../../iced/enum.Event.html" title="enum cosmic::iced::Event">Event</a>,
|
||||
layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a><'_>,
|
||||
cursor: <a class="enum" href="../../iced/mouse/enum.Cursor.html" title="enum cosmic::iced::mouse::Cursor">Cursor</a>,
|
||||
shell: &mut <a class="struct" href="../../iced/advanced/struct.Shell.html" title="struct cosmic::iced::advanced::Shell">Shell</a><'_, Message>,
|
||||
positioner: <a class="struct" href="../../iced/daemon/program/runtime/platform_specific/wayland/popup/struct.SctkPositioner.html" title="struct cosmic::iced::daemon::program::runtime::platform_specific::wayland::popup::SctkPositioner">SctkPositioner</a>,
|
||||
on_selected: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</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.usize.html">usize</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static>,
|
||||
selected: <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.usize.html">usize</a>>,
|
||||
selections: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[S]</a>,
|
||||
state: 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 mut <a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::State">State</a>,
|
||||
_window_id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>>,
|
||||
on_surface_action: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</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="../../surface/enum.Action.html" title="enum cosmic::surface::Action">Action</a>) -> Message + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static>>,
|
||||
action_map: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</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>(Message) -> AppMessage + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static>>,
|
||||
icons: &[<a class="struct" href="../icon/struct.Handle.html" title="struct cosmic::widget::icon::Handle">Handle</a>],
|
||||
gap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||||
padding: <a class="struct" href="../../iced/struct.Padding.html" title="struct cosmic::iced::Padding">Padding</a>,
|
||||
text_size: <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.f32.html">f32</a>>,
|
||||
font: <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="../../font/struct.Font.html" title="struct cosmic::font::Font">Font</a>>,
|
||||
selected_option: <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.usize.html">usize</a>>,
|
||||
)</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Processes an <a href="../../iced/enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a> and updates the <a href="struct.State.html" title="struct cosmic::widget::dropdown::State"><code>State</code></a> of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>
|
||||
accordingly.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/dropdown/index.html
Normal file
4
cosmic/widget/dropdown/index.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Displays a list of options in a popover menu on select."><title>cosmic::widget::dropdown - 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 dropdown</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a></div><h1>Module <span>dropdown</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/mod.rs.html#5-57">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Displays a list of options in a popover menu on select.</p>
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.Menu"><code>pub use menu::<a class="struct" href="menu/struct.Menu.html" title="struct cosmic::widget::dropdown::menu::Menu">Menu</a>;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="menu/index.html" title="mod cosmic::widget::dropdown::menu">menu</a></dt><dt><a class="mod" href="multi/index.html" title="mod cosmic::widget::dropdown::multi">multi</a></dt><dt><a class="mod" href="operation/index.html" title="mod cosmic::widget::dropdown::operation">operation</a></dt><dd>Operate on dropdown widgets.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Dropdown.html" title="struct cosmic::widget::dropdown::Dropdown">Dropdown</a></dt><dd>A widget for selecting a single value from a list of selections.</dd><dt><a class="struct" href="struct.Id.html" title="struct cosmic::widget::dropdown::Id">Id</a></dt><dd>The identifier of a generic widget.</dd><dt><a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::State">State</a></dt><dd>The local state of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</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.draw.html" title="fn cosmic::widget::dropdown::draw">draw</a></dt><dd>Draws a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</dd><dt><a class="fn" href="fn.dropdown.html" title="fn cosmic::widget::dropdown::dropdown">dropdown</a></dt><dd>Displays a list of options in a popover menu on select.</dd><dt><a class="fn" href="fn.layout.html" title="fn cosmic::widget::dropdown::layout">layout</a></dt><dd>Computes the layout of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</dd><dt><a class="fn" href="fn.menu_widget.html" title="fn cosmic::widget::dropdown::menu_widget">menu_<wbr>widget</a><wbr><span class="stab portability" title="Available on crate feature `winit` and crate feature `wayland` and Linux only"><code>winit</code> and <code>wayland</code> and Linux</span></dt><dd>Returns the current menu widget of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</dd><dt><a class="fn" href="fn.mouse_interaction.html" title="fn cosmic::widget::dropdown::mouse_interaction">mouse_<wbr>interaction</a></dt><dd>Returns the current <a href="../../iced/mouse/enum.Interaction.html" title="enum cosmic::iced::mouse::Interaction"><code>mouse::Interaction</code></a> of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</dd><dt><a class="fn" href="fn.overlay.html" title="fn cosmic::widget::dropdown::overlay">overlay</a></dt><dd>Returns the current overlay of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>.</dd><dt><a class="fn" href="fn.popup_dropdown.html" title="fn cosmic::widget::dropdown::popup_dropdown">popup_<wbr>dropdown</a></dt><dd>Displays a list of options in a popover menu on select.
|
||||
AppMessage must be the App’s toplevel message.</dd><dt><a class="fn" href="fn.update.html" title="fn cosmic::widget::dropdown::update">update</a></dt><dd>Processes an <a href="../../iced/enum.Event.html" title="enum cosmic::iced::Event"><code>Event</code></a> and updates the <a href="struct.State.html" title="struct cosmic::widget::dropdown::State"><code>State</code></a> of a <a href="../struct.Dropdown.html" title="struct cosmic::widget::Dropdown"><code>Dropdown</code></a>
|
||||
accordingly.</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.DropdownView.html" title="type cosmic::widget::dropdown::DropdownView">Dropdown<wbr>View</a></dt></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/menu/struct.Appearance.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/menu/struct.Appearance.html">../../../../../cosmic/widget/dropdown/menu/struct.Appearance.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/menu/struct.Appearance.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/menu/appearance/trait.StyleSheet.html
Normal file
11
cosmic/widget/dropdown/menu/appearance/trait.StyleSheet.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/menu/trait.StyleSheet.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/menu/trait.StyleSheet.html">../../../../../cosmic/widget/dropdown/menu/trait.StyleSheet.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/menu/trait.StyleSheet.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
cosmic/widget/dropdown/menu/index.html
Normal file
1
cosmic/widget/dropdown/menu/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `menu` mod in crate `cosmic`."><title>cosmic::widget::dropdown::menu - 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 menu</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></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a></div><h1>Module <span>menu</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/menu/mod.rs.html#5-703">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Appearance.html" title="struct cosmic::widget::dropdown::menu::Appearance">Appearance</a></dt><dd>The appearance of a menu.</dd><dt><a class="struct" href="struct.Menu.html" title="struct cosmic::widget::dropdown::menu::Menu">Menu</a></dt><dd>A list of selectable options.</dd><dt><a class="struct" href="struct.State.html" title="struct cosmic::widget::dropdown::menu::State">State</a></dt><dd>The local state of a <a href="struct.Menu.html" title="struct cosmic::widget::dropdown::menu::Menu"><code>Menu</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.StyleSheet.html" title="trait cosmic::widget::dropdown::menu::StyleSheet">Style<wbr>Sheet</a></dt><dd>The style sheet of a menu.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/dropdown/menu/sidebar-items.js
Normal file
1
cosmic/widget/dropdown/menu/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Appearance","Menu","State"],"trait":["StyleSheet"]};
|
||||
89
cosmic/widget/dropdown/menu/struct.Appearance.html
Normal file
89
cosmic/widget/dropdown/menu/struct.Appearance.html
Normal file
File diff suppressed because one or more lines are too long
92
cosmic/widget/dropdown/menu/struct.Menu.html
Normal file
92
cosmic/widget/dropdown/menu/struct.Menu.html
Normal file
File diff suppressed because one or more lines are too long
70
cosmic/widget/dropdown/menu/struct.State.html
Normal file
70
cosmic/widget/dropdown/menu/struct.State.html
Normal file
File diff suppressed because one or more lines are too long
9
cosmic/widget/dropdown/menu/trait.StyleSheet.html
Normal file
9
cosmic/widget/dropdown/menu/trait.StyleSheet.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The style sheet of a menu."><title>StyleSheet in cosmic::widget::dropdown::menu - 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="#">Style<wbr>Sheet</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Style" title="Style">Style</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.appearance" title="appearance">appearance</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>menu</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">menu</a></div><h1>Trait <span class="trait">StyleSheet</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/menu/appearance.rs.html#34-40">Source</a> </span></div><pre class="rust item-decl"><code>pub trait StyleSheet {
|
||||
type <a href="#associatedtype.Style" class="associatedtype">Style</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.appearance" class="fn">appearance</a>(&self, style: &Self::<a class="associatedtype" href="trait.StyleSheet.html#associatedtype.Style" title="type cosmic::widget::dropdown::menu::StyleSheet::Style">Style</a>) -> <a class="struct" href="struct.Appearance.html" title="struct cosmic::widget::dropdown::menu::Appearance">Appearance</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The style sheet of a menu.</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.Style" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/dropdown/menu/appearance.rs.html#36">Source</a><h4 class="code-header">type <a href="#associatedtype.Style" class="associatedtype">Style</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>The supported style of the <a href="trait.StyleSheet.html" title="trait cosmic::widget::dropdown::menu::StyleSheet"><code>StyleSheet</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.appearance" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/dropdown/menu/appearance.rs.html#39">Source</a><h4 class="code-header">fn <a href="#tymethod.appearance" class="fn">appearance</a>(&self, style: &Self::<a class="associatedtype" href="trait.StyleSheet.html#associatedtype.Style" title="type cosmic::widget::dropdown::menu::StyleSheet::Style">Style</a>) -> <a class="struct" href="struct.Appearance.html" title="struct cosmic::widget::dropdown::menu::Appearance">Appearance</a></h4></section></summary><div class="docblock"><p>Produces the <a href="struct.Appearance.html" title="struct cosmic::widget::dropdown::menu::Appearance"><code>Appearance</code></a> of a menu.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-StyleSheet-for-Theme" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/dropdown.rs.html#8-30">Source</a><a href="#impl-StyleSheet-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StyleSheet.html" title="trait cosmic::widget::dropdown::menu::StyleSheet">StyleSheet</a> for <a class="struct" href="../../../struct.Theme.html" title="struct cosmic::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Style-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/dropdown.rs.html#9">Source</a><a href="#associatedtype.Style-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Style" class="associatedtype">Style</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details></div><script src="../../../../trait.impl/cosmic/widget/dropdown/menu/appearance/trait.StyleSheet.js" async></script></section></div></main></body></html>
|
||||
4
cosmic/widget/dropdown/multi/fn.dropdown.html
Normal file
4
cosmic/widget/dropdown/multi/fn.dropdown.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 `dropdown` fn in crate `cosmic`."><title>dropdown in cosmic::widget::dropdown::multi - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>multi</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">multi</a></div><h1>Function <span class="fn">dropdown</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/multi/mod.rs.html#14-19">Source</a> </span></div><pre class="rust item-decl"><code>pub fn dropdown<'a, S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>, Message: 'a, Item: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + 'static>(
|
||||
model: &'a <a class="struct" href="struct.Model.html" title="struct cosmic::widget::dropdown::multi::Model">Model</a><S, Item>,
|
||||
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>(Item) -> Message + 'a,
|
||||
) -> <a class="struct" href="struct.Dropdown.html" title="struct cosmic::widget::dropdown::multi::Dropdown">Dropdown</a><'a, S, Message, Item></code></pre></section></div></main></body></html>
|
||||
5
cosmic/widget/dropdown/multi/fn.list.html
Normal file
5
cosmic/widget/dropdown/multi/fn.list.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Create a `List` for a multi-list dropdown widget."><title>list in cosmic::widget::dropdown::multi - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>multi</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">multi</a></div><h1>Function <span class="fn">list</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/multi/model.rs.html#12-17">Source</a> </span></div><pre class="rust item-decl"><code>pub fn list<S, Item>(
|
||||
description: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><S>,
|
||||
options: <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, Item)</a>>,
|
||||
) -> <a class="struct" href="struct.List.html" title="struct cosmic::widget::dropdown::multi::List">List</a><S, Item></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a <a href="struct.List.html" title="struct cosmic::widget::dropdown::multi::List"><code>List</code></a> for a multi-list dropdown widget.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/widget/dropdown/multi/fn.model.html
Normal file
2
cosmic/widget/dropdown/multi/fn.model.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Create a `Model` for a multi-list dropdown."><title>model in cosmic::widget::dropdown::multi - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>multi</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">multi</a></div><h1>Function <span class="fn">model</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/multi/model.rs.html#4-9">Source</a> </span></div><pre class="rust item-decl"><code>pub fn model<S, Item>() -> <a class="struct" href="struct.Model.html" title="struct cosmic::widget::dropdown::multi::Model">Model</a><S, Item></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a <a href="struct.Model.html" title="struct cosmic::widget::dropdown::multi::Model"><code>Model</code></a> for a multi-list dropdown.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
1
cosmic/widget/dropdown/multi/index.html
Normal file
1
cosmic/widget/dropdown/multi/index.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/dropdown/multi/menu/index.html
Normal file
1
cosmic/widget/dropdown/multi/menu/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `menu` mod in crate `cosmic`."><title>cosmic::widget::dropdown::multi::menu - 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 menu</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>multi</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../index.html">cosmic</a>::<wbr><a href="../../../index.html">widget</a>::<wbr><a href="../../index.html">dropdown</a>::<wbr><a href="../index.html">multi</a></div><h1>Module <span>menu</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../../src/cosmic/widget/dropdown/multi/menu.rs.html#1-723">Source</a> </span></div><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.Appearance"><code>pub use crate::widget::dropdown::menu::<a class="struct" href="../../menu/struct.Appearance.html" title="struct cosmic::widget::dropdown::menu::Appearance">Appearance</a>;</code></dt><dt id="reexport.StyleSheet"><code>pub use crate::widget::dropdown::menu::<a class="trait" href="../../menu/trait.StyleSheet.html" title="trait cosmic::widget::dropdown::menu::StyleSheet">StyleSheet</a>;</code></dt></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Menu.html" title="struct cosmic::widget::dropdown::multi::menu::Menu">Menu</a></dt><dd>A dropdown menu with multiple lists.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/dropdown/multi/menu/sidebar-items.js
Normal file
1
cosmic/widget/dropdown/multi/menu/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Menu"]};
|
||||
76
cosmic/widget/dropdown/multi/menu/struct.Menu.html
Normal file
76
cosmic/widget/dropdown/multi/menu/struct.Menu.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/dropdown/multi/model/fn.list.html
Normal file
11
cosmic/widget/dropdown/multi/model/fn.list.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/fn.list.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/fn.list.html">../../../../../cosmic/widget/dropdown/multi/fn.list.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/fn.list.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/multi/model/fn.model.html
Normal file
11
cosmic/widget/dropdown/multi/model/fn.model.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/fn.model.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/fn.model.html">../../../../../cosmic/widget/dropdown/multi/fn.model.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/fn.model.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/multi/model/struct.List.html
Normal file
11
cosmic/widget/dropdown/multi/model/struct.List.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/struct.List.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/struct.List.html">../../../../../cosmic/widget/dropdown/multi/struct.List.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/struct.List.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/multi/model/struct.Model.html
Normal file
11
cosmic/widget/dropdown/multi/model/struct.Model.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/struct.Model.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/struct.Model.html">../../../../../cosmic/widget/dropdown/multi/struct.Model.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/struct.Model.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
cosmic/widget/dropdown/multi/sidebar-items.js
Normal file
1
cosmic/widget/dropdown/multi/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["dropdown","list","model"],"mod":["menu"],"struct":["Dropdown","List","Model","Style"],"trait":["Catalog"]};
|
||||
125
cosmic/widget/dropdown/multi/struct.Dropdown.html
Normal file
125
cosmic/widget/dropdown/multi/struct.Dropdown.html
Normal file
File diff suppressed because one or more lines are too long
80
cosmic/widget/dropdown/multi/struct.List.html
Normal file
80
cosmic/widget/dropdown/multi/struct.List.html
Normal file
File diff suppressed because one or more lines are too long
107
cosmic/widget/dropdown/multi/struct.Model.html
Normal file
107
cosmic/widget/dropdown/multi/struct.Model.html
Normal file
File diff suppressed because one or more lines are too long
81
cosmic/widget/dropdown/multi/struct.Style.html
Normal file
81
cosmic/widget/dropdown/multi/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
15
cosmic/widget/dropdown/multi/trait.Catalog.html
Normal file
15
cosmic/widget/dropdown/multi/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `PickList`."><title>Catalog in cosmic::widget::dropdown::multi - 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="#provided-methods">Provided Methods</a></h3><ul class="block"><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>widget::<wbr>dropdown::<wbr>multi</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">multi</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="../../../iced/overlay/menu/trait.Catalog.html" title="trait cosmic::iced::overlay::menu::Catalog">Catalog</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="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::dropdown::multi::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::dropdown::multi::Catalog::Class">Class</a><'_>, status: <a class="enum" href="../../../iced/widget/pick_list/enum.Status.html" title="enum cosmic::iced::widget::pick_list::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::dropdown::multi::Style">Style</a>;
|
||||
|
||||
// Provided method
|
||||
fn <a href="#method.default_menu" class="fn">default_menu</a><'a>() -> Self::<a class="associatedtype" href="../../../iced/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="../../../iced/widget/struct.PickList.html" title="struct cosmic::iced::widget::PickList"><code>PickList</code></a>.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of the <a href="trait.Catalog.html" title="trait cosmic::widget::dropdown::multi::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::dropdown::multi::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by the <a href="trait.Catalog.html" title="trait cosmic::widget::dropdown::multi::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, class: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::dropdown::multi::Catalog::Class">Class</a><'_>, status: <a class="enum" href="../../../iced/widget/pick_list/enum.Status.html" title="enum cosmic::iced::widget::pick_list::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::dropdown::multi::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::widget::dropdown::multi::Style"><code>Style</code></a> of a class with the given status.</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.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="../../../iced/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="../../../iced/widget/struct.PickList.html" title="struct cosmic::iced::widget::PickList"><code>PickList</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"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::dropdown::multi::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, <a class="enum" href="../../../iced/widget/pick_list/enum.Status.html" title="enum cosmic::iced::widget::pick_list::Status">Status</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::widget::dropdown::multi::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#812-850">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::dropdown::multi::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#813">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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details></div><script src="../../../../trait.impl/iced_widget/pick_list/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
11
cosmic/widget/dropdown/multi/widget/struct.Dropdown.html
Normal file
11
cosmic/widget/dropdown/multi/widget/struct.Dropdown.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/struct.Dropdown.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/struct.Dropdown.html">../../../../../cosmic/widget/dropdown/multi/struct.Dropdown.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/struct.Dropdown.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/multi/widget/struct.Style.html
Normal file
11
cosmic/widget/dropdown/multi/widget/struct.Style.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/struct.Style.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/struct.Style.html">../../../../../cosmic/widget/dropdown/multi/struct.Style.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/struct.Style.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/multi/widget/trait.Catalog.html
Normal file
11
cosmic/widget/dropdown/multi/widget/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/widget/dropdown/multi/trait.Catalog.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/widget/dropdown/multi/trait.Catalog.html">../../../../../cosmic/widget/dropdown/multi/trait.Catalog.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/widget/dropdown/multi/trait.Catalog.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
2
cosmic/widget/dropdown/operation/index.html
Normal file
2
cosmic/widget/dropdown/operation/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="Operate on dropdown widgets."><title>cosmic::widget::dropdown::operation - 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 operation</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a></div><h1>Module <span>operation</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/operation.rs.html#3-12">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Operate on dropdown widgets.</p>
|
||||
</div></details><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Dropdown.html" title="trait cosmic::widget::dropdown::operation::Dropdown">Dropdown</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/dropdown/operation/sidebar-items.js
Normal file
1
cosmic/widget/dropdown/operation/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"trait":["Dropdown"]};
|
||||
5
cosmic/widget/dropdown/operation/trait.Dropdown.html
Normal file
5
cosmic/widget/dropdown/operation/trait.Dropdown.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Dropdown` trait in crate `cosmic`."><title>Dropdown in cosmic::widget::dropdown::operation - 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="#">Dropdown</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.close" title="close">close</a></li><li><a href="#tymethod.open" title="open">open</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown::<wbr>operation</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">widget</a>::<wbr><a href="../index.html">dropdown</a>::<wbr><a href="index.html">operation</a></div><h1>Trait <span class="trait">Dropdown</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/widget/dropdown/operation.rs.html#9-12">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Dropdown {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.close" class="fn">close</a>(&mut self);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.open" class="fn">open</a>(&mut self);
|
||||
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.close" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/dropdown/operation.rs.html#10">Source</a><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>(&mut self)</h4></section><section id="tymethod.open" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/dropdown/operation.rs.html#11">Source</a><h4 class="code-header">fn <a href="#tymethod.open" class="fn">open</a>(&mut self)</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Dropdown-for-State" class="impl"><a class="src rightside" href="../../../../src/cosmic/widget/dropdown/widget.rs.html#442-450">Source</a><a href="#impl-Dropdown-for-State" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Dropdown.html" title="trait cosmic::widget::dropdown::operation::Dropdown">Dropdown</a> for <a class="struct" href="../struct.State.html" title="struct cosmic::widget::dropdown::State">State</a></h3></section></div><script src="../../../../trait.impl/cosmic/widget/dropdown/operation/trait.Dropdown.js" async></script></section></div></main></body></html>
|
||||
1
cosmic/widget/dropdown/sidebar-items.js
Normal file
1
cosmic/widget/dropdown/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["draw","dropdown","layout","menu_widget","mouse_interaction","overlay","popup_dropdown","update"],"mod":["menu","multi","operation"],"struct":["Dropdown","Id","State"],"type":["DropdownView"]};
|
||||
144
cosmic/widget/dropdown/struct.Dropdown.html
Normal file
144
cosmic/widget/dropdown/struct.Dropdown.html
Normal file
File diff suppressed because one or more lines are too long
85
cosmic/widget/dropdown/struct.Id.html
Normal file
85
cosmic/widget/dropdown/struct.Id.html
Normal file
File diff suppressed because one or more lines are too long
70
cosmic/widget/dropdown/struct.State.html
Normal file
70
cosmic/widget/dropdown/struct.State.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/widget/dropdown/type.DropdownView.html
Normal file
1
cosmic/widget/dropdown/type.DropdownView.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `DropdownView` type in crate `cosmic`."><title>DropdownView in cosmic::widget::dropdown - 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="#">Dropdown<wbr>View</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>dropdown</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">dropdown</a></div><h1>Type Alias <span class="type">DropdownView</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/dropdown/widget.rs.html#25">Source</a> </span></div><pre class="rust item-decl"><code>pub type DropdownView<Message> = <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</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="type" href="../../type.Element.html" title="type cosmic::Element">Element</a><'static, Message> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct DropdownView<Message> { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.js" data-self-path="cosmic::widget::dropdown::widget::DropdownView" async></script></section></div></main></body></html>
|
||||
11
cosmic/widget/dropdown/widget/fn.draw.html
Normal file
11
cosmic/widget/dropdown/widget/fn.draw.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.draw.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.draw.html">../../../../cosmic/widget/dropdown/fn.draw.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.draw.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/fn.layout.html
Normal file
11
cosmic/widget/dropdown/widget/fn.layout.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.layout.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.layout.html">../../../../cosmic/widget/dropdown/fn.layout.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.layout.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/fn.menu_widget.html
Normal file
11
cosmic/widget/dropdown/widget/fn.menu_widget.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.menu_widget.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.menu_widget.html">../../../../cosmic/widget/dropdown/fn.menu_widget.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.menu_widget.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/fn.mouse_interaction.html
Normal file
11
cosmic/widget/dropdown/widget/fn.mouse_interaction.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.mouse_interaction.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.mouse_interaction.html">../../../../cosmic/widget/dropdown/fn.mouse_interaction.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.mouse_interaction.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/fn.overlay.html
Normal file
11
cosmic/widget/dropdown/widget/fn.overlay.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.overlay.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.overlay.html">../../../../cosmic/widget/dropdown/fn.overlay.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.overlay.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/fn.update.html
Normal file
11
cosmic/widget/dropdown/widget/fn.update.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/fn.update.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/fn.update.html">../../../../cosmic/widget/dropdown/fn.update.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/fn.update.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/struct.Dropdown.html
Normal file
11
cosmic/widget/dropdown/widget/struct.Dropdown.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/struct.Dropdown.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/struct.Dropdown.html">../../../../cosmic/widget/struct.Dropdown.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/struct.Dropdown.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/struct.State.html
Normal file
11
cosmic/widget/dropdown/widget/struct.State.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/struct.State.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/struct.State.html">../../../../cosmic/widget/dropdown/struct.State.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/struct.State.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/dropdown/widget/type.DropdownView.html
Normal file
11
cosmic/widget/dropdown/widget/type.DropdownView.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/dropdown/type.DropdownView.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/dropdown/type.DropdownView.html">../../../../cosmic/widget/dropdown/type.DropdownView.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/dropdown/type.DropdownView.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue