Skip to main content

WindowProps

Trait WindowProps 

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

Source

fn size_to_content<M>(self, value: impl IntoProp<SizeToContent, M>) -> Self

Source

fn extend_client_area_to_decorations_hint<M>( self, value: impl IntoProp<bool, M>, ) -> Self

Source

fn extend_client_area_title_bar_height_hint<M>( self, value: impl IntoProp<f64, M>, ) -> Self

Source

fn window_decorations<M>( self, value: impl IntoProp<WindowDecorations, M>, ) -> Self

Source

fn window_decorations_theme<M>( self, value: impl IntoProp<Option<Ref<ControlTheme>>, M>, ) -> Self

Source

fn show_activated<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn show_in_taskbar<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn closing_behavior<M>( self, value: impl IntoProp<WindowClosingBehavior, M>, ) -> Self

Source

fn window_state<M>(self, value: impl IntoProp<WindowState, M>) -> Self

Source

fn title<M>(self, value: impl IntoProp<Option<String>, M>) -> Self

Source

fn icon<M>(self, value: impl IntoProp<Option<Rc<WindowIcon>>, M>) -> Self

Source

fn window_startup_location<M>( self, value: impl IntoProp<WindowStartupLocation, M>, ) -> Self

Source

fn can_resize<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn can_minimize<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn can_maximize<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn on_window_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Source

fn on_window_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§