FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowProps

    trait · ferroui-view · v0.5.0

    trait WindowProps: ElementBuilder
    

    The properties and routed events of Window.

    View source

    Members

    size_to_content

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

    Sets Window::size_to_content_property.

    Source

    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.

    Source

    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.

    Source

    window_decorations

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

    Sets Window::window_decorations_property.

    Source

    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.

    Source

    show_activated

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

    Sets Window::show_activated_property.

    Source

    show_in_taskbar

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

    Sets Window::show_in_taskbar_property.

    Source

    closing_behavior

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

    Sets Window::closing_behavior_property.

    Source

    window_state

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

    Sets Window::window_state_property.

    Source

    title

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

    Sets Window::title_property.

    Source

    icon

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

    Sets Window::icon_property.

    Source

    window_startup_location

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

    Sets Window::window_startup_location_property.

    Source

    can_resize

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

    Sets Window::can_resize_property.

    Source

    can_minimize

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

    Sets Window::can_minimize_property.

    Source

    can_maximize

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

    Sets Window::can_maximize_property.

    Source

    on_window_closed

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

    Handles Window::window_closed_event.

    Source

    on_window_opened

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

    Handles Window::window_opened_event.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.