deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
1
cosmic/widget/menu/action/index.html
Normal file
1
cosmic/widget/menu/action/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 `action` mod in crate `cosmic`."><title>cosmic::widget::menu::action - 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 action</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>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">menu</a></div><h1>Module <span>action</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/menu/action.rs.html#1-51">Source</a> </span></div><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.MenuAction.html" title="trait cosmic::widget::menu::action::MenuAction">Menu<wbr>Action</a></dt><dd><code>MenuAction</code> is a trait that represents an action in a menu.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/menu/action/sidebar-items.js
Normal file
1
cosmic/widget/menu/action/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"trait":["MenuAction"]};
|
||||
50
cosmic/widget/menu/action/trait.MenuAction.html
Normal file
50
cosmic/widget/menu/action/trait.MenuAction.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<!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="`MenuAction` is a trait that represents an action in a menu."><title>MenuAction in cosmic::widget::menu::action - 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="#">Menu<wbr>Action</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Message" title="Message">Message</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.message" title="message">message</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>menu::<wbr>action</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">menu</a>::<wbr><a href="index.html">action</a></div><h1>Trait <span class="trait">MenuAction</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/menu/action.rs.html#41-51">Source</a> </span></div><pre class="rust item-decl"><code>pub trait MenuAction:
|
||||
<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.Copy.html" title="trait core::marker::Copy">Copy</a>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> {
|
||||
type <a href="#associatedtype.Message" class="associatedtype">Message</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.message" class="fn">message</a>(&self) -> Self::<a class="associatedtype" href="trait.MenuAction.html#associatedtype.Message" title="type cosmic::widget::menu::action::MenuAction::Message">Message</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>MenuAction</code> is a trait that represents an action in a menu.</p>
|
||||
<p>It is used to define the behavior of menu items when they are activated.
|
||||
Each menu item can have a unique action associated with it.</p>
|
||||
<p>This trait is generic over a type <code>Message</code> which is the type of message
|
||||
that will be produced when the action is triggered.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>cosmic::widget::menu::action::MenuAction;
|
||||
<span class="kw">use </span>cosmic::widget::segmented_button::Entity;
|
||||
|
||||
<span class="attr">#[derive(Clone, Copy, Eq, PartialEq)]
|
||||
</span><span class="kw">enum </span>MyMessage {
|
||||
Open,
|
||||
Save,
|
||||
Quit,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Clone, Copy, Eq, PartialEq)]
|
||||
</span><span class="kw">enum </span>MyAction {
|
||||
Open,
|
||||
Save,
|
||||
Quit,
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>MenuAction <span class="kw">for </span>MyAction {
|
||||
<span class="kw">type </span>Message = MyMessage;
|
||||
|
||||
<span class="kw">fn </span>message(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="self">Self</span>::Message {
|
||||
<span class="kw">match </span><span class="self">self </span>{
|
||||
MyAction::Open => MyMessage::Open,
|
||||
MyAction::Save => MyMessage::Save,
|
||||
MyAction::Quit => MyMessage::Quit,
|
||||
}
|
||||
}
|
||||
}</code></pre></div>
|
||||
</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.Message" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/menu/action.rs.html#43">Source</a><h4 class="code-header">type <a href="#associatedtype.Message" class="associatedtype">Message</a></h4></section></summary><div class="docblock"><p>The type of message that will be produced when the action is triggered.</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.message" class="method"><a class="src rightside" href="../../../../src/cosmic/widget/menu/action.rs.html#50">Source</a><h4 class="code-header">fn <a href="#tymethod.message" class="fn">message</a>(&self) -> Self::<a class="associatedtype" href="trait.MenuAction.html#associatedtype.Message" title="type cosmic::widget::menu::action::MenuAction::Message">Message</a></h4></section></summary><div class="docblock"><p>Returns a message of type <code>Self::Message</code> when the action is triggered.</p>
|
||||
<h5 id="returns"><a class="doc-anchor" href="#returns">§</a>Returns</h5>
|
||||
<ul>
|
||||
<li><code>Self::Message</code> - The message that is produced when the action is triggered.</li>
|
||||
</ul>
|
||||
</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"></div><script src="../../../../trait.impl/cosmic/widget/menu/action/trait.MenuAction.js" async></script></section></div></main></body></html>
|
||||
111
cosmic/widget/menu/enum.Item.html
Normal file
111
cosmic/widget/menu/enum.Item.html
Normal file
File diff suppressed because one or more lines are too long
83
cosmic/widget/menu/enum.ItemHeight.html
Normal file
83
cosmic/widget/menu/enum.ItemHeight.html
Normal file
File diff suppressed because one or more lines are too long
77
cosmic/widget/menu/enum.ItemWidth.html
Normal file
77
cosmic/widget/menu/enum.ItemWidth.html
Normal file
File diff suppressed because one or more lines are too long
75
cosmic/widget/menu/enum.PathHighlight.html
Normal file
75
cosmic/widget/menu/enum.PathHighlight.html
Normal file
File diff suppressed because one or more lines are too long
3
cosmic/widget/menu/fn.bar.html
Normal file
3
cosmic/widget/menu/fn.bar.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `MenuBar` collects `MenuTree`s and handles all the layout, event processing, and drawing."><title>bar in cosmic::widget::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 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>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">menu</a></div><h1>Function <span class="fn">bar</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/menu/menu_bar.rs.html#43-48">Source</a> </span></div><pre class="rust item-decl"><code>pub fn bar<Message>(menu_roots: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Tree.html" title="struct cosmic::widget::menu::Tree">MenuTree</a><Message>>) -> <a class="struct" href="struct.MenuBar.html" title="struct cosmic::widget::menu::MenuBar">MenuBar</a><Message><div class="where">where
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <code>MenuBar</code> collects <code>MenuTree</code>s and handles all the layout, event processing, and drawing.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
15
cosmic/widget/menu/fn.items.html
Normal file
15
cosmic/widget/menu/fn.items.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="Create a list of menu items from a vector of `MenuItem`."><title>items in cosmic::widget::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 fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">items</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<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">menu</a></div><h1>Function <span class="fn">items</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/menu/menu_tree.rs.html#215-402">Source</a> </span></div><pre class="rust item-decl"><code>pub fn items<A: <a class="trait" href="action/trait.MenuAction.html" title="trait cosmic::widget::menu::action::MenuAction">MenuAction</a><Message = Message>, L: <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><'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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>>(
|
||||
key_binds: &<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="key_bind/struct.KeyBind.html" title="struct cosmic::widget::menu::key_bind::KeyBind">KeyBind</a>, A>,
|
||||
children: <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="enum" href="enum.Item.html" title="enum cosmic::widget::menu::Item">MenuItem</a><A, L>>,
|
||||
) -> <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Tree.html" title="struct cosmic::widget::menu::Tree">MenuTree</a><Message>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a list of menu items from a vector of <code>MenuItem</code>.</p>
|
||||
<p>The <code>MenuItem</code> can be either an action or a separator.</p>
|
||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||
<ul>
|
||||
<li><code>key_binds</code> - A reference to a <code>HashMap</code> that maps <code>KeyBind</code> to <code>A</code>.</li>
|
||||
<li><code>children</code> - A vector of <code>MenuItem</code>.</li>
|
||||
</ul>
|
||||
<h2 id="returns"><a class="doc-anchor" href="#returns">§</a>Returns</h2>
|
||||
<ul>
|
||||
<li>A vector of <code>MenuTree</code>.</li>
|
||||
</ul>
|
||||
</div></details></section></div></main></body></html>
|
||||
4
cosmic/widget/menu/fn.menu_button.html
Normal file
4
cosmic/widget/menu/fn.menu_button.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 `menu_button` fn in crate `cosmic`."><title>menu_button in cosmic::widget::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 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>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">menu</a></div><h1>Function <span class="fn">menu_button</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/menu/menu_tree.rs.html#140-156">Source</a> </span></div><pre class="rust item-decl"><code>pub fn menu_button<'a, Message>(
|
||||
children: <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="type" href="../../type.Element.html" title="type cosmic::Element">Element</a><'a, Message>>,
|
||||
) -> <a class="struct" href="../struct.Button.html" title="struct cosmic::widget::Button">Button</a><'a, Message><div class="where">where
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a,</div></code></pre></section></div></main></body></html>
|
||||
14
cosmic/widget/menu/fn.root.html
Normal file
14
cosmic/widget/menu/fn.root.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="Create a root menu item."><title>root in cosmic::widget::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 fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">root</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<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">menu</a></div><h1>Function <span class="fn">root</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/menu/menu_tree.rs.html#192-202">Source</a> </span></div><pre class="rust item-decl"><code>pub fn root<'a, Message, Renderer: <a class="trait" href="../../iced/advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>>(
|
||||
label: 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.str.html">str</a>>> + 'a,
|
||||
) -> <a class="struct" href="../struct.Button.html" title="struct cosmic::widget::Button">Button</a><'a, Message><div class="where">where
|
||||
<a class="struct" href="../../iced/daemon/program/graphics/core/struct.Element.html" title="struct cosmic::iced::daemon::program::graphics::core::Element">Element</a><'a, Message, <a class="struct" href="../../struct.Theme.html" title="struct cosmic::Theme">Theme</a>, Renderer>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Button.html" title="struct cosmic::widget::Button">Button</a><'a, Message>>,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a root menu item.</p>
|
||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||
<ul>
|
||||
<li><code>label</code> - The label of the menu item.</li>
|
||||
</ul>
|
||||
<h2 id="returns"><a class="doc-anchor" href="#returns">§</a>Returns</h2>
|
||||
<ul>
|
||||
<li>A button for the root menu item.</li>
|
||||
</ul>
|
||||
</div></details></section></div></main></body></html>
|
||||
49
cosmic/widget/menu/index.html
Normal file
49
cosmic/widget/menu/index.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A `MenuBar` widget for displaying [`MenuTree`]s"><title>cosmic::widget::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="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><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="#enums" title="Enums">Enums</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>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>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/menu.rs.html#3-78">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <a href="struct.MenuBar.html" title="struct cosmic::widget::menu::MenuBar"><code>MenuBar</code></a> widget for displaying [<code>MenuTree</code>]s</p>
|
||||
<p><em>This API requires the following crate features to be activated: <code>menu</code></em></p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::button;
|
||||
<span class="kw">use </span>iced_aw::menu::{MenuTree, MenuBar};
|
||||
|
||||
<span class="kw">let </span>sub_2 = MenuTree::with_children(
|
||||
button(<span class="string">"Sub Menu 2"</span>),
|
||||
<span class="macro">vec!</span>[
|
||||
MenuTree::new(button(<span class="string">"item_1"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_2"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_3"</span>)),
|
||||
]
|
||||
);
|
||||
|
||||
<span class="kw">let </span>sub_1 = MenuTree::with_children(
|
||||
button(<span class="string">"Sub Menu 1"</span>),
|
||||
<span class="macro">vec!</span>[
|
||||
MenuTree::new(button(<span class="string">"item_1"</span>)),
|
||||
sub_2,
|
||||
MenuTree::new(button(<span class="string">"item_2"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_3"</span>)),
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
<span class="kw">let </span>root_1 = MenuTree::with_children(
|
||||
button(<span class="string">"Menu 1"</span>),
|
||||
<span class="macro">vec!</span>[
|
||||
MenuTree::new(button(<span class="string">"item_1"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_2"</span>)),
|
||||
sub_1,
|
||||
MenuTree::new(button(<span class="string">"item_3"</span>)),
|
||||
]
|
||||
);
|
||||
|
||||
<span class="kw">let </span>root_2 = MenuTree::with_children(
|
||||
button(<span class="string">"Menu 2"</span>),
|
||||
<span class="macro">vec!</span>[
|
||||
MenuTree::new(button(<span class="string">"item_1"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_2"</span>)),
|
||||
MenuTree::new(button(<span class="string">"item_3"</span>)),
|
||||
]
|
||||
);
|
||||
|
||||
<span class="kw">let </span>menu_bar = MenuBar::new(<span class="macro">vec!</span>[root_1, root_2]);
|
||||
</code></pre></div>
|
||||
</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.Action"><code>pub use action::<a class="trait" href="action/trait.MenuAction.html" title="trait cosmic::widget::menu::action::MenuAction">MenuAction</a> as Action;</code></dt><dt id="reexport.KeyBind"><code>pub use key_bind::<a class="struct" href="key_bind/struct.KeyBind.html" title="struct cosmic::widget::menu::key_bind::KeyBind">KeyBind</a>;</code></dt><dt id="reexport.Appearance"><code>pub use crate::style::menu_bar::<a class="struct" href="../../style/menu_bar/struct.Appearance.html" title="struct cosmic::style::menu_bar::Appearance">Appearance</a>;</code></dt><dt id="reexport.StyleSheet"><code>pub use crate::style::menu_bar::<a class="trait" href="../../style/menu_bar/trait.StyleSheet.html" title="trait cosmic::style::menu_bar::StyleSheet">StyleSheet</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="action/index.html" title="mod cosmic::widget::menu::action">action</a></dt><dt><a class="mod" href="key_bind/index.html" title="mod cosmic::widget::menu::key_bind">key_<wbr>bind</a></dt></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.CloseCondition.html" title="struct cosmic::widget::menu::CloseCondition">Close<wbr>Condition</a></dt><dd>The condition of when to close a menu</dd><dt><a class="struct" href="struct.MenuBar.html" title="struct cosmic::widget::menu::MenuBar">MenuBar</a></dt><dd>A <code>MenuBar</code> collects <code>MenuTree</code>s and handles all the layout, event processing, and drawing.</dd><dt><a class="struct" href="struct.Tree.html" title="struct cosmic::widget::menu::Tree">Tree</a></dt><dd>Nested menu is essentially a tree of items, a menu is a collection of items
|
||||
a menu itself can also be an item of another menu.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Item.html" title="enum cosmic::widget::menu::Item">Item</a></dt><dd>Represents a menu item that performs an action when selected or a separator between menu items.</dd><dt><a class="enum" href="enum.ItemHeight.html" title="enum cosmic::widget::menu::ItemHeight">Item<wbr>Height</a></dt><dd>The height of an item</dd><dt><a class="enum" href="enum.ItemWidth.html" title="enum cosmic::widget::menu::ItemWidth">Item<wbr>Width</a></dt><dd>The width of an item</dd><dt><a class="enum" href="enum.PathHighlight.html" title="enum cosmic::widget::menu::PathHighlight">Path<wbr>Highlight</a></dt><dd>Methods for drawing path highlight</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.bar.html" title="fn cosmic::widget::menu::bar">bar</a></dt><dd>A <code>MenuBar</code> collects <code>MenuTree</code>s and handles all the layout, event processing, and drawing.</dd><dt><a class="fn" href="fn.items.html" title="fn cosmic::widget::menu::items">items</a></dt><dd>Create a list of menu items from a vector of <code>MenuItem</code>.</dd><dt><a class="fn" href="fn.menu_button.html" title="fn cosmic::widget::menu::menu_button">menu_<wbr>button</a></dt><dt><a class="fn" href="fn.root.html" title="fn cosmic::widget::menu::root">root</a></dt><dd>Create a root menu item.</dd></dl></section></div></main></body></html>
|
||||
98
cosmic/widget/menu/key_bind/enum.Modifier.html
Normal file
98
cosmic/widget/menu/key_bind/enum.Modifier.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/widget/menu/key_bind/index.html
Normal file
2
cosmic/widget/menu/key_bind/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="API documentation for the Rust `key_bind` mod in crate `cosmic`."><title>cosmic::widget::menu::key_bind - 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 key_<wbr>bind</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<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">menu</a></div><h1>Module <span>key_bind</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/menu/key_bind.rs.html#1-65">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.KeyBind.html" title="struct cosmic::widget::menu::key_bind::KeyBind">KeyBind</a></dt><dd>Represents a combination of a key and modifiers.
|
||||
It is used to define keyboard shortcuts.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Modifier.html" title="enum cosmic::widget::menu::key_bind::Modifier">Modifier</a></dt><dd>Represents the modifier keys on a keyboard.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/widget/menu/key_bind/sidebar-items.js
Normal file
1
cosmic/widget/menu/key_bind/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Modifier"],"struct":["KeyBind"]};
|
||||
104
cosmic/widget/menu/key_bind/struct.KeyBind.html
Normal file
104
cosmic/widget/menu/key_bind/struct.KeyBind.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/widget/menu/menu_bar/fn.menu_bar.html
Normal file
11
cosmic/widget/menu/menu_bar/fn.menu_bar.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/fn.bar.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/fn.bar.html">../../../../cosmic/widget/menu/fn.bar.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/fn.bar.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_bar/struct.MenuBar.html
Normal file
11
cosmic/widget/menu/menu_bar/struct.MenuBar.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/struct.MenuBar.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/struct.MenuBar.html">../../../../cosmic/widget/menu/struct.MenuBar.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/struct.MenuBar.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_inner/enum.ItemHeight.html
Normal file
11
cosmic/widget/menu/menu_inner/enum.ItemHeight.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/enum.ItemHeight.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/enum.ItemHeight.html">../../../../cosmic/widget/menu/enum.ItemHeight.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/enum.ItemHeight.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_inner/enum.ItemWidth.html
Normal file
11
cosmic/widget/menu/menu_inner/enum.ItemWidth.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/enum.ItemWidth.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/enum.ItemWidth.html">../../../../cosmic/widget/menu/enum.ItemWidth.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/enum.ItemWidth.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_inner/enum.PathHighlight.html
Normal file
11
cosmic/widget/menu/menu_inner/enum.PathHighlight.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/enum.PathHighlight.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/enum.PathHighlight.html">../../../../cosmic/widget/menu/enum.PathHighlight.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/enum.PathHighlight.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_inner/struct.CloseCondition.html
Normal file
11
cosmic/widget/menu/menu_inner/struct.CloseCondition.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/struct.CloseCondition.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/struct.CloseCondition.html">../../../../cosmic/widget/menu/struct.CloseCondition.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/struct.CloseCondition.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_tree/enum.MenuItem.html
Normal file
11
cosmic/widget/menu/menu_tree/enum.MenuItem.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/enum.Item.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/enum.Item.html">../../../../cosmic/widget/menu/enum.Item.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/enum.Item.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_tree/fn.menu_button.html
Normal file
11
cosmic/widget/menu/menu_tree/fn.menu_button.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/fn.menu_button.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/fn.menu_button.html">../../../../cosmic/widget/menu/fn.menu_button.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/fn.menu_button.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_tree/fn.menu_items.html
Normal file
11
cosmic/widget/menu/menu_tree/fn.menu_items.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/fn.items.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/fn.items.html">../../../../cosmic/widget/menu/fn.items.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/fn.items.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_tree/fn.menu_root.html
Normal file
11
cosmic/widget/menu/menu_tree/fn.menu_root.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/fn.root.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/fn.root.html">../../../../cosmic/widget/menu/fn.root.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/fn.root.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/widget/menu/menu_tree/struct.MenuTree.html
Normal file
11
cosmic/widget/menu/menu_tree/struct.MenuTree.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../cosmic/widget/menu/struct.Tree.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../cosmic/widget/menu/struct.Tree.html">../../../../cosmic/widget/menu/struct.Tree.html</a>...</p>
|
||||
<script>location.replace("../../../../cosmic/widget/menu/struct.Tree.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
cosmic/widget/menu/sidebar-items.js
Normal file
1
cosmic/widget/menu/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Item","ItemHeight","ItemWidth","PathHighlight"],"fn":["bar","items","menu_button","root"],"mod":["action","key_bind"],"struct":["CloseCondition","MenuBar","Tree"]};
|
||||
75
cosmic/widget/menu/struct.CloseCondition.html
Normal file
75
cosmic/widget/menu/struct.CloseCondition.html
Normal file
File diff suppressed because one or more lines are too long
146
cosmic/widget/menu/struct.MenuBar.html
Normal file
146
cosmic/widget/menu/struct.MenuBar.html
Normal file
File diff suppressed because one or more lines are too long
83
cosmic/widget/menu/struct.Tree.html
Normal file
83
cosmic/widget/menu/struct.Tree.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue