VisualStateGroup
struct · ferroui-designer-animation · v0.5.0
struct VisualStateGroup
Members
nameownerstatestransitionsvalidateclass_nametransition_classclassesactionsto_xamlreadplanremove
name
name: String
owner
owner: ferroui_designer_core::NodeId
states
states: Vec<VisualState>
transitions
transitions: Vec<StateTransition>
validate
fn validate(self: &Self) -> Result<()>
class_name
fn class_name(self: &Self, state: &str) -> String
transition_class
fn transition_class(self: &Self, from: &str, to: &str) -> String
classes
fn classes(self: &Self) -> Vec<String>
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.
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.
read
fn read(document: &Document) -> Vec<Self>
plan
fn plan(self: &Self, document: &Document) -> Result<Vec<Edit>>
remove
fn remove(document: &Document, owner: NodeId, name: &str) -> Result<Vec<Edit>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.