FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Style

    struct · ferroui-base · v0.5.0

    struct Style
    

    Defines a style.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Style>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a style without a selector.

    Source

    with_selector

    fn with_selector(selector: Selector) -> Ref<Self>
    

    Creates a style with a selector.

    Source

    with_selector_fn

    fn with_selector_fn(selector: impl FnOnce(Option<Selector>) -> Selector) -> Ref<Self>
    

    Creates a style whose selector is built by selector.

    Source

    selector

    fn selector(self: &Self) -> Option<Selector>
    

    The style's selector.

    Source

    set_selector

    fn set_selector(self: &Self, value: Option<Selector>)
    

    Source

    with_setters

    fn with_setters(selector: Selector, setters: impl IntoIterator<Item = Rc<Setter>>) -> Ref<Self>
    

    Creates a style with a selector and setters.

    Source

    Trait implementations

    Availability

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