FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ActionCollectionTemplate

    struct · ferroui-xaml-interactivity · v0.5.0

    struct ActionCollectionTemplate
    

    A template for creating a collection of IAction objects.

    As the value of a style setter of the Actions of a StyledElementTrigger it builds a new collection for each trigger the style applies to.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates an empty template.

    Source

    content

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

    Gets or sets the content of the template: deferred content built on each build.

    Source

    set_content

    fn set_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    build

    fn build(self: &Self) -> Option<ActionCollection>
    

    Builds the collection of actions from the template.

    Panics

    Panics if the content is not template content, or builds something else than a collection of actions.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Default
    • ITemplate
    • PartialEq
    • MarkupTyped

    Availability

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