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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContainerQuery>
Returns a strong reference to this object.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a container without a query.
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.
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.
query
fn query(self: &Self) -> Option<StyleQuery>
The container's query.
set_query
fn set_query(self: &Self, value: Option<StyleQuery>)
name
fn name(self: &Self) -> Option<String>
The name of the container to query.
set_name
fn set_name(self: &Self, value: Option<String>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeStyleBaseImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ContainerQuery>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyleBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.