logo
pub struct DropdownButton<T: Default> {
Show 24 fields pub key: Key, pub value: T, pub hint: Box<dyn Widget>, pub disabled_hint: Box<dyn Widget>, pub on_changed: Option<ValueChanged<T>>, pub on_tap: Option<VoidCallback>, pub elevation: i32, pub style: TextStyle, pub underline: Box<dyn Widget>, pub icon: Box<dyn Widget>, pub icon_disabled_color: Color, pub icon_enabled_color: Color, pub icon_size: f32, pub is_dense: bool, pub is_expanded: bool, pub item_height: f32, pub focus_color: Color, pub focus_node: FocusNode, pub autofocus: bool, pub dropdown_color: Color, pub menu_max_height: f32, pub enable_feedback: bool, pub alignment: Box<dyn AlignmentGeometry>, pub border_radius: BorderRadius,
}

Fields

key: Keyvalue: Thint: Box<dyn Widget>disabled_hint: Box<dyn Widget>on_changed: Option<ValueChanged<T>>on_tap: Option<VoidCallback>elevation: i32style: TextStyleunderline: Box<dyn Widget>icon: Box<dyn Widget>icon_disabled_color: Coloricon_enabled_color: Coloricon_size: f32is_dense: boolis_expanded: boolitem_height: f32focus_color: Colorfocus_node: FocusNodeautofocus: booldropdown_color: Colormenu_max_height: f32enable_feedback: boolalignment: Box<dyn AlignmentGeometry>border_radius: BorderRadius

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.