FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StyleReloadTarget

    struct · ferroui-hot-reload · v0.5.0

    struct StyleReloadTarget
    

    Replaces one style or nested Styles contribution, retaining its container and application-owned siblings. Native style removal detaches the previous frames; addition invalidates styling for the owner and its logical descendants. Register static-resource consumers as dependencies of this document. Applications caching the replaced style need an explicit refresh adapter.

    View source

    Members

    with_dependencies

    fn with_dependencies(self: Self, dependencies: impl IntoIterator<Item = String>) -> Self
    

    Declares resources/styles outside the document's inline includes, such as application resources consumed through StaticResource. Their revisions are prepared and committed in the same transaction as this target.

    Source

    contribution

    fn contribution(container: &Ref<Styles>, index: usize, uri: String, configuration: RuntimeXamlLoaderConfiguration) -> Result<Self, ReloadError>
    

    Source

    discover

    fn discover(container: &Ref<Styles>, configuration: RuntimeXamlLoaderConfiguration) -> Result<Vec<Self>, ReloadError>
    

    Discovers direct style includes without evaluating their markup.

    Source

    is_alive

    fn is_alive(self: &Self) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • ReloadTarget

    Availability

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