pub type StyleResource = Resource<Style>;Expand description
Style resource.
Aliased Type§
pub struct StyleResource { /* private fields */ }Trait Implementations§
Source§impl StyleResourceExt for StyleResource
impl StyleResourceExt for StyleResource
Source§fn set(
&self,
name: impl Into<ImmutableString>,
property: impl Into<StyleProperty>,
)
fn set( &self, name: impl Into<ImmutableString>, property: impl Into<StyleProperty>, )
Same as
Style::set.Source§fn get<P>(&self, name: impl Into<ImmutableString>) -> Option<P>where
StyleProperty: IntoPrimitive<P>,
fn get<P>(&self, name: impl Into<ImmutableString>) -> Option<P>where
StyleProperty: IntoPrimitive<P>,
Same as
Style::get.Source§fn get_or<P>(&self, name: impl Into<ImmutableString>, default: P) -> Pwhere
StyleProperty: IntoPrimitive<P>,
fn get_or<P>(&self, name: impl Into<ImmutableString>, default: P) -> Pwhere
StyleProperty: IntoPrimitive<P>,
Same as
Style::get_or.Source§fn get_or_default<P>(&self, name: impl Into<ImmutableString>) -> P
fn get_or_default<P>(&self, name: impl Into<ImmutableString>) -> P
Same as
Style::get_or_default.Source§fn property<P>(&self, name: impl Into<ImmutableString>) -> StyledProperty<P>
fn property<P>(&self, name: impl Into<ImmutableString>) -> StyledProperty<P>
Same as
Style::property.