FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IStyle

    trait · ferroui-base · v0.5.0

    trait IStyle: IResourceNode
    

    Defines the interface for styles.

    Implemented by Style, ControlTheme, ContainerQuery, Styles and style includes.

    View source

    Members

    children

    fn children(self: &Self) -> Rc<Vec<Rc<dyn IStyle>>>
    

    A snapshot of the collection of child styles.

    Source

    as_object

    fn as_object(self: &Self) -> Option<&FerroObject>
    

    The style as an object, when it is a class instance. Used for identity comparison and type tests.

    Source

    as_resource_provider

    fn as_resource_provider(self: &Self) -> Option<&dyn IResourceProvider>
    

    The style as a resource provider, if it is one.

    Source

    Availability

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