pub trait TopLevelProps: ElementBuilder {
// Provided methods
fn transparency_level_hint<M>(
self,
value: impl IntoProp<WindowTransparencyLevelCollection, M>,
) -> Self { ... }
fn transparency_background_fallback<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn system_bar_color<M>(
self,
value: impl IntoProp<Option<Ref<SolidColorBrush>>, M>,
) -> Self { ... }
fn auto_safe_area_padding<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn on_back_requested(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
}Expand description
The properties and routed events of TopLevel.
Provided Methods§
Sourcefn transparency_level_hint<M>(
self,
value: impl IntoProp<WindowTransparencyLevelCollection, M>,
) -> Self
fn transparency_level_hint<M>( self, value: impl IntoProp<WindowTransparencyLevelCollection, M>, ) -> Self
Sourcefn transparency_background_fallback<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self
fn transparency_background_fallback<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self
Sourcefn system_bar_color<M>(
self,
value: impl IntoProp<Option<Ref<SolidColorBrush>>, M>,
) -> Self
fn system_bar_color<M>( self, value: impl IntoProp<Option<Ref<SolidColorBrush>>, M>, ) -> Self
Sourcefn auto_safe_area_padding<M>(self, value: impl IntoProp<bool, M>) -> Self
fn auto_safe_area_padding<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn on_back_requested(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_back_requested(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles TopLevel::back_requested_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".