pub struct WindowEffectsConfig {
pub effects: Vec<WindowEffect>,
pub state: Option<WindowEffectState>,
pub radius: Option<f64>,
pub color: Option<Color>,
}
Expand description
The window effects configuration object
Fields§
§effects: Vec<WindowEffect>
List of Window effects to apply to the Window. Conflicting effects will apply the first one and ignore the rest.
state: Option<WindowEffectState>
Window effect state macOS Only
radius: Option<f64>
Window effect corner radius macOS Only
color: Option<Color>
Window effect color. Affects WindowEffect::Blur
and WindowEffect::Acrylic
only
on Windows 10 v1903+. Doesn’t have any effect on Windows 7 or Windows 11.
Trait Implementations§
Source§impl Clone for WindowEffectsConfig
impl Clone for WindowEffectsConfig
Source§fn clone(&self) -> WindowEffectsConfig
fn clone(&self) -> WindowEffectsConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowEffectsConfig
impl Debug for WindowEffectsConfig
Source§impl Default for WindowEffectsConfig
impl Default for WindowEffectsConfig
Source§fn default() -> WindowEffectsConfig
fn default() -> WindowEffectsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowEffectsConfig
impl<'de> Deserialize<'de> for WindowEffectsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowEffectsConfig
impl PartialEq for WindowEffectsConfig
Source§impl Serialize for WindowEffectsConfig
impl Serialize for WindowEffectsConfig
impl StructuralPartialEq for WindowEffectsConfig
Auto Trait Implementations§
impl Freeze for WindowEffectsConfig
impl RefUnwindSafe for WindowEffectsConfig
impl Send for WindowEffectsConfig
impl Sync for WindowEffectsConfig
impl Unpin for WindowEffectsConfig
impl UnwindSafe for WindowEffectsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)