Struct components::widgets::WidgetsApp
source · [−]pub struct WidgetsApp {Show 28 fields
pub key: Key,
pub navigator_key: GlobalKey<NavigatorState>,
pub on_generate_route: Option<Box<dyn RouteFactory<String>>>,
pub on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>,
pub on_unknown_route: Option<Box<dyn RouteFactory<String>>>,
pub navigator_observers: Vec<NavigatorObserver>,
pub initial_route: String,
pub home: Box<dyn Widget>,
pub routes: HashMap<String, Box<WidgetBuilder>>,
pub builder: Option<Box<dyn TransitionBuilder>>,
pub title: String,
pub on_generate_title: Option<Box<dyn GenerateAppTitle>>,
pub text_style: TextStyle,
pub color: Color,
pub locale: Locale,
pub localizations_delegates: Vec<LocalizationsDelegate>,
pub locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>,
pub locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>,
pub supported_locales: Vec<Locale>,
pub show_performance_overlay: bool,
pub checkerboard_raster_cache_images: bool,
pub checkerboard_offscreen_layers: bool,
pub show_semantics_debugger: bool,
pub debug_show_widget_inspector: bool,
pub debug_show_checked_mode_banner: bool,
pub shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>,
pub restoration_scope_id: String,
pub use_inherited_media_query: bool,
}
Fields
key: Key
on_generate_route: Option<Box<dyn RouteFactory<String>>>
on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>
on_unknown_route: Option<Box<dyn RouteFactory<String>>>
initial_route: String
home: Box<dyn Widget>
routes: HashMap<String, Box<WidgetBuilder>>
builder: Option<Box<dyn TransitionBuilder>>
title: String
on_generate_title: Option<Box<dyn GenerateAppTitle>>
text_style: TextStyle
color: Color
locale: Locale
localizations_delegates: Vec<LocalizationsDelegate>
locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>
locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>
supported_locales: Vec<Locale>
show_performance_overlay: bool
checkerboard_raster_cache_images: bool
checkerboard_offscreen_layers: bool
show_semantics_debugger: bool
debug_show_widget_inspector: bool
shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>
restoration_scope_id: String
use_inherited_media_query: bool
Trait Implementations
sourceimpl Default for WidgetsApp
impl Default for WidgetsApp
sourceimpl Widget for WidgetsApp
impl Widget for WidgetsApp
sourceimpl WidgetProperties for WidgetsApp
impl WidgetProperties for WidgetsApp
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 !RefUnwindSafe for WidgetsApp
impl !Send for WidgetsApp
impl !Sync for WidgetsApp
impl Unpin for WidgetsApp
impl !UnwindSafe for WidgetsApp
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
.