pub struct ElevatedButton { /* private fields */ }Expand description
A Material Design “elevated button”.
Use elevated buttons to add dimension to otherwise mostly flat layouts, e.g. in long busy lists of content, or in wide spaces. Avoid using elevated buttons on already-elevated content such as dialogs or cards.
An elevated button is a label child displayed on a Material
widget whose Material::elevation increases when the button is
pressed. The label’s Text and Icon widgets are displayed in
style’s ButtonStyle::foreground_color and the button’s filled
background is the ButtonStyle::background_color.
The elevated button’s default style is defined by
default_style_of. The style of this elevated
button can be overridden with its style parameter. The style of all elevated
buttons in a subtree can be overridden with the
ElevatedButtonTheme, and the style of all of the elevated
buttons in an app can be overridden with the Theme’s
ThemeData::elevated_button_theme property.
The static style_from method is a convenient way to create a
elevated button ButtonStyle from simple values.
If on_pressed and on_long_press callbacks are null, then the
button will be disabled.
To use the Material 3 Expressive style, set
ElevatedButtonThemeData::variant to StyleVariant::Material3Expressive.
The Expressive size and shape variants can then be selected with
ButtonStyle::size_variant and ButtonStyle::shape_variant, and the button
becomes a toggle button when is_selected is non-null.
With the Material 3 style, is_selected updates WidgetState::Selected and
the button’s semantics, but the default style doesn’t change the button’s
appearance when it’s selected. To show the selected state, use a style
that resolves WidgetState::Selected.
See also:
FilledButton, a filled button that doesn’t elevate when pressed.FilledButton::tonal, a filled button variant that uses a secondary fill color.OutlinedButton, a button with an outlined border and no fill color.TextButton, a button with no outline or fill color.- https://material.io/design/components/buttons.html
- https://m3.material.io/components/buttons
Implementations§
Source§impl ElevatedButton
impl ElevatedButton
Sourcepub fn new<K>(
on_pressed: Option<Listener>,
child: Option<impl IntoWidget<K>>,
) -> ElevatedButton
pub fn new<K>( on_pressed: Option<Listener>, child: Option<impl IntoWidget<K>>, ) -> ElevatedButton
Create an ElevatedButton.
Sourcepub fn icon<K>(
on_pressed: Option<Listener>,
label: impl IntoWidget<K>,
) -> ElevatedButtonIcon
pub fn icon<K>( on_pressed: Option<Listener>, label: impl IntoWidget<K>, ) -> ElevatedButtonIcon
Create an elevated button from a pair of widgets that serve as the button’s
icon and label.
The icon and label are arranged in a row and padded by 12 logical pixels at the start, and 16 at the end, with an 8 pixel gap in between.
With the Material 3 Expressive style, the padding and the gap between the
icon and the label depend on ButtonStyle::size_variant. See
default_style_of.
If icon is null, this constructor will create an
ElevatedButton that doesn’t display an icon.
The alignment of the icon within the button is set by
icon_alignment; see IconAlignment.
Sourcepub fn key(self, key: KeyRef) -> ElevatedButton
pub fn key(self, key: KeyRef) -> ElevatedButton
Dart ElevatedButton(key:).
Sourcepub fn on_long_press(self, on_long_press: Listener) -> ElevatedButton
pub fn on_long_press(self, on_long_press: Listener) -> ElevatedButton
Dart ElevatedButton(onLongPress:).
Sourcepub fn on_hover(self, on_hover: ValueChanged<bool>) -> ElevatedButton
pub fn on_hover(self, on_hover: ValueChanged<bool>) -> ElevatedButton
Dart ElevatedButton(onHover:).
Sourcepub fn on_focus_change(
self,
on_focus_change: ValueChanged<bool>,
) -> ElevatedButton
pub fn on_focus_change( self, on_focus_change: ValueChanged<bool>, ) -> ElevatedButton
Dart ElevatedButton(onFocusChange:).
Sourcepub fn style(self, style: ButtonStyle) -> ElevatedButton
pub fn style(self, style: ButtonStyle) -> ElevatedButton
Dart ElevatedButton(style:).
Sourcepub fn focus_node(self, focus_node: FocusNodeRef) -> ElevatedButton
pub fn focus_node(self, focus_node: FocusNodeRef) -> ElevatedButton
Dart ElevatedButton(focusNode:).
Sourcepub fn autofocus(self, autofocus: bool) -> ElevatedButton
pub fn autofocus(self, autofocus: bool) -> ElevatedButton
Dart ElevatedButton(autofocus:).
Sourcepub fn clip_behavior(self, clip_behavior: Clip) -> ElevatedButton
pub fn clip_behavior(self, clip_behavior: Clip) -> ElevatedButton
Dart ElevatedButton(clipBehavior:).
Sourcepub fn states_controller(
self,
states_controller: Ref<WidgetStatesController>,
) -> ElevatedButton
pub fn states_controller( self, states_controller: Ref<WidgetStatesController>, ) -> ElevatedButton
Dart ElevatedButton(statesController:).
Sourcepub fn is_selected(self, is_selected: bool) -> ElevatedButton
pub fn is_selected(self, is_selected: bool) -> ElevatedButton
Dart ElevatedButton(isSelected:).
Sourcepub fn style_from() -> ElevatedButtonStyleFromBuilder
pub fn style_from() -> ElevatedButtonStyleFromBuilder
A static convenience method that constructs an elevated button
ButtonStyle given simple values.
The foreground_color and disabled_foreground_color colors are used
to create a WidgetStateProperty ButtonStyle::foreground_color, and
a derived ButtonStyle::overlay_color if overlay_color isn’t specified.
If overlay_color is specified and its value is Colors::TRANSPARENT
then the pressed/focused/hovered highlights are effectively defeated.
Otherwise a WidgetStateProperty with the same opacities as the
default is created.
The background_color and disabled_background_color colors are
used to create a WidgetStateProperty ButtonStyle::background_color.
Similarly, the enabled_mouse_cursor and disabled_mouse_cursor
parameters are used to construct ButtonStyle::mouse_cursor.
The icon_color, disabled_icon_color are used to construct
ButtonStyle::icon_color and icon_size is used to construct
ButtonStyle::icon_size.
If icon_color is null, the button icon will use foreground_color. If
foreground_color is also null, the button icon will use the default icon color.
The button’s elevations are defined relative to the elevation
parameter. The disabled elevation is the same as the parameter
value, elevation + 2 is used when the button is hovered
or focused, and elevation + 6 is used when the button is pressed.
All of the other parameters are either used directly or used to
create a WidgetStateProperty with a single value for all
states.
The size_variant and shape_variant parameters are Material 3 Expressive
options. They provide extra-small through extra-large sizes and round or
square shapes through ButtonStyle::size_variant and
ButtonStyle::shape_variant.
When ElevatedButtonThemeData::variant is
StyleVariant::Material3Expressive and these properties are null,
Material 3 Expressive ElevatedButton defaults use
ButtonSizeVariant::Small and ButtonShapeVariant::Round.
All parameters default to null, by default this method returns
a ButtonStyle that doesn’t override anything.
For example, to override the default text and icon colors for an
ElevatedButton, as well as its overlay color, with all of the
standard opacity adjustments for the pressed, focused, and
hovered states, one could write:
ElevatedButton::new(on_pressed, Text::new("Jump"))
.style(ElevatedButton::style_from().foreground_color(Colors::GREEN.primary()).build())And to change the fill color:
ElevatedButton::new(on_pressed, Text::new("Meow"))
.style(ElevatedButton::style_from().background_color(Colors::GREEN.primary()).build())Trait Implementations§
Source§impl ButtonStyleButton for ElevatedButton
impl ButtonStyleButton for ElevatedButton
Source§fn default_style_of(
&self,
app: &mut App,
context: BuildContext,
) -> Box<dyn ButtonStyleGetters>
fn default_style_of( &self, app: &mut App, context: BuildContext, ) -> Box<dyn ButtonStyleGetters>
Defines the button’s default appearance.
The button child’s Text and Icon widgets are rendered with
the ButtonStyle’s foreground color. The button’s InkWell adds
the style’s overlay color when the button is focused, hovered
or pressed. The button’s background color becomes its Material
color.
All of the ButtonStyle’s defaults appear below. In this list
“Theme.foo” is shorthand for Theme::of(context).foo. Color
scheme values like “onSurface(0.38)” are shorthand for
on_surface.with_opacity(0.38). WidgetStateProperty valued
properties that are not followed by a sublist have the same
value for all states, otherwise the values are as specified for
each state, and “others” means all other states.
The “default font size” below refers to the font size specified in the
default_style_of method (or 14.0 if
unspecified), scaled by the MediaQuery::text_scaler_of(context).scale method. The
names of the EdgeInsets constructors and EdgeInsetsGeometry::lerp have been
abbreviated for readability.
The color of the ButtonStyle::text_style is not used, the
ButtonStyle::foreground_color color is used instead.
§Material 2 defaults
text_style- Theme.textTheme.buttonbackground_color- disabled - Theme.colorScheme.onSurface(0.12)
- others - Theme.colorScheme.primary
foreground_color- disabled - Theme.colorScheme.onSurface(0.38)
- others - Theme.colorScheme.onPrimary
overlay_color- hovered - Theme.colorScheme.onPrimary(0.08)
- focused or pressed - Theme.colorScheme.onPrimary(0.12)
shadow_color- Theme.shadowColorelevation- disabled - 0
- default - 2
- hovered or focused - 4
- pressed - 8
paddingdefault font size <= 14- horizontal(16)14 < default font size <= 28- lerp(horizontal(16), horizontal(8))28 < default font size <= 36- lerp(horizontal(8), horizontal(4))36 < default font size- horizontal(4)
minimum_size- Size(64, 36)fixed_size- nullmaximum_size- Size.infiniteside- nullshape- RoundedRectangleBorder(borderRadius: BorderRadius.circular(4))mouse_cursor- WidgetStateMouseCursor.adaptiveClickablevisual_density- theme.visualDensitytap_target_size- theme.materialTapTargetSizeanimation_duration- kThemeChangeDurationenable_feedback- truealignment- Alignment.centersplash_factory- InkRipple.splashFactory
The default padding values for the ElevatedButton::icon factory are slightly
different:
paddingdefault font size <= 14- start(12) end(16)14 < default font size <= 28- lerp(start(12) end(16), horizontal(8))28 < default font size <= 36- lerp(horizontal(8), horizontal(4))36 < default font size- horizontal(4)
The default value for side, which defines the appearance of the button’s
outline, is null. That means that the outline is defined by the button
shape’s OutlinedBorder::side. Typically the default value of an
[OutlinedBorder]’s side is BorderSide::NONE, so an outline is not drawn.
§Material 3 defaults
If ThemeData::use_material3 is set to true the following defaults will
be used:
text_style- Theme.textTheme.labelLargebackground_color- disabled - Theme.colorScheme.onSurface(0.12)
- others - Theme.colorScheme.surfaceContainerLow
foreground_color- disabled - Theme.colorScheme.onSurface(0.38)
- others - Theme.colorScheme.primary
overlay_color- hovered - Theme.colorScheme.primary(0.08)
- focused or pressed - Theme.colorScheme.primary(0.1)
shadow_color- Theme.colorScheme.shadowsurface_tint_color- Colors.transparentelevation- disabled - 0
- default - 1
- hovered - 3
- focused or pressed - 1
paddingdefault font size <= 14- horizontal(24)14 < default font size <= 28- lerp(horizontal(24), horizontal(12))28 < default font size <= 36- lerp(horizontal(12), horizontal(6))36 < default font size- horizontal(6)
minimum_size- Size(64, 40)fixed_size- nullmaximum_size- Size.infiniteside- nullshape- StadiumBorder()mouse_cursor- WidgetStateMouseCursor.adaptiveClickablevisual_density- Theme.visualDensitytap_target_size- Theme.materialTapTargetSizeanimation_duration- kThemeChangeDurationenable_feedback- truealignment- Alignment.centersplash_factory- Theme.splashFactory
For the ElevatedButton::icon factory, the start (generally the left) value of
ButtonStyle::padding is reduced from 24 to 16.
§Material 3 Expressive defaults
If ThemeData::use_material3 is true and ElevatedButtonThemeData::variant
is StyleVariant::Material3Expressive, the following defaults will be
used. Values listed per size are for ButtonSizeVariant::XSmall,
ButtonSizeVariant::Small, ButtonSizeVariant::Medium,
ButtonSizeVariant::Large, and ButtonSizeVariant::XLarge respectively.
The selected values only apply when is_selected is non-null.
text_style- based onButtonStyle::size_variant- xSmall or small - Theme.textTheme.labelLarge
- medium - Theme.textTheme.titleMedium
- large - Theme.textTheme.headlineSmall
- xLarge - Theme.textTheme.headlineLarge
background_color- disabled - Theme.colorScheme.onSurface(0.1)
- selected - Theme.colorScheme.primary
- others - Theme.colorScheme.surfaceContainerLow
foreground_color- disabled - Theme.colorScheme.onSurface(0.38)
- selected - Theme.colorScheme.onPrimary
- others - Theme.colorScheme.primary
overlay_color- selected
- hovered - Theme.colorScheme.onPrimary(0.08)
- focused or pressed - Theme.colorScheme.onPrimary(0.1)
- hovered - Theme.colorScheme.primary(0.08)
- focused or pressed - Theme.colorScheme.primary(0.1)
- selected
shadow_color- Theme.colorScheme.shadowsurface_tint_color- Colors.transparentelevation- disabled - 0
- others - 1
padding- based onButtonStyle::size_variant; horizontal(12), horizontal(16), horizontal(24), horizontal(48), horizontal(64)minimum_size- based onButtonStyle::size_variant; Size(64, 32), Size(64, 40), Size(64, 56), Size(64, 96), Size(64, 136)fixed_size- nullmaximum_size- Size.infiniteicon_size- based onButtonStyle::size_variant; 20, 20, 24, 32, 40icon_color- same asforeground_colorside- nullshape- based onButtonStyle::size_variant,ButtonStyle::shape_variant, and state- pressed - RoundedRectangleBorder with radius 8, 8, 12, 16, 16
- selected
- round - RoundedRectangleBorder with radius 12, 12, 16, 28, 28
- square - StadiumBorder()
- others
- round - StadiumBorder()
- square - RoundedRectangleBorder with radius 12, 12, 16, 28, 28
mouse_cursor- WidgetStateMouseCursor.adaptiveClickablevisual_density- VisualDensity.standardtap_target_size- MaterialTapTargetSize.paddedanimation_duration- kThemeChangeDurationenable_feedback- truealignment- Alignment.centersplash_factory- Theme.splashFactorysize_variant- ButtonSizeVariant.smallshape_variant- ButtonShapeVariant.round
For the ElevatedButton::icon factory, the padding is the same, and the
gap between the icon and the label is 4, 8, 8, 12, or 16 based on
ButtonStyle::size_variant.
Source§fn theme_style_of(
&self,
app: &mut App,
context: BuildContext,
) -> Option<ButtonStyle>
fn theme_style_of( &self, app: &mut App, context: BuildContext, ) -> Option<ButtonStyle>
Returns the ElevatedButtonThemeData::style of the closest
ElevatedButtonTheme ancestor.
Source§impl Debug for ElevatedButton
impl Debug for ElevatedButton
Source§impl StatefulWidget for ElevatedButton
impl StatefulWidget for ElevatedButton
Source§type State = ButtonStyleState<ElevatedButton>
type State = ButtonStyleState<ElevatedButton>
Source§fn debug_fill_properties(
&self,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn create_state(&self) -> ButtonStyleState<ElevatedButton>
fn create_state(&self) -> ButtonStyleState<ElevatedButton>
Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for ElevatedButton
impl !Send for ElevatedButton
impl !Sync for ElevatedButton
impl !UnwindSafe for ElevatedButton
impl Forget for ElevatedButton
impl Freeze for ElevatedButtonwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
NonZero<u32>: Freeze,
*const (): Freeze,
*const RcInner<dyn Fn(&mut App, bool)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, bool)>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<TextStyle>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<TextStyle>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<f64>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<f64>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<EdgeInsetsGeometry>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<EdgeInsetsGeometry>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<Size>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Size>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<BorderSide>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<BorderSide>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<OutlinedBorderRef>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<OutlinedBorderRef>>>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<Rc<dyn MouseCursor>>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Rc<dyn MouseCursor>>>>>: Freeze,
*const RcInner<dyn InteractiveInkFeatureFactory> is !null: Freeze,
PhantomData<RcInner<dyn InteractiveInkFeatureFactory>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, &HashSet<WidgetState>, Option<Rc<dyn Widget>>) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, &HashSet<WidgetState>, Option<Rc<dyn Widget>>) -> Rc<dyn Widget>>>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
PhantomData<fn() -> WidgetStatesController>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for ElevatedButton
impl Unpin for ElevatedButtonwhere
Rc<dyn Key>: Unpin,
Rc<dyn Fn(&mut App)>: Unpin,
NonZero<u32>: Unpin,
*const (): Unpin,
Rc<dyn Fn(&mut App, bool)>: Unpin,
Rc<dyn WidgetStateProperty<Option<TextStyle>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<Color>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<f64>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<EdgeInsetsGeometry>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<Size>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<BorderSide>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<OutlinedBorderRef>>>: Unpin,
Rc<dyn WidgetStateProperty<Option<Rc<dyn MouseCursor>>>>: Unpin,
Rc<dyn InteractiveInkFeatureFactory>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, &HashSet<WidgetState>, Option<Rc<dyn Widget>>) -> Rc<dyn Widget>>: Unpin,
&'static FocusNodeVTable: Unpin,
Rc<Keep>: Unpin,
*const u8 is !null: Unpin,
Rc<dyn Widget>: Unpin,
impl UnsafeUnpin for ElevatedButtonwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, bool)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, bool)>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<TextStyle>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<TextStyle>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<f64>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<f64>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<EdgeInsetsGeometry>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<EdgeInsetsGeometry>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<Size>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Size>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<BorderSide>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<BorderSide>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<OutlinedBorderRef>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<OutlinedBorderRef>>>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<Rc<dyn MouseCursor>>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Rc<dyn MouseCursor>>>>>: UnsafeUnpin,
*const RcInner<dyn InteractiveInkFeatureFactory> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn InteractiveInkFeatureFactory>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, &HashSet<WidgetState>, Option<Rc<dyn Widget>>) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, &HashSet<WidgetState>, Option<Rc<dyn Widget>>) -> Rc<dyn Widget>>>: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
PhantomData<fn() -> WidgetStatesController>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
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
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.