Skip to main content

MenuStyleGetters

Trait MenuStyleGetters 

Source
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§

Source

fn menu_style(&self) -> &MenuStyle

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

Provided Methods§

Source

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

Dart’s background_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 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 alignment(&self, app: &mut App) -> Option<AlignmentGeometry>

Dart’s alignment getter.

Source

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

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§