#[non_exhaustive]pub struct NativeDesktop {
pub os: OsThemeColors,
pub kde: Option<KdeDesktop>,
}Expand description
What the desktop reports for ThemeMode::Native: its colours, and on a
KDE Plasma session its desktop settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.os: OsThemeColorsThe desktop’s colour report.
kde: Option<KdeDesktop>The KDE desktop’s colour scheme and settings, on a KDE session whose
kdeglobals could be read; None elsewhere.
When present, os is its scheme’s colour report
(KdeColorScheme::os_theme_colors).
Implementations§
Source§impl NativeDesktop
impl NativeDesktop
Sourcepub fn new(os: OsThemeColors) -> Self
pub fn new(os: OsThemeColors) -> Self
A desktop reporting os and no KDE settings.
Trait Implementations§
Source§impl Clone for NativeDesktop
impl Clone for NativeDesktop
Source§impl Debug for NativeDesktop
impl Debug for NativeDesktop
Source§impl PartialEq for NativeDesktop
impl PartialEq for NativeDesktop
impl StructuralPartialEq for NativeDesktop
Auto Trait Implementations§
impl Freeze for NativeDesktop
impl RefUnwindSafe for NativeDesktop
impl Send for NativeDesktop
impl Sync for NativeDesktop
impl Unpin for NativeDesktop
impl UnsafeUnpin for NativeDesktop
impl UnwindSafe for NativeDesktop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.