pub struct EffectsBuilder(/* private fields */);Expand description
The WindowEffectsConfig object builder
Implementations§
Source§impl EffectsBuilder
impl EffectsBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new WindowEffectsConfig builder
Sourcepub fn effect(self, effect: Effect) -> Self
pub fn effect(self, effect: Effect) -> Self
Adds effect to the WindowEffectsConfig effects field
Sourcepub fn effects<I: IntoIterator<Item = Effect>>(self, effects: I) -> Self
pub fn effects<I: IntoIterator<Item = Effect>>(self, effects: I) -> Self
Adds effects to the WindowEffectsConfig effects field
Sourcepub fn clear_effects(self) -> Self
pub fn clear_effects(self) -> Self
Clears the WindowEffectsConfig effects field
Sourcepub fn state(self, state: EffectState) -> Self
pub fn state(self, state: EffectState) -> Self
Sets state field for the WindowEffectsConfig macOS Only
Sourcepub fn radius(self, radius: f64) -> Self
pub fn radius(self, radius: f64) -> Self
Sets radius field fo the WindowEffectsConfig macOS Only
Sourcepub fn color(self, color: Color) -> Self
pub fn color(self, color: Color) -> Self
Sets color field fo the WindowEffectsConfig Windows Only
Sourcepub fn build(self) -> WindowEffectsConfig
pub fn build(self) -> WindowEffectsConfig
Builds a WindowEffectsConfig
Trait Implementations§
Source§impl Default for EffectsBuilder
impl Default for EffectsBuilder
Source§fn default() -> EffectsBuilder
fn default() -> EffectsBuilder
Returns the “default value” for a type. Read more
Source§impl From<WindowEffectsConfig> for EffectsBuilder
impl From<WindowEffectsConfig> for EffectsBuilder
Source§fn from(value: WindowEffectsConfig) -> Self
fn from(value: WindowEffectsConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EffectsBuilder
impl RefUnwindSafe for EffectsBuilder
impl Send for EffectsBuilder
impl Sync for EffectsBuilder
impl Unpin for EffectsBuilder
impl UnsafeUnpin for EffectsBuilder
impl UnwindSafe for EffectsBuilder
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