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

View file

@ -0,0 +1,26 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `CosmicComponent` type in crate `cosmic`."><title>CosmicComponent in cosmic::theme - 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="#">Cosmic<wbr>Component</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.base" title="base">base</a></li><li><a href="#structfield.border" title="border">border</a></li><li><a href="#structfield.disabled" title="disabled">disabled</a></li><li><a href="#structfield.disabled_border" title="disabled_border">disabled_border</a></li><li><a href="#structfield.divider" title="divider">divider</a></li><li><a href="#structfield.focus" title="focus">focus</a></li><li><a href="#structfield.hover" title="hover">hover</a></li><li><a href="#structfield.on" title="on">on</a></li><li><a href="#structfield.on_disabled" title="on_disabled">on_disabled</a></li><li><a href="#structfield.pressed" title="pressed">pressed</a></li><li><a href="#structfield.selected" title="selected">selected</a></li><li><a href="#structfield.selected_text" title="selected_text">selected_text</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>theme</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">theme</a></div><h1>Type Alias <span class="type">CosmicComponent</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/theme/mod.rs.html#22">Source</a> </span></div><pre class="rust item-decl"><code>pub type CosmicComponent = <a class="struct" href="../cosmic_theme/struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct CosmicComponent {
pub base: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub hover: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub pressed: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub selected: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub selected_text: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub focus: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub divider: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub on: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub disabled: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub on_disabled: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub border: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub disabled_border: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.base" class="structfield section-header"><a href="#structfield.base" class="anchor field">§</a><code>base: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>The base color of the widget</p>
</div><span id="structfield.hover" class="structfield section-header"><a href="#structfield.hover" class="anchor field">§</a><code>hover: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>The color of the widget when it is hovered</p>
</div><span id="structfield.pressed" class="structfield section-header"><a href="#structfield.pressed" class="anchor field">§</a><code>pressed: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the widget when it is pressed</p>
</div><span id="structfield.selected" class="structfield section-header"><a href="#structfield.selected" class="anchor field">§</a><code>selected: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the widget when it is selected</p>
</div><span id="structfield.selected_text" class="structfield section-header"><a href="#structfield.selected_text" class="anchor field">§</a><code>selected_text: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the widget when it is selected</p>
</div><span id="structfield.focus" class="structfield section-header"><a href="#structfield.focus" class="anchor field">§</a><code>focus: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the widget when it is focused</p>
</div><span id="structfield.divider" class="structfield section-header"><a href="#structfield.divider" class="anchor field">§</a><code>divider: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of dividers for this widget</p>
</div><span id="structfield.on" class="structfield section-header"><a href="#structfield.on" class="anchor field">§</a><code>on: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of text for this widget</p>
</div><span id="structfield.disabled" class="structfield section-header"><a href="#structfield.disabled" class="anchor field">§</a><code>disabled: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the widget when it is disabled</p>
</div><span id="structfield.on_disabled" class="structfield section-header"><a href="#structfield.on_disabled" class="anchor field">§</a><code>on_disabled: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of text in the widget when it is disabled</p>
</div><span id="structfield.border" class="structfield section-header"><a href="#structfield.border" class="anchor field">§</a><code>border: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the border for the widget</p>
</div><span id="structfield.disabled_border" class="structfield section-header"><a href="#structfield.disabled_border" class="anchor field">§</a><code>disabled_border: <a class="struct" href="../cosmic_theme/palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="../cosmic_theme/palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>the color of the border for the widget when it is disabled</p>
</div><script src="../../type.impl/cosmic/cosmic_theme/struct.Component.js" data-self-path="cosmic::theme::CosmicComponent" async></script></section></div></main></body></html>