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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The default style of a `PaneGrid`."><title>default in cosmic::widget::pane_grid - 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>pane_<wbr>grid</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">pane_grid</a></div><h1>Function <span class="fn">default</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn default(theme: &amp;<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -&gt; <a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default style of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,47 @@
<!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="Pane grids let your users split regions of your application and organize layout dynamically."><title>cosmic::widget::pane_grid - 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 pane_<wbr>grid</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>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>pane_grid</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Pane grids let your users split regions of your application and organize layout dynamically.</p>
<p><img src="https://iced.rs/examples/pane_grid.gif" alt="Pane grid - Iced" /></p>
<p>This distribution of space is common in tiling window managers (like
<a href="https://awesomewm.org/"><code>awesome</code></a>, <a href="https://i3wm.org/"><code>i3</code></a>, or even
<a href="https://github.com/tmux/tmux"><code>tmux</code></a>).</p>
<p>A <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a> supports:</p>
<ul>
<li>Vertical and horizontal splits</li>
<li>Tracking of the last active pane</li>
<li>Mouse-based resizing</li>
<li>Drag and drop to reorganize panes</li>
<li>Hotkey support</li>
<li>Configurable modifier keys</li>
<li><a href="struct.State.html" title="struct cosmic::widget::pane_grid::State"><code>State</code></a> API to perform actions programmatically (<code>split</code>, <code>swap</code>, <code>resize</code>, etc.)</li>
</ul>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::{pane_grid, text};
<span class="kw">struct </span>State {
panes: pane_grid::State&lt;Pane&gt;,
}
<span class="kw">enum </span>Pane {
SomePane,
AnotherKindOfPane,
}
<span class="kw">enum </span>Message {
PaneDragged(pane_grid::DragEvent),
PaneResized(pane_grid::ResizeEvent),
}
<span class="kw">fn </span>view(state: <span class="kw-2">&amp;</span>State) -&gt; Element&lt;<span class="lifetime">'_</span>, Message&gt; {
pane_grid(<span class="kw-2">&amp;</span>state.panes, |pane, state, is_maximized| {
pane_grid::Content::new(<span class="kw">match </span>state {
Pane::SomePane =&gt; text(<span class="string">"This is some pane"</span>),
Pane::AnotherKindOfPane =&gt; text(<span class="string">"This is another kind of pane"</span>),
})
})
.on_drag(Message::PaneDragged)
.on_resize(<span class="number">10</span>, Message::PaneResized)
.into()
}</code></pre></div>
<p>The <a href="https://github.com/iced-rs/iced/tree/0.14/examples/pane_grid"><code>pane_grid</code> example</a> showcases how to use a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a> with resizing,
drag and drop, and hotkey support.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="state/index.html" title="mod cosmic::widget::pane_grid::state">state</a></dt><dd>The state of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</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.Content.html" title="struct cosmic::widget::pane_grid::Content">Content</a></dt><dd>The content of a <a href="struct.Pane.html" title="struct cosmic::widget::pane_grid::Pane"><code>Pane</code></a>.</dd><dt><a class="struct" href="struct.Controls.html" title="struct cosmic::widget::pane_grid::Controls">Controls</a></dt><dd>The controls of a <a href="struct.Pane.html" title="struct cosmic::widget::pane_grid::Pane"><code>Pane</code></a>.</dd><dt><a class="struct" href="struct.Highlight.html" title="struct cosmic::widget::pane_grid::Highlight">Highlight</a></dt><dd>The appearance of a highlight of the <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="struct" href="struct.Line.html" title="struct cosmic::widget::pane_grid::Line">Line</a></dt><dd>A line.</dd><dt><a class="struct" href="struct.Pane.html" title="struct cosmic::widget::pane_grid::Pane">Pane</a></dt><dd>A rectangular region in a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a> used to display widgets.</dd><dt><a class="struct" href="struct.PaneGrid.html" title="struct cosmic::widget::pane_grid::PaneGrid">Pane<wbr>Grid</a></dt><dd>A collection of panes distributed using either vertical or horizontal splits
to completely fill the space available.</dd><dt><a class="struct" href="struct.ResizeEvent.html" title="struct cosmic::widget::pane_grid::ResizeEvent">Resize<wbr>Event</a></dt><dd>An event produced during a resize interaction of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="struct" href="struct.Split.html" title="struct cosmic::widget::pane_grid::Split">Split</a></dt><dd>A divider that splits a region in a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a> into two different panes.</dd><dt><a class="struct" href="struct.State.html" title="struct cosmic::widget::pane_grid::State">State</a></dt><dd>The state of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a></dt><dd>The appearance of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="struct" href="struct.TitleBar.html" title="struct cosmic::widget::pane_grid::TitleBar">Title<wbr>Bar</a></dt><dd>The title bar of a <a href="struct.Pane.html" title="struct cosmic::widget::pane_grid::Pane"><code>Pane</code></a>.</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.Axis.html" title="enum cosmic::widget::pane_grid::Axis">Axis</a></dt><dd>A fixed reference line for the measurement of coordinates.</dd><dt><a class="enum" href="enum.Configuration.html" title="enum cosmic::widget::pane_grid::Configuration">Configuration</a></dt><dd>The arrangement of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="enum" href="enum.Direction.html" title="enum cosmic::widget::pane_grid::Direction">Direction</a></dt><dd>A four cardinal direction.</dd><dt><a class="enum" href="enum.DragEvent.html" title="enum cosmic::widget::pane_grid::DragEvent">Drag<wbr>Event</a></dt><dd>An event produced during a drag and drop interaction of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="enum" href="enum.Edge.html" title="enum cosmic::widget::pane_grid::Edge">Edge</a></dt><dd>The edges of an area.</dd><dt><a class="enum" href="enum.Node.html" title="enum cosmic::widget::pane_grid::Node">Node</a></dt><dd>A layout node of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="enum" href="enum.Region.html" title="enum cosmic::widget::pane_grid::Region">Region</a></dt><dd>The region of a <a href="struct.Pane.html" title="struct cosmic::widget::pane_grid::Pane"><code>Pane</code></a>.</dd><dt><a class="enum" href="enum.Target.html" title="enum cosmic::widget::pane_grid::Target">Target</a></dt><dd>The <a href="enum.Target.html" title="enum cosmic::widget::pane_grid::Target"><code>Target</code></a> area a pane can be dropped on.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::pane_grid::Catalog">Catalog</a></dt><dd>The theme catalog of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="trait" href="trait.Draggable.html" title="trait cosmic::widget::pane_grid::Draggable">Draggable</a></dt><dd>A pane that can be dragged.</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.default.html" title="fn cosmic::widget::pane_grid::default">default</a></dt><dd>The default style of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.StyleFn.html" title="type cosmic::widget::pane_grid::StyleFn">StyleFn</a></dt><dd>A styling function for a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Axis","Configuration","Direction","DragEvent","Edge","Node","Region","Target"],"fn":["default"],"mod":["state"],"struct":["Content","Controls","Highlight","Line","Pane","PaneGrid","ResizeEvent","Split","State","Style","TitleBar"],"trait":["Catalog","Draggable"],"type":["StyleFn"]};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The state of a `PaneGrid`."><title>cosmic::widget::pane_grid::state - 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 state</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>pane_<wbr>grid</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">pane_grid</a></div><h1>Module <span>state</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The state of a <a href="../../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Internal.html" title="struct cosmic::widget::pane_grid::state::Internal">Internal</a></dt><dd>The internal state of a <a href="../../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd><dt><a class="struct" href="struct.State.html" title="struct cosmic::widget::pane_grid::state::State">State</a></dt><dd>The state of a <a href="../../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</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.Action.html" title="enum cosmic::widget::pane_grid::state::Action">Action</a></dt><dd>The current action of a <a href="../../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Action"],"struct":["Internal","State"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `PaneGrid`."><title>Catalog in cosmic::widget::pane_grid - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>pane_<wbr>grid</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">pane_grid</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="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a> {
type <a href="#associatedtype.Class" class="associatedtype">Class</a>&lt;'a&gt;;
// Required methods
fn <a href="#tymethod.default" class="fn">default</a>&lt;'a&gt;() -&gt; Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::pane_grid::Catalog::Class">Class</a>&lt;'a&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&amp;self, class: &amp;Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::pane_grid::Catalog::Class">Class</a>&lt;'_&gt;) -&gt; <a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The theme catalog of a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</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>&lt;'a&gt;</h4></section></summary><div class="docblock"><p>The item class of this <a href="trait.Catalog.html" title="trait cosmic::widget::pane_grid::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>&lt;'a&gt;() -&gt; Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::pane_grid::Catalog::Class">Class</a>&lt;'a&gt;</h4></section></summary><div class="docblock"><p>The default class produced by this <a href="trait.Catalog.html" title="trait cosmic::widget::pane_grid::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>(&amp;self, class: &amp;Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::widget::pane_grid::Catalog::Class">Class</a>&lt;'_&gt;) -&gt; <a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style"><code>Style</code></a> of a class with the given status.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::widget::pane_grid::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>&lt;'a&gt; = <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;<a class="enum" href="../../iced/enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -&gt; <a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a> + 'a&gt;</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#973-1000">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::pane_grid::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#974">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a>&lt;'a&gt; = <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/pane_grid/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>

View 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="A pane that can be dragged."><title>Draggable in cosmic::widget::pane_grid - 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="#">Draggable</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.can_be_dragged_at" title="can_be_dragged_at">can_be_dragged_at</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>pane_<wbr>grid</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">pane_grid</a></div><h1>Trait <span class="trait">Draggable</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 Draggable {
// Required method
fn <a href="#tymethod.can_be_dragged_at" class="fn">can_be_dragged_at</a>(&amp;self, layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;, cursor: <a class="struct" href="../../iced/struct.Point.html" title="struct cosmic::iced::Point">Point</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A pane that can be dragged.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.can_be_dragged_at" class="method"><h4 class="code-header">fn <a href="#tymethod.can_be_dragged_at" class="fn">can_be_dragged_at</a>(&amp;self, layout: <a class="struct" href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout">Layout</a>&lt;'_&gt;, cursor: <a class="struct" href="../../iced/struct.Point.html" title="struct cosmic::iced::Point">Point</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns whether the <a href="trait.Draggable.html" title="trait cosmic::widget::pane_grid::Draggable"><code>Draggable</code></a> with the given <a href="../../iced/advanced/struct.Layout.html" title="struct cosmic::iced::advanced::Layout"><code>Layout</code></a> can be picked
at the provided cursor position.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Draggable-for-%26Content%3C'_,+Message,+Theme,+Renderer%3E" class="impl"><a href="#impl-Draggable-for-%26Content%3C'_,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Message, Theme, Renderer&gt; <a class="trait" href="trait.Draggable.html" title="trait cosmic::widget::pane_grid::Draggable">Draggable</a> for &amp;<a class="struct" href="struct.Content.html" title="struct cosmic::widget::pane_grid::Content">Content</a>&lt;'_, Message, Theme, Renderer&gt;<div class="where">where
Theme: <a class="trait" href="../aspect_ratio/trait.Catalog.html" title="trait cosmic::widget::aspect_ratio::Catalog">Catalog</a>,
Renderer: <a class="trait" href="../../iced/advanced/trait.Renderer.html" title="trait cosmic::iced::advanced::Renderer">Renderer</a>,</div></h3></section></div><script src="../../../trait.impl/iced_widget/pane_grid/draggable/trait.Draggable.js" data-ignore-extern-crates="iced_widget" async></script></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `PaneGrid`."><title>StyleFn in cosmic::widget::pane_grid - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>pane_<wbr>grid</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">pane_grid</a></div><h1>Type Alias <span class="type">StyleFn</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type StyleFn&lt;'a, Theme&gt; = <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Theme</a>) -&gt; <a class="struct" href="struct.Style.html" title="struct cosmic::widget::pane_grid::Style">Style</a> + 'a&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../struct.PaneGrid.html" title="struct cosmic::widget::PaneGrid"><code>PaneGrid</code></a>.</p>
<p>This is just a boxed closure: <code>Fn(&amp;Theme, Status) -&gt; Style</code>.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn&lt;'a, Theme&gt;(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::widget::pane_grid::StyleFn" async></script></section></div></main></body></html>