FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AddTransitionAction

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct AddTransitionAction
    

    Adds a TransitionBase to the transitions collection on the target element.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<AddTransitionAction>
    

    Returns a strong reference to this object.

    Source

    transition_property

    fn transition_property() -> &'static StyledProperty<Option<Ref<TransitionBase>>>
    

    Identifies the Transition property.

    Source

    styled_element_property

    fn styled_element_property() -> &'static StyledProperty<Option<ElementRef<StyledElement>>>
    

    Identifies the StyledElement property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own the element, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    transition

    fn transition(self: &Self) -> Option<Ref<TransitionBase>>
    

    Gets or sets the transition to add. This is a property of the object model.

    Source

    set_transition

    fn set_transition(self: &Self, value: Option<Ref<TransitionBase>>)
    

    Source

    styled_element

    fn styled_element(self: &Self) -> Option<Ref<StyledElement>>
    

    Gets or sets the target styled element. This is a property of the object model; markup resolves a name given for it to the named element.

    Source

    set_styled_element

    fn set_styled_element(self: &Self, value: impl Into<Nullable<StyledElement>>)
    

    Source

    Trait implementations

    Availability

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