Struct tauri::window::EffectsBuilder
source · 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 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