logo
pub struct FloatingActionButton {
Show 23 fields pub key: Key, pub child: Box<dyn Widget>, pub tooltip: String, pub foreground_color: Color, pub background_color: Color, pub focus_color: Color, pub hover_color: Color, pub splash_color: Color, pub elevation: f32, pub focus_elevation: f32, pub hover_elevation: f32, pub highlight_elevation: f32, pub disabled_elevation: f32, pub on_pressed: Option<VoidCallback>, pub mouse_cursor: MouseCursor, pub mini: bool, pub shape: Box<dyn ShapeBorder>, pub clip_behavior: Clip, pub focus_node: FocusNode, pub autofocus: bool, pub material_tap_target_size: MaterialTapTargetSize, pub is_extended: bool, pub enable_feedback: bool,
}

Fields

key: Keychild: Box<dyn Widget>tooltip: Stringforeground_color: Colorbackground_color: Colorfocus_color: Colorhover_color: Colorsplash_color: Colorelevation: f32focus_elevation: f32hover_elevation: f32highlight_elevation: f32disabled_elevation: f32on_pressed: Option<VoidCallback>mouse_cursor: MouseCursormini: boolshape: Box<dyn ShapeBorder>clip_behavior: Clipfocus_node: FocusNodeautofocus: boolmaterial_tap_target_size: MaterialTapTargetSizeis_extended: boolenable_feedback: bool

Trait Implementations

Returns the “default value” for a type. Read more

Inflates this configuration to a concrete instance

The widdget key

The control x position, relative to its container

The control y position, relative to its container

The control width

The control height

The control minimum width

The control minimum height

The control maximum width

The control maximum height

The control parent, if any

The control depth. Usually set internally

Whether or not the control is visible at creation

Whether or not the control responds to mouse input

Whether or not the control responds to key input

Whether or not the control emits render signals from the canvas render call

Internal. Internal parent visibility for creating sub controls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.