pub trait MenuStyleGetters {
Show 15 methods
// Required method
fn menu_style(&self) -> &MenuStyle;
// Provided methods
fn background_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 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 alignment(&self, app: &mut App) -> Option<AlignmentGeometry> { ... }
fn copy_with(&self, app: &mut App) -> MenuStyle { ... }
}Expand description
Dart’s getters of MenuStyle: 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§
The fields Dart’s constructor sets: the struct itself, or the super(...)
arguments a defaults struct keeps.
Provided Methods§
Sourcefn background_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn background_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s background_color getter.
Sourcefn shadow_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn shadow_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s shadow_color getter.
Sourcefn surface_tint_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn surface_tint_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s surface_tint_color getter.
Sourcefn elevation(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<f64>>>
fn elevation( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>>
Dart’s elevation getter.
Sourcefn padding(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>>
fn padding( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>>
Dart’s padding getter.
Sourcefn minimum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn minimum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s minimum_size getter.
Sourcefn fixed_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn fixed_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s fixed_size getter.
Sourcefn maximum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn maximum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s maximum_size getter.
Sourcefn side(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<BorderSide>>>
fn side( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<BorderSide>>>
Dart’s side getter.
Sourcefn shape(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>>
fn shape( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>>
Dart’s shape getter.
Sourcefn mouse_cursor(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>
fn mouse_cursor( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>
Dart’s mouse_cursor getter.
Sourcefn visual_density(&self, app: &mut App) -> Option<VisualDensity>
fn visual_density(&self, app: &mut App) -> Option<VisualDensity>
Dart’s visual_density getter.
Sourcefn alignment(&self, app: &mut App) -> Option<AlignmentGeometry>
fn alignment(&self, app: &mut App) -> Option<AlignmentGeometry>
Dart’s alignment getter.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".