Skip to main content

ButtonStyleGetters

Trait ButtonStyleGetters 

Source
pub trait ButtonStyleGetters {
Show 30 methods // Required method fn button_style(&self) -> &ButtonStyle; // Provided methods fn text_style( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<TextStyle>>> { ... } fn background_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn foreground_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn overlay_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn shadow_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn surface_tint_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn elevation( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>> { ... } fn padding( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>> { ... } fn minimum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... } fn fixed_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... } fn maximum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... } fn icon_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... } fn icon_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>> { ... } fn icon_alignment(&self, app: &mut App) -> Option<IconAlignment> { ... } fn side( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<BorderSide>>> { ... } fn shape( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>> { ... } fn mouse_cursor( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>> { ... } fn visual_density(&self, app: &mut App) -> Option<VisualDensity> { ... } fn tap_target_size(&self, app: &mut App) -> Option<MaterialTapTargetSize> { ... } fn animation_duration(&self, app: &mut App) -> Option<Duration> { ... } fn enable_feedback(&self, app: &mut App) -> Option<bool> { ... } fn alignment(&self, app: &mut App) -> Option<AlignmentGeometry> { ... } fn splash_factory( &self, app: &mut App, ) -> Option<InteractiveInkFeatureFactoryRef> { ... } fn background_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder> { ... } fn foreground_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder> { ... } fn size_variant(&self, app: &mut App) -> Option<ButtonSizeVariant> { ... } fn icon_button_width(&self, app: &mut App) -> Option<IconButtonWidthVariant> { ... } fn shape_variant(&self, app: &mut App) -> Option<ButtonShapeVariant> { ... } fn copy_with(&self, app: &mut App) -> ButtonStyle { ... }
}
Expand description

Dart’s getters of ButtonStyle: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.

Required Methods§

Source

fn button_style(&self) -> &ButtonStyle

The fields Dart’s constructor sets: the struct itself, or the super(...) arguments a defaults struct keeps.

Provided Methods§

Source

fn text_style( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<TextStyle>>>

Dart’s text_style getter.

Source

fn background_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s background_color getter.

Source

fn foreground_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s foreground_color getter.

Source

fn overlay_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s overlay_color getter.

Source

fn shadow_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s shadow_color getter.

Source

fn surface_tint_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s surface_tint_color getter.

Source

fn elevation( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>>

Dart’s elevation getter.

Source

fn padding( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>>

Dart’s padding getter.

Source

fn minimum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>

Dart’s minimum_size getter.

Source

fn fixed_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>

Dart’s fixed_size getter.

Source

fn maximum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>

Dart’s maximum_size getter.

Source

fn icon_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>

Dart’s icon_color getter.

Source

fn icon_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>>

Dart’s icon_size getter.

Source

fn icon_alignment(&self, app: &mut App) -> Option<IconAlignment>

Dart’s icon_alignment getter.

Source

fn side( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<BorderSide>>>

Dart’s side getter.

Source

fn shape( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>>

Dart’s shape getter.

Source

fn mouse_cursor( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>

Dart’s mouse_cursor getter.

Source

fn visual_density(&self, app: &mut App) -> Option<VisualDensity>

Dart’s visual_density getter.

Source

fn tap_target_size(&self, app: &mut App) -> Option<MaterialTapTargetSize>

Dart’s tap_target_size getter.

Source

fn animation_duration(&self, app: &mut App) -> Option<Duration>

Dart’s animation_duration getter.

Source

fn enable_feedback(&self, app: &mut App) -> Option<bool>

Dart’s enable_feedback getter.

Source

fn alignment(&self, app: &mut App) -> Option<AlignmentGeometry>

Dart’s alignment getter.

Source

fn splash_factory( &self, app: &mut App, ) -> Option<InteractiveInkFeatureFactoryRef>

Dart’s splash_factory getter.

Source

fn background_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>

Dart’s background_builder getter.

Source

fn foreground_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>

Dart’s foreground_builder getter.

Source

fn size_variant(&self, app: &mut App) -> Option<ButtonSizeVariant>

Dart’s size_variant getter.

Source

fn icon_button_width(&self, app: &mut App) -> Option<IconButtonWidthVariant>

Dart’s icon_button_width getter.

Source

fn shape_variant(&self, app: &mut App) -> Option<ButtonShapeVariant>

Dart’s shape_variant getter.

Source

fn copy_with(&self, app: &mut App) -> ButtonStyle

Dart’s copyWith() with no arguments: a plain value holding what every getter answers, for the caller’s setters to change.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§