FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnimationCodec

    trait · ferroui-designer-animation · v0.5.0

    trait AnimationCodec
    

    A custom codec owns the complete payload it recognizes. encode receives the original source, allowing a plugin to retain custom animator configuration while changing keyframes. An unsuccessful decode never changes the document or removes the opaque program.

    View source

    Members

    id

    fn id(self: &Self) -> &str
    

    Source

    can_decode

    fn can_decode(self: &Self, source: &str) -> bool
    

    Source

    decode

    fn decode(self: &Self, source: &str, target: NodeId, options: &ImportOptions) -> Result<AnimationImport>
    

    Source

    encode

    fn encode(self: &Self, original: &str, timeline: &Timeline, target: NodeId) -> Result<String>
    

    Source

    Availability

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