FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContainerQuery

    struct · ferroui-base · v0.5.0

    struct ContainerQuery
    

    Defines a container: a set of styles that apply while a query on an ancestor container of the control matches.

    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<ContainerQuery>
    

    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 container without a query.

    Source

    with_query

    fn with_query(query: StyleQuery, container_name: Option<String>) -> Ref<Self>
    

    Creates a container with a query and, optionally, the name of the container to query.

    Source

    with_query_fn

    fn with_query_fn(query: impl FnOnce(Option<StyleQuery>) -> StyleQuery, container_name: Option<String>) -> Ref<Self>
    

    Creates a container from a function that builds its query and, optionally, the name of the container to query.

    Source

    query

    fn query(self: &Self) -> Option<StyleQuery>
    

    The container's query.

    Source

    set_query

    fn set_query(self: &Self, value: Option<StyleQuery>)
    

    Source

    name

    fn name(self: &Self) -> Option<String>
    

    The name of the container to query.

    Source

    set_name

    fn set_name(self: &Self, value: Option<String>)
    

    Source

    Trait implementations

    Availability

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