FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IClickableControl

    trait · ferroui-base · v0.5.0

    trait IClickableControl
    

    A control that can be clicked: what the access key and hot key handling needs from a button-like control.

    View source

    Members

    click

    fn click(self: &Self, handler: Rc<dyn Fn(&RoutedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Raised when the control is clicked. Disposing the returned handle unsubscribes.

    Source

    raise_click

    fn raise_click(self: &Self)
    

    Raises the click of the control.

    Source

    is_effectively_enabled

    fn is_effectively_enabled(self: &Self) -> bool
    

    Gets a value indicating whether this control and all its parents are enabled.

    Source

    Availability

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