libcosmic/cosmic/widget/style/trait.StyleSheet.html
2026-04-18 20:11:25 +00:00

19 lines
No EOL
8.6 KiB
HTML

<!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 set of rules that dictate the style of an indicator."><title>StyleSheet in cosmic::widget::style - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Style<wbr>Sheet</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Style" title="Style">Style</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.appearance" title="appearance">appearance</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>style</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">style</a></div><h1>Trait <span class="trait">StyleSheet</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/widget/progress_bar/style.rs.html#27-38">Source</a> </span></div><pre class="rust item-decl"><code>pub trait StyleSheet {
type <a href="#associatedtype.Style" class="associatedtype">Style</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>;
// Required method
fn <a href="#tymethod.appearance" class="fn">appearance</a>(
&amp;self,
style: &amp;Self::<a class="associatedtype" href="trait.StyleSheet.html#associatedtype.Style" title="type cosmic::widget::style::StyleSheet::Style">Style</a>,
is_determinate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
is_circular: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
) -&gt; <a class="struct" href="struct.Appearance.html" title="struct cosmic::widget::style::Appearance">Appearance</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A set of rules that dictate the style of an indicator.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Style" class="method"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#29">Source</a><h4 class="code-header">type <a href="#associatedtype.Style" class="associatedtype">Style</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a></h4></section></summary><div class="docblock"><p>The supported style of the <a href="trait.StyleSheet.html" title="trait cosmic::widget::style::StyleSheet"><code>StyleSheet</code></a>.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.appearance" class="method"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#32-37">Source</a><h4 class="code-header">fn <a href="#tymethod.appearance" class="fn">appearance</a>(
&amp;self,
style: &amp;Self::<a class="associatedtype" href="trait.StyleSheet.html#associatedtype.Style" title="type cosmic::widget::style::StyleSheet::Style">Style</a>,
is_determinate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
is_circular: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
) -&gt; <a class="struct" href="struct.Appearance.html" title="struct cosmic::widget::style::Appearance">Appearance</a></h4></section></summary><div class="docblock"><p>Produces the active <a href="struct.Appearance.html" title="struct cosmic::widget::style::Appearance"><code>Appearance</code></a> of a indicator.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-StyleSheet-for-Theme" class="impl"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#40-58">Source</a><a href="#impl-StyleSheet-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StyleSheet.html" title="trait cosmic::widget::style::StyleSheet">StyleSheet</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.Style-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#41">Source</a><a href="#associatedtype.Style-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Style" class="associatedtype">Style</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-StyleSheet-for-Theme-1" class="impl"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#60-105">Source</a><a href="#impl-StyleSheet-for-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StyleSheet.html" title="trait cosmic::widget::style::StyleSheet">StyleSheet</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.Style-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/cosmic/widget/progress_bar/style.rs.html#61">Source</a><a href="#associatedtype.Style-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Style" class="associatedtype">Style</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details></div><script src="../../../trait.impl/cosmic/widget/progress_bar/style/trait.StyleSheet.js" data-ignore-extern-crates="iced_core" async></script></section></div></main></body></html>