pub trait WindowProps: ElementBuilder {
Show 17 methods
// Provided methods
fn size_to_content<M>(self, value: impl IntoProp<SizeToContent, M>) -> Self { ... }
fn extend_client_area_to_decorations_hint<M>(
self,
value: impl IntoProp<bool, M>,
) -> Self { ... }
fn extend_client_area_title_bar_height_hint<M>(
self,
value: impl IntoProp<f64, M>,
) -> Self { ... }
fn window_decorations<M>(
self,
value: impl IntoProp<WindowDecorations, M>,
) -> Self { ... }
fn window_decorations_theme<M>(
self,
value: impl IntoProp<Option<Ref<ControlTheme>>, M>,
) -> Self { ... }
fn show_activated<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn show_in_taskbar<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn closing_behavior<M>(
self,
value: impl IntoProp<WindowClosingBehavior, M>,
) -> Self { ... }
fn window_state<M>(self, value: impl IntoProp<WindowState, M>) -> Self { ... }
fn title<M>(self, value: impl IntoProp<Option<String>, M>) -> Self { ... }
fn icon<M>(self, value: impl IntoProp<Option<Rc<WindowIcon>>, M>) -> Self { ... }
fn window_startup_location<M>(
self,
value: impl IntoProp<WindowStartupLocation, M>,
) -> Self { ... }
fn can_resize<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn can_minimize<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn can_maximize<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn on_window_closed(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
fn on_window_opened(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
}Expand description
The properties and routed events of Window.
Provided Methods§
Sourcefn size_to_content<M>(self, value: impl IntoProp<SizeToContent, M>) -> Self
fn size_to_content<M>(self, value: impl IntoProp<SizeToContent, M>) -> Self
Sourcefn extend_client_area_to_decorations_hint<M>(
self,
value: impl IntoProp<bool, M>,
) -> Self
fn extend_client_area_to_decorations_hint<M>( self, value: impl IntoProp<bool, M>, ) -> Self
Sourcefn extend_client_area_title_bar_height_hint<M>(
self,
value: impl IntoProp<f64, M>,
) -> Self
fn extend_client_area_title_bar_height_hint<M>( self, value: impl IntoProp<f64, M>, ) -> Self
Sourcefn window_decorations<M>(
self,
value: impl IntoProp<WindowDecorations, M>,
) -> Self
fn window_decorations<M>( self, value: impl IntoProp<WindowDecorations, M>, ) -> Self
Sourcefn window_decorations_theme<M>(
self,
value: impl IntoProp<Option<Ref<ControlTheme>>, M>,
) -> Self
fn window_decorations_theme<M>( self, value: impl IntoProp<Option<Ref<ControlTheme>>, M>, ) -> Self
Sourcefn show_activated<M>(self, value: impl IntoProp<bool, M>) -> Self
fn show_activated<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn show_in_taskbar<M>(self, value: impl IntoProp<bool, M>) -> Self
fn show_in_taskbar<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn closing_behavior<M>(
self,
value: impl IntoProp<WindowClosingBehavior, M>,
) -> Self
fn closing_behavior<M>( self, value: impl IntoProp<WindowClosingBehavior, M>, ) -> Self
Sourcefn window_state<M>(self, value: impl IntoProp<WindowState, M>) -> Self
fn window_state<M>(self, value: impl IntoProp<WindowState, M>) -> Self
Sourcefn title<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
fn title<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
Sets Window::title_property.
Sourcefn icon<M>(self, value: impl IntoProp<Option<Rc<WindowIcon>>, M>) -> Self
fn icon<M>(self, value: impl IntoProp<Option<Rc<WindowIcon>>, M>) -> Self
Sets Window::icon_property.
Sourcefn window_startup_location<M>(
self,
value: impl IntoProp<WindowStartupLocation, M>,
) -> Self
fn window_startup_location<M>( self, value: impl IntoProp<WindowStartupLocation, M>, ) -> Self
Sourcefn can_resize<M>(self, value: impl IntoProp<bool, M>) -> Self
fn can_resize<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn can_minimize<M>(self, value: impl IntoProp<bool, M>) -> Self
fn can_minimize<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn can_maximize<M>(self, value: impl IntoProp<bool, M>) -> Self
fn can_maximize<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn on_window_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_window_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles Window::window_closed_event.
Sourcefn on_window_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_window_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles Window::window_opened_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".