deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
93
cosmic/iced/widget/text/enum.Alignment.html
Normal file
93
cosmic/iced/widget/text/enum.Alignment.html
Normal file
File diff suppressed because one or more lines are too long
81
cosmic/iced/widget/text/enum.Ellipsize.html
Normal file
81
cosmic/iced/widget/text/enum.Ellipsize.html
Normal file
File diff suppressed because one or more lines are too long
80
cosmic/iced/widget/text/enum.LineHeight.html
Normal file
80
cosmic/iced/widget/text/enum.LineHeight.html
Normal file
File diff suppressed because one or more lines are too long
103
cosmic/iced/widget/text/enum.Shaping.html
Normal file
103
cosmic/iced/widget/text/enum.Shaping.html
Normal file
File diff suppressed because one or more lines are too long
90
cosmic/iced/widget/text/enum.Wrapping.html
Normal file
90
cosmic/iced/widget/text/enum.Wrapping.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/iced/widget/text/fn.base.html
Normal file
2
cosmic/iced/widget/text/fn.base.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="Text with the default base color."><title>base in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">base</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 base(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text with the default base color.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.danger.html
Normal file
2
cosmic/iced/widget/text/fn.danger.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Text conveying some negative information, like an error."><title>danger in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">danger</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn danger(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text conveying some negative information, like an error.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.default.html
Normal file
2
cosmic/iced/widget/text/fn.default.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The default text styling; color is inherited."><title>default in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</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: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::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 text styling; color is inherited.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
10
cosmic/iced/widget/text/fn.draw.html
Normal file
10
cosmic/iced/widget/text/fn.draw.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Draws text using the same logic as the `Text` widget."><title>draw in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">draw</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn draw<Renderer>(
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Renderer</a>,
|
||||
style: &<a class="struct" href="../../daemon/program/graphics/core/renderer/struct.Style.html" title="struct cosmic::iced::daemon::program::graphics::core::renderer::Style">Style</a>,
|
||||
bounds: <a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
paragraph: &<Renderer as <a class="trait" href="../../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/core/text/trait.Renderer.html#associatedtype.Paragraph" title="type cosmic::iced::daemon::program::graphics::core::text::Renderer::Paragraph">Paragraph</a>,
|
||||
appearance: <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a>,
|
||||
viewport: &<a class="struct" href="../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>,
|
||||
)<div class="where">where
|
||||
Renderer: <a class="trait" href="../../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Draws text using the same logic as the <a href="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text"><code>Text</code></a> widget.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
9
cosmic/iced/widget/text/fn.layout.html
Normal file
9
cosmic/iced/widget/text/fn.layout.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Produces the `layout::Node` of a `Text` widget."><title>layout in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">layout</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn layout<Renderer>(
|
||||
paragraph: &mut <a class="struct" href="../../daemon/program/graphics/core/text/paragraph/struct.Plain.html" title="struct cosmic::iced::daemon::program::graphics::core::text::paragraph::Plain">Plain</a><<Renderer as <a class="trait" href="../../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/core/text/trait.Renderer.html#associatedtype.Paragraph" title="type cosmic::iced::daemon::program::graphics::core::text::Renderer::Paragraph">Paragraph</a>>,
|
||||
renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Renderer</a>,
|
||||
limits: &<a class="struct" href="../../struct.Limits.html" title="struct cosmic::iced::Limits">Limits</a>,
|
||||
content: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
format: <a class="struct" href="struct.Format.html" title="struct cosmic::iced::widget::text::Format">Format</a><<Renderer as <a class="trait" href="../../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>>::<a class="associatedtype" href="../../daemon/program/graphics/core/text/trait.Renderer.html#associatedtype.Font" title="type cosmic::iced::daemon::program::graphics::core::text::Renderer::Font">Font</a>>,
|
||||
) -> <a class="struct" href="../../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node">Node</a><div class="where">where
|
||||
Renderer: <a class="trait" href="../../daemon/program/graphics/core/text/trait.Renderer.html" title="trait cosmic::iced::daemon::program::graphics::core::text::Renderer">Renderer</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Produces the <a href="../../daemon/program/graphics/core/layout/struct.Node.html" title="struct cosmic::iced::daemon::program::graphics::core::layout::Node"><code>layout::Node</code></a> of a <a href="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text"><code>Text</code></a> widget.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.primary.html
Normal file
2
cosmic/iced/widget/text/fn.primary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Text conveying some important information, like an action."><title>primary in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">primary</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn primary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text conveying some important information, like an action.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.secondary.html
Normal file
2
cosmic/iced/widget/text/fn.secondary.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Text conveying some secondary information, like a footnote."><title>secondary in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">secondary</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn secondary(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text conveying some secondary information, like a footnote.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.success.html
Normal file
2
cosmic/iced/widget/text/fn.success.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Text conveying some positive information, like a successful event."><title>success in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">success</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn success(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text conveying some positive information, like a successful event.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/fn.warning.html
Normal file
2
cosmic/iced/widget/text/fn.warning.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Text conveying some mildly negative information, like a warning."><title>warning in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Function <span class="fn">warning</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn warning(theme: &<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Text conveying some mildly negative information, like a warning.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/index.html
Normal file
2
cosmic/iced/widget/text/index.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/iced/widget/text/sidebar-items.js
Normal file
1
cosmic/iced/widget/text/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Alignment","Ellipsize","LineHeight","Shaping","Wrapping"],"fn":["base","danger","default","draw","layout","primary","secondary","success","warning"],"struct":["Format","Rich","Span","Style"],"trait":["Catalog","Highlighter","IntoFragment"],"type":["Fragment","State","StyleFn","Text"]};
|
||||
91
cosmic/iced/widget/text/struct.Format.html
Normal file
91
cosmic/iced/widget/text/struct.Format.html
Normal file
File diff suppressed because one or more lines are too long
216
cosmic/iced/widget/text/struct.Rich.html
Normal file
216
cosmic/iced/widget/text/struct.Rich.html
Normal file
File diff suppressed because one or more lines are too long
149
cosmic/iced/widget/text/struct.Span.html
Normal file
149
cosmic/iced/widget/text/struct.Span.html
Normal file
File diff suppressed because one or more lines are too long
75
cosmic/iced/widget/text/struct.Style.html
Normal file
75
cosmic/iced/widget/text/struct.Style.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/iced/widget/text/trait.Catalog.html
Normal file
11
cosmic/iced/widget/text/trait.Catalog.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The theme catalog of a `Text`."><title>Catalog in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Catalog</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Class" title="Class">Class</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default" title="default">default</a></li><li><a href="#tymethod.style" title="style">style</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Trait <span class="trait">Catalog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Catalog: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text::Catalog::Class">Class</a><'a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.style" class="fn">style</a>(&self, item: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::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="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text"><code>Text</code></a>.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Class" class="method"><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a></h4></section></summary><div class="docblock"><p>The item class of this <a href="trait.Catalog.html" title="trait cosmic::iced::widget::text::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.default" class="method"><h4 class="code-header">fn <a href="#tymethod.default" class="fn">default</a><'a>() -> Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text::Catalog::Class">Class</a><'a></h4></section></summary><div class="docblock"><p>The default class produced by this <a href="trait.Catalog.html" title="trait cosmic::iced::widget::text::Catalog"><code>Catalog</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.style" class="method"><h4 class="code-header">fn <a href="#tymethod.style" class="fn">style</a>(&self, item: &Self::<a class="associatedtype" href="trait.Catalog.html#associatedtype.Class" title="type cosmic::iced::widget::text::Catalog::Class">Class</a><'_>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a></h4></section></summary><div class="docblock"><p>The <a href="struct.Style.html" title="struct cosmic::iced::widget::text::Style"><code>Style</code></a> of a class with the given status.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme" class="impl"><a href="#impl-Catalog-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::text::Catalog">Catalog</a> for cosmic::iced::<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Class-1" class="associatedtype trait-impl"><a href="#associatedtype.Class-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a> + 'a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Catalog-for-Theme-1" class="impl"><a class="src rightside" href="../../../../src/cosmic/theme/style/iced.rs.html#1334-1351">Source</a><a href="#impl-Catalog-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Catalog.html" title="trait cosmic::iced::widget::text::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#1335">Source</a><a href="#associatedtype.Class-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Class" class="associatedtype">Class</a><'a> = <a class="enum" href="../../../style/enum.Text.html" title="enum cosmic::style::Text">Text</a></h4></section></div></details></div><script src="../../../../trait.impl/iced_core/widget/text/trait.Catalog.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
31
cosmic/iced/widget/text/trait.Highlighter.html
Normal file
31
cosmic/iced/widget/text/trait.Highlighter.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A type capable of highlighting text."><title>Highlighter in cosmic::iced::widget::text - 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="#">Highlighter</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Highlight" title="Highlight">Highlight</a></li><li><a href="#associatedtype.Iterator" title="Iterator">Iterator</a></li><li><a href="#associatedtype.Settings" title="Settings">Settings</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.change_line" title="change_line">change_line</a></li><li><a href="#tymethod.current_line" title="current_line">current_line</a></li><li><a href="#tymethod.highlight_line" title="highlight_line">highlight_line</a></li><li><a href="#tymethod.new" title="new">new</a></li><li><a href="#tymethod.update" title="update">update</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Trait <span class="trait">Highlighter</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 Highlighter: 'static {
|
||||
type <a href="#associatedtype.Settings" class="associatedtype">Settings</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>;
|
||||
type <a href="#associatedtype.Highlight" class="associatedtype">Highlight</a>;
|
||||
type <a href="#associatedtype.Iterator" class="associatedtype">Iterator</a><'a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = (<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Highlight" title="type cosmic::iced::widget::text::Highlighter::Highlight">Highlight</a>)>
|
||||
<span class="where">where Self: 'a</span>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.new" class="fn">new</a>(settings: &Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Settings" title="type cosmic::iced::widget::text::Highlighter::Settings">Settings</a>) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.update" class="fn">update</a>(&mut self, new_settings: &Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Settings" title="type cosmic::iced::widget::text::Highlighter::Settings">Settings</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.change_line" class="fn">change_line</a>(&mut self, line: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.highlight_line" class="fn">highlight_line</a>(&mut self, line: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Iterator" title="type cosmic::iced::widget::text::Highlighter::Iterator">Iterator</a><'_>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.current_line" class="fn">current_line</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A type capable of highlighting text.</p>
|
||||
<p>A <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a> highlights lines in sequence. When a line changes,
|
||||
it must be notified and the lines after the changed one must be fed
|
||||
again to the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</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.Settings" class="method"><h4 class="code-header">type <a href="#associatedtype.Settings" class="associatedtype">Settings</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>The settings to configure the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a>.</p>
|
||||
</div></details><details class="toggle" open><summary><section id="associatedtype.Highlight" class="method"><h4 class="code-header">type <a href="#associatedtype.Highlight" class="associatedtype">Highlight</a></h4></section></summary><div class="docblock"><p>The output of the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a>.</p>
|
||||
</div></details><details class="toggle" open><summary><section id="associatedtype.Iterator" class="method"><h4 class="code-header">type <a href="#associatedtype.Iterator" class="associatedtype">Iterator</a><'a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = (<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Highlight" title="type cosmic::iced::widget::text::Highlighter::Highlight">Highlight</a>)>
|
||||
<span class="where">where
|
||||
Self: 'a</span></h4></section></summary><div class="docblock"><p>The highlight iterator type.</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.new" class="method"><h4 class="code-header">fn <a href="#tymethod.new" class="fn">new</a>(settings: &Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Settings" title="type cosmic::iced::widget::text::Highlighter::Settings">Settings</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a new <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a> from its <a href="trait.Highlighter.html#associatedtype.Settings" title="associated type iced_core::text::highlighter::Highlighter::Settings::Settings"><code>Self::Settings</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update" class="method"><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(&mut self, new_settings: &Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Settings" title="type cosmic::iced::widget::text::Highlighter::Settings">Settings</a>)</h4></section></summary><div class="docblock"><p>Updates the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a> with some new <a href="trait.Highlighter.html#associatedtype.Settings" title="associated type iced_core::text::highlighter::Highlighter::Settings::Settings"><code>Self::Settings</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.change_line" class="method"><h4 class="code-header">fn <a href="#tymethod.change_line" class="fn">change_line</a>(&mut self, line: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Notifies the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a> that the line at the given index has changed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.highlight_line" class="method"><h4 class="code-header">fn <a href="#tymethod.highlight_line" class="fn">highlight_line</a>(&mut self, line: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Iterator" title="type cosmic::iced::widget::text::Highlighter::Iterator">Iterator</a><'_></h4></section></summary><div class="docblock"><p>Highlights the given line.</p>
|
||||
<p>If a line changed prior to this, the first line provided here will be the
|
||||
line that changed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.current_line" class="method"><h4 class="code-header">fn <a href="#tymethod.current_line" class="fn">current_line</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the current line of the <a href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter"><code>Highlighter</code></a>.</p>
|
||||
<p>If <code>change_line</code> has been called, this will normally be the least index
|
||||
that changed.</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-Highlighter-for-PlainText" class="impl"><a href="#impl-Highlighter-for-PlainText" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter">Highlighter</a> for <a class="struct" href="../../daemon/program/graphics/core/text/highlighter/struct.PlainText.html" title="struct cosmic::iced::daemon::program::graphics::core::text::highlighter::PlainText">PlainText</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Settings-1" class="associatedtype trait-impl"><a href="#associatedtype.Settings-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Settings" class="associatedtype">Settings</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Highlight-1" class="associatedtype trait-impl"><a href="#associatedtype.Highlight-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Highlight" class="associatedtype">Highlight</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Iterator-1" class="associatedtype trait-impl"><a href="#associatedtype.Iterator-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Iterator" class="associatedtype">Iterator</a><'a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/sources/empty/struct.Empty.html" title="struct core::iter::sources::empty::Empty">Empty</a><(<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, <<a class="struct" href="../../daemon/program/graphics/core/text/highlighter/struct.PlainText.html" title="struct cosmic::iced::daemon::program::graphics::core::text::highlighter::PlainText">PlainText</a> as <a class="trait" href="trait.Highlighter.html" title="trait cosmic::iced::widget::text::Highlighter">Highlighter</a>>::<a class="associatedtype" href="trait.Highlighter.html#associatedtype.Highlight" title="type cosmic::iced::widget::text::Highlighter::Highlight">Highlight</a>)></h4></section></div></details></div><script src="../../../../trait.impl/iced_core/text/highlighter/trait.Highlighter.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>
|
||||
6
cosmic/iced/widget/text/trait.IntoFragment.html
Normal file
6
cosmic/iced/widget/text/trait.IntoFragment.html
Normal file
File diff suppressed because one or more lines are too long
9
cosmic/iced/widget/text/type.Fragment.html
Normal file
9
cosmic/iced/widget/text/type.Fragment.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A fragment of `Text`."><title>Fragment in cosmic::iced::widget::text - 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="#">Fragment</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Borrowed" title="Borrowed">Borrowed</a></li><li><a href="#variant.Owned" title="Owned">Owned</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Type Alias <span class="type">Fragment</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 Fragment<'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>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A fragment of <a href="../../advanced/struct.Text.html" title="struct cosmic::iced::advanced::Text"><code>Text</code></a>.</p>
|
||||
<p>This is just an alias to a string that may be either
|
||||
borrowed or owned.</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 enum Fragment<'a> {
|
||||
Borrowed(&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
|
||||
Owned(<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>),
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Borrowed" class="variant"><a href="#variant.Borrowed" class="anchor">§</a><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><h3 class="code-header">Borrowed(&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</h3></section><div class="docblock"><p>Borrowed data.</p>
|
||||
</div><section id="variant.Owned" class="variant"><a href="#variant.Owned" class="anchor">§</a><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><h3 class="code-header">Owned(<a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h3></section><div class="docblock"><p>Owned data.</p>
|
||||
</div></div><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.js" data-self-path="cosmic::iced::widget::text::Fragment" async></script></section></div></main></body></html>
|
||||
2
cosmic/iced/widget/text/type.State.html
Normal file
2
cosmic/iced/widget/text/type.State.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The internal state of a `Text` widget."><title>State in cosmic::iced::widget::text - 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="#">State</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Type Alias <span class="type">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><pre class="rust item-decl"><code>pub type State<P> = <a class="struct" href="../../daemon/program/graphics/core/text/paragraph/struct.Plain.html" title="struct cosmic::iced::daemon::program::graphics::core::text::paragraph::Plain">Plain</a><P>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The internal state of a <a href="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text"><code>Text</code></a> widget.</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 State<P> { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/cosmic/iced/daemon/program/graphics/core/text/paragraph/struct.Plain.js" data-self-path="cosmic::iced::widget::text::State" async></script></section></div></main></body></html>
|
||||
3
cosmic/iced/widget/text/type.StyleFn.html
Normal file
3
cosmic/iced/widget/text/type.StyleFn.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A styling function for a `Text`."><title>StyleFn in cosmic::iced::widget::text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">StyleFn</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Type Alias <span class="type">StyleFn</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type StyleFn<'a, Theme> = <a class="struct" href="../../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Theme</a>) -> <a class="struct" href="struct.Style.html" title="struct cosmic::iced::widget::text::Style">Style</a> + 'a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A styling function for a <a href="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text"><code>Text</code></a>.</p>
|
||||
<p>This is just a boxed closure: <code>Fn(&Theme, Status) -> Style</code>.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct StyleFn<'a, Theme>(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/cosmic/cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.js" data-self-path="cosmic::iced::widget::text::StyleFn" async></script></section></div></main></body></html>
|
||||
16
cosmic/iced/widget/text/type.Text.html
Normal file
16
cosmic/iced/widget/text/type.Text.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A bunch of text."><title>Text in cosmic::iced::widget::text - 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="#">Text</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="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>widget::<wbr>text</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">iced</a>::<wbr><a href="../index.html">widget</a>::<wbr><a href="index.html">text</a></div><h1>Type Alias <span class="type">Text</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub type Text<'a, Theme = <a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, Renderer = Renderer> = <a class="struct" href="../../advanced/widget/struct.Text.html" title="struct cosmic::iced::advanced::widget::Text">Text</a><'a, Theme, Renderer>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A bunch of text.</p>
|
||||
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::widget::text;
|
||||
<span class="kw">use </span>iced::color;
|
||||
|
||||
<span class="kw">enum </span>Message {
|
||||
<span class="comment">// ...
|
||||
</span>}
|
||||
|
||||
<span class="kw">fn </span>view(state: <span class="kw-2">&</span>State) -> Element<<span class="lifetime">'_</span>, Message> {
|
||||
text(<span class="string">"Hello, this is iced!"</span>)
|
||||
.size(<span class="number">20</span>)
|
||||
.color(<span class="macro">color!</span>(<span class="number">0x0000ff</span>))
|
||||
.into()
|
||||
}</code></pre></div>
|
||||
</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 Text<'a, Theme = <a class="enum" href="../../enum.Theme.html" title="enum cosmic::iced::Theme">Theme</a>, Renderer = Renderer> { <span class="comment">/* private fields */</span> }</code></pre><script src="../../../../type.impl/cosmic/iced/advanced/widget/struct.Text.js" data-self-path="cosmic::widget::Text" async></script></section></div></main></body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue