Skip to main content

ButtonImpl

Trait ButtonImpl 

Source
pub trait ButtonImpl: ContentControlImpl + Upcast<Button> {
    // Provided methods
    fn on_click(this: &Self) { ... }
    fn open_flyout(this: &Self) { ... }
    fn close_flyout(this: &Self) { ... }
    fn on_flyout_opened(this: &Self) { ... }
    fn on_flyout_closed(this: &Self) { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn on_click(this: &Self)

Invokes the Click event.

Source

fn open_flyout(this: &Self)

Opens the button’s flyout.

Source

fn close_flyout(this: &Self)

Closes the button’s flyout.

Source

fn on_flyout_opened(this: &Self)

Invoked when the button’s flyout is opened.

Source

fn on_flyout_closed(this: &Self)

Invoked when the button’s flyout is closed.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§