FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICommandSource

    trait · ferroui-base · v0.5.0

    trait ICommandSource
    

    An interface for classes that know how to invoke a command.

    View source

    Members

    command

    fn command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    The command that will be executed when the class is "invoked." Classes that implement this interface should enable or disable based on what the command's can_execute returns. The property may be implemented as read-write if desired.

    Source

    command_parameter

    fn command_parameter(self: &Self) -> Option<BoxedValue>
    

    The parameter that will be passed to the command when executing the command. The property may be implemented as read-write if desired.

    Source

    can_execute_changed

    fn can_execute_changed(self: &Self)
    

    Called for the can_execute_changed event of the command when changes are detected.

    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.