pub struct WindowTransparencyLevel { /* private fields */ }Expand description
A transparency level a window can be asked to render with.
The set of levels is closed: values are obtained from the associated
functions (none, transparent, …).
Implementations§
Source§impl WindowTransparencyLevel
impl WindowTransparencyLevel
Sourcepub const fn none() -> Self
pub const fn none() -> Self
The window background is black where the client area is transparent.
Sourcepub const fn transparent() -> Self
pub const fn transparent() -> Self
The window background is transparent.
Sourcepub const fn blur() -> Self
pub const fn blur() -> Self
The window background is a blur-behind where the client area is transparent.
Sourcepub const fn acrylic_blur() -> Self
pub const fn acrylic_blur() -> Self
The window background is a blur-behind with a high blur radius. This level may fall back to blur, if the platform doesn’t support acrylic.
Trait Implementations§
Source§impl Clone for WindowTransparencyLevel
impl Clone for WindowTransparencyLevel
impl Copy for WindowTransparencyLevel
Source§impl Debug for WindowTransparencyLevel
impl Debug for WindowTransparencyLevel
Source§impl Display for WindowTransparencyLevel
impl Display for WindowTransparencyLevel
impl Eq for WindowTransparencyLevel
Source§impl Hash for WindowTransparencyLevel
impl Hash for WindowTransparencyLevel
Source§impl MarkupTyped for WindowTransparencyLevel
impl MarkupTyped for WindowTransparencyLevel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for WindowTransparencyLevel
impl PartialEq for WindowTransparencyLevel
impl StructuralPartialEq for WindowTransparencyLevel
Auto Trait Implementations§
impl Freeze for WindowTransparencyLevel
impl RefUnwindSafe for WindowTransparencyLevel
impl Send for WindowTransparencyLevel
impl Sync for WindowTransparencyLevel
impl Unpin for WindowTransparencyLevel
impl UnsafeUnpin for WindowTransparencyLevel
impl UnwindSafe for WindowTransparencyLevel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more