FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VisualStateGroup

    struct · ferroui-designer-animation · v0.5.0

    struct VisualStateGroup
    

    View source

    Members

    name

    name: String
    

    Source

    owner

    owner: ferroui_designer_core::NodeId
    

    Source

    states

    states: Vec<VisualState>
    

    Source

    transitions

    transitions: Vec<StateTransition>
    

    Source

    validate

    fn validate(self: &Self) -> Result<()>
    

    Source

    class_name

    fn class_name(self: &Self, state: &str) -> String
    

    Source

    transition_class

    fn transition_class(self: &Self, from: &str, to: &str) -> String
    

    Source

    classes

    fn classes(self: &Self) -> Vec<String>
    

    Source

    actions

    fn actions(self: &Self, owner_name: &str, to: &str, from: Option<&str>) -> Result<Vec<BehaviorAction>>
    

    Emit ordinary class actions, routing directional transitions through ConditionalAction. The group's generated styles set each route condition from the current state class, so a single event action chooses the edge that is active when the event actually fires.

    Source

    to_xaml

    fn to_xaml(self: &Self, owner_name: &str) -> Result<String>
    

    Native nested styles own their class scope. Literal state properties also use an animation layer so an authored local Width/Opacity does not mask the selected state.

    Source

    read

    fn read(document: &Document) -> Vec<Self>
    

    Source

    plan

    fn plan(self: &Self, document: &Document) -> Result<Vec<Edit>>
    

    Source

    remove

    fn remove(document: &Document, owner: NodeId, name: &str) -> Result<Vec<Edit>>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>

    Availability

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