FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ElementBuilder

    trait · ferroui-view · v0.5.0

    trait ElementBuilder: Sized
    

    The part of a builder the generated setters use.

    View source

    Members

    element_mut

    fn element_mut(self: &mut Self) -> &mut ControlElement
    

    The element being built.

    Source

    prop

    fn prop<P: TypedProperty + ?Sized, M>(self: Self, property: &'static P, value: impl IntoProp<<P as >::Value, M>) -> Self
    

    Gives a property a value (the indexer control[Property] = value upstream).

    Source

    routed

    fn routed<A: IRoutedEventArgs + 'static>(self: Self, event: &'static RoutedEvent<A>, handler: impl Fn(&Interactive, &A) -> () + 'static) -> Self
    

    Handles a routed event; the handler gets the control that handles it and the arguments.

    Source

    Trait implementations

    Availability

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