pub struct FluidGlassArgsBuilder { /* private fields */ }
Expand description
Builder for FluidGlassArgs
.
Implementations§
Source§impl FluidGlassArgsBuilder
impl FluidGlassArgsBuilder
Sourcepub fn tint_color<VALUE: Into<Color>>(self, value: VALUE) -> Self
pub fn tint_color<VALUE: Into<Color>>(self, value: VALUE) -> Self
The tint color of the glass.
The alpha channel uniquely and directly controls the tint strength.
A=0.0
means no tint (100% background visibility).
A=1.0
means full tint (100% color visibility).
Sourcepub fn shape<VALUE: Into<Shape>>(self, value: VALUE) -> Self
pub fn shape<VALUE: Into<Shape>>(self, value: VALUE) -> Self
The shape of the component, an enum that can be RoundedRectangle
or Ellipse
.
Sourcepub fn blur_radius<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn blur_radius<VALUE: Into<f32>>(self, value: VALUE) -> Self
The radius for the background blur effect. A value of 0.0
disables the blur.
Sourcepub fn dispersion_height<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn dispersion_height<VALUE: Into<f32>>(self, value: VALUE) -> Self
The height of the chromatic dispersion effect.
Sourcepub fn chroma_multiplier<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn chroma_multiplier<VALUE: Into<f32>>(self, value: VALUE) -> Self
Multiplier for the chromatic aberration, enhancing the color separation effect.
Sourcepub fn refraction_height<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn refraction_height<VALUE: Into<f32>>(self, value: VALUE) -> Self
The height of the refraction effect, simulating light bending through the glass.
Sourcepub fn refraction_amount<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn refraction_amount<VALUE: Into<f32>>(self, value: VALUE) -> Self
The amount of refraction to apply.
Sourcepub fn eccentric_factor<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn eccentric_factor<VALUE: Into<f32>>(self, value: VALUE) -> Self
Controls the shape and eccentricity of the highlight.
Sourcepub fn noise_amount<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn noise_amount<VALUE: Into<f32>>(self, value: VALUE) -> Self
The amount of noise to apply over the surface, adding texture.
Sourcepub fn noise_scale<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn noise_scale<VALUE: Into<f32>>(self, value: VALUE) -> Self
The scale of the noise pattern.
Sourcepub fn time<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn time<VALUE: Into<f32>>(self, value: VALUE) -> Self
A time value, typically used to animate the noise or other effects.
Sourcepub fn width<VALUE: Into<DimensionValue>>(self, value: VALUE) -> Self
pub fn width<VALUE: Into<DimensionValue>>(self, value: VALUE) -> Self
The optional width of the component, defined as a DimensionValue
.
Sourcepub fn height<VALUE: Into<DimensionValue>>(self, value: VALUE) -> Self
pub fn height<VALUE: Into<DimensionValue>>(self, value: VALUE) -> Self
The optional height of the component, defined as a DimensionValue
.
pub fn padding<VALUE: Into<Dp>>(self, value: VALUE) -> Self
pub fn ripple_center<VALUE: Into<[f32; 2]>>(self, value: VALUE) -> Self
pub fn ripple_radius<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn ripple_alpha<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn ripple_strength<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn on_click(self, value: Arc<dyn Fn() + Send + Sync>) -> Self
pub fn border<VALUE: Into<Option<GlassBorder>>>(self, value: VALUE) -> Self
Sourcepub fn block_input<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn block_input<VALUE: Into<bool>>(self, value: VALUE) -> Self
Whether to block input events on the glass surface.
When true
, the surface will consume all input events, preventing interaction with underlying components.
Sourcepub fn build(self) -> Result<FluidGlassArgs, FluidGlassArgsBuilderError>
pub fn build(self) -> Result<FluidGlassArgs, FluidGlassArgsBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FluidGlassArgsBuilder
impl !RefUnwindSafe for FluidGlassArgsBuilder
impl Send for FluidGlassArgsBuilder
impl Sync for FluidGlassArgsBuilder
impl Unpin for FluidGlassArgsBuilder
impl !UnwindSafe for FluidGlassArgsBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.