Style
struct · ferroui-base · v0.5.0
struct Style
Defines a style.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Style>
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 style without a selector.
with_selector
fn with_selector(selector: Selector) -> Ref<Self>
Creates a style with a selector.
with_selector_fn
fn with_selector_fn(selector: impl FnOnce(Option<Selector>) -> Selector) -> Ref<Self>
Creates a style whose selector is built by selector.
selector
fn selector(self: &Self) -> Option<Selector>
The style's selector.
set_selector
fn set_selector(self: &Self, value: Option<Selector>)
with_setters
fn with_setters(selector: Selector, setters: impl IntoIterator<Item = Rc<Setter>>) -> Ref<Self>
Creates a style with a selector and setters.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeStyleBaseImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<Style>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyleBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.