Struct components::material::DropdownButton
source · [−]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: Key
value: T
hint: Box<dyn Widget>
disabled_hint: Box<dyn Widget>
on_changed: Option<ValueChanged<T>>
on_tap: Option<VoidCallback>
elevation: i32
style: TextStyle
underline: Box<dyn Widget>
icon: Box<dyn Widget>
icon_disabled_color: Color
icon_enabled_color: Color
icon_size: f32
is_dense: bool
is_expanded: bool
item_height: f32
focus_color: Color
focus_node: FocusNode
autofocus: bool
dropdown_color: Color
enable_feedback: bool
alignment: Box<dyn AlignmentGeometry>
border_radius: BorderRadius
Trait Implementations
sourceimpl<T: Default> Default for DropdownButton<T>
impl<T: Default> Default for DropdownButton<T>
sourceimpl<T: Default> Widget for DropdownButton<T>
impl<T: Default> Widget for DropdownButton<T>
sourceimpl<T: Default> WidgetProperties for DropdownButton<T>
impl<T: Default> WidgetProperties for DropdownButton<T>
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl<T> !RefUnwindSafe for DropdownButton<T>
impl<T> !Send for DropdownButton<T>
impl<T> !Sync for DropdownButton<T>
impl<T> Unpin for DropdownButton<T> where
T: Unpin,
impl<T> !UnwindSafe for DropdownButton<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.