pub struct FluidGlassBuilder { /* private fields */ }Expand description
Configuration handle returned by fluid_glass.
Implementations§
Source§impl FluidGlassBuilder
impl FluidGlassBuilder
Sourcepub fn tint_color(&self, value: Color) -> Self
pub fn tint_color(&self, value: Color) -> Self
Configure tint_color before this component executes.
Sourcepub fn tint_color_optional(&self, value: Option<Color>) -> Self
pub fn tint_color_optional(&self, value: Option<Color>) -> Self
Configure tint_color before this component executes.
Sourcepub fn shape_optional(&self, value: Option<Shape>) -> Self
pub fn shape_optional(&self, value: Option<Shape>) -> Self
Configure shape before this component executes.
Sourcepub fn material(&self, value: GlassMaterial) -> Self
pub fn material(&self, value: GlassMaterial) -> Self
Configure material before this component executes.
Sourcepub fn material_optional(&self, value: Option<GlassMaterial>) -> Self
pub fn material_optional(&self, value: Option<GlassMaterial>) -> Self
Configure material before this component executes.
Sourcepub fn appearance(&self, value: GlassAppearance) -> Self
pub fn appearance(&self, value: GlassAppearance) -> Self
Configure appearance before this component executes.
Sourcepub fn appearance_optional(&self, value: Option<GlassAppearance>) -> Self
pub fn appearance_optional(&self, value: Option<GlassAppearance>) -> Self
Configure appearance before this component executes.
Sourcepub fn blur_radius(&self, value: Dp) -> Self
pub fn blur_radius(&self, value: Dp) -> Self
Configure blur_radius before this component executes.
Sourcepub fn blur_radius_optional(&self, value: Option<Dp>) -> Self
pub fn blur_radius_optional(&self, value: Option<Dp>) -> Self
Configure blur_radius before this component executes.
Sourcepub fn noise_amount(&self, value: f32) -> Self
pub fn noise_amount(&self, value: f32) -> Self
Configure noise_amount before this component executes.
Sourcepub fn noise_amount_optional(&self, value: Option<f32>) -> Self
pub fn noise_amount_optional(&self, value: Option<f32>) -> Self
Configure noise_amount before this component executes.
Sourcepub fn noise_scale(&self, value: f32) -> Self
pub fn noise_scale(&self, value: f32) -> Self
Configure noise_scale before this component executes.
Sourcepub fn noise_scale_optional(&self, value: Option<f32>) -> Self
pub fn noise_scale_optional(&self, value: Option<f32>) -> Self
Configure noise_scale before this component executes.
Sourcepub fn time_optional(&self, value: Option<f32>) -> Self
pub fn time_optional(&self, value: Option<f32>) -> Self
Configure time before this component executes.
Sourcepub fn contrast_optional(&self, value: Option<f32>) -> Self
pub fn contrast_optional(&self, value: Option<f32>) -> Self
Configure contrast before this component executes.
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn padding_optional(&self, value: Option<Dp>) -> Self
pub fn padding_optional(&self, value: Option<Dp>) -> Self
Configure padding before this component executes.
Sourcepub fn ripple_center(&self, value: [f32; 2]) -> Self
pub fn ripple_center(&self, value: [f32; 2]) -> Self
Configure ripple_center before this component executes.
Sourcepub fn ripple_center_optional(&self, value: Option<[f32; 2]>) -> Self
pub fn ripple_center_optional(&self, value: Option<[f32; 2]>) -> Self
Configure ripple_center before this component executes.
Sourcepub fn ripple_radius(&self, value: f32) -> Self
pub fn ripple_radius(&self, value: f32) -> Self
Configure ripple_radius before this component executes.
Sourcepub fn ripple_radius_optional(&self, value: Option<f32>) -> Self
pub fn ripple_radius_optional(&self, value: Option<f32>) -> Self
Configure ripple_radius before this component executes.
Sourcepub fn ripple_alpha(&self, value: f32) -> Self
pub fn ripple_alpha(&self, value: f32) -> Self
Configure ripple_alpha before this component executes.
Sourcepub fn ripple_alpha_optional(&self, value: Option<f32>) -> Self
pub fn ripple_alpha_optional(&self, value: Option<f32>) -> Self
Configure ripple_alpha before this component executes.
Sourcepub fn ripple_strength(&self, value: f32) -> Self
pub fn ripple_strength(&self, value: f32) -> Self
Configure ripple_strength before this component executes.
Sourcepub fn ripple_strength_optional(&self, value: Option<f32>) -> Self
pub fn ripple_strength_optional(&self, value: Option<f32>) -> Self
Configure ripple_strength before this component executes.
Configure on_click before this component executes.
Sourcepub fn on_click_optional(&self, value: Option<Callback>) -> Self
pub fn on_click_optional(&self, value: Option<Callback>) -> Self
Configure on_click before this component executes.
Sourcepub fn interactive(&self, value: bool) -> Self
pub fn interactive(&self, value: bool) -> Self
Configure interactive before this component executes.
Sourcepub fn interactive_optional(&self, value: Option<bool>) -> Self
pub fn interactive_optional(&self, value: Option<bool>) -> Self
Configure interactive before this component executes.
Sourcepub fn border(&self, value: GlassBorder) -> Self
pub fn border(&self, value: GlassBorder) -> Self
Configure border before this component executes.
Sourcepub fn border_optional(&self, value: Option<GlassBorder>) -> Self
pub fn border_optional(&self, value: Option<GlassBorder>) -> Self
Configure border before this component executes.
Sourcepub fn block_input(&self, value: bool) -> Self
pub fn block_input(&self, value: bool) -> Self
Configure block_input before this component executes.
Sourcepub fn block_input_optional(&self, value: Option<bool>) -> Self
pub fn block_input_optional(&self, value: Option<bool>) -> Self
Configure block_input before this component executes.
Sourcepub fn accessibility_role(&self, value: Role) -> Self
pub fn accessibility_role(&self, value: Role) -> Self
Configure accessibility_role before this component executes.
Sourcepub fn accessibility_role_optional(&self, value: Option<Role>) -> Self
pub fn accessibility_role_optional(&self, value: Option<Role>) -> Self
Configure accessibility_role before this component executes.
Sourcepub fn accessibility_label(&self, value: impl Into<String>) -> Self
pub fn accessibility_label(&self, value: impl Into<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_label_optional(&self, value: Option<String>) -> Self
pub fn accessibility_label_optional(&self, value: Option<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_description(&self, value: impl Into<String>) -> Self
pub fn accessibility_description(&self, value: impl Into<String>) -> Self
Configure accessibility_description before this component executes.
Sourcepub fn accessibility_description_optional(&self, value: Option<String>) -> Self
pub fn accessibility_description_optional(&self, value: Option<String>) -> Self
Configure accessibility_description before this component executes.
Sourcepub fn accessibility_focusable(&self, value: bool) -> Self
pub fn accessibility_focusable(&self, value: bool) -> Self
Configure accessibility_focusable before this component executes.
Sourcepub fn accessibility_focusable_optional(&self, value: Option<bool>) -> Self
pub fn accessibility_focusable_optional(&self, value: Option<bool>) -> Self
Configure accessibility_focusable before this component executes.
Sourcepub fn child<F, Output>(&self, value: F) -> Self
pub fn child<F, Output>(&self, value: F) -> Self
Configure child before this component executes.
Configure child before this component executes.
Sourcepub fn child_optional(&self, value: Option<RenderSlot>) -> Self
pub fn child_optional(&self, value: Option<RenderSlot>) -> Self
Configure child before this component executes.
Auto Trait Implementations§
impl Freeze for FluidGlassBuilder
impl RefUnwindSafe for FluidGlassBuilder
impl Send for FluidGlassBuilder
impl Sync for FluidGlassBuilder
impl Unpin for FluidGlassBuilder
impl UnsafeUnpin for FluidGlassBuilder
impl UnwindSafe for FluidGlassBuilder
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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> 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>, which can then be
downcast into Box<dyn 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>, which 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.