WindowProps
trait · ferroui-view · v0.5.0
trait WindowProps: ElementBuilder
The properties and routed events of Window.
Members
size_to_contentextend_client_area_to_decorations_hintextend_client_area_title_bar_height_hintwindow_decorationswindow_decorations_themeshow_activatedshow_in_taskbarclosing_behaviorwindow_statetitleiconwindow_startup_locationcan_resizecan_minimizecan_maximizeon_window_closedon_window_opened
size_to_content
fn size_to_content<M>(self: Self, value: impl IntoProp<ferroui_controls::SizeToContent, M>) -> Self
Sets Window::size_to_content_property.
extend_client_area_to_decorations_hint
fn extend_client_area_to_decorations_hint<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::extend_client_area_to_decorations_hint_property.
extend_client_area_title_bar_height_hint
fn extend_client_area_title_bar_height_hint<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets Window::extend_client_area_title_bar_height_hint_property.
window_decorations
fn window_decorations<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowDecorations, M>) -> Self
Sets Window::window_decorations_property.
window_decorations_theme
fn window_decorations_theme<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::styling::ControlTheme>>, M>) -> Self
Sets Window::window_decorations_theme_property.
show_activated
fn show_activated<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::show_activated_property.
show_in_taskbar
fn show_in_taskbar<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::show_in_taskbar_property.
closing_behavior
fn closing_behavior<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowClosingBehavior, M>) -> Self
Sets Window::closing_behavior_property.
window_state
fn window_state<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowState, M>) -> Self
Sets Window::window_state_property.
title
fn title<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets Window::title_property.
icon
fn icon<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_controls::WindowIcon>>, M>) -> Self
Sets Window::icon_property.
window_startup_location
fn window_startup_location<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowStartupLocation, M>) -> Self
Sets Window::window_startup_location_property.
can_resize
fn can_resize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::can_resize_property.
can_minimize
fn can_minimize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::can_minimize_property.
can_maximize
fn can_maximize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets Window::can_maximize_property.
on_window_closed
fn on_window_closed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles Window::window_closed_event.
on_window_opened
fn on_window_opened(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles Window::window_opened_event.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.