Skip to main content

WindowBaseImpl

Trait WindowBaseImpl 

Source
pub trait WindowBaseImpl: TopLevelImpl + Upcast<WindowBase> {
    // Provided methods
    fn hide(this: &Self) { ... }
    fn show(this: &Self) { ... }
    fn on_resized(this: &Self, e: &WindowResizedEventArgs) { ... }
    fn arrange_set_bounds(this: &Self, size: Size) -> Size { ... }
    fn is_visible_changed(this: &Self, e: &FerroPropertyChangedEventArgs<'_>) { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn hide(this: &Self)

Hides the window.

Source

fn show(this: &Self)

Shows the window.

Source

fn on_resized(this: &Self, e: &WindowResizedEventArgs)

Raises the Resized event.

Source

fn arrange_set_bounds(this: &Self, size: Size) -> Size

Called during the arrange pass to set the size of the window; returns the size to arrange the content with.

Source

fn is_visible_changed(this: &Self, e: &FerroPropertyChangedEventArgs<'_>)

Called when the IsVisible property changes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§