StyleResource

Type Alias StyleResource 

Source
pub type StyleResource = Resource<Style>;
Expand description

Style resource.

Aliased Type§

pub struct StyleResource { /* private fields */ }

Trait Implementations§

Source§

impl StyleResourceExt for StyleResource

Source§

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>

Same as Style::get.
Source§

fn get_or<P>(&self, name: impl Into<ImmutableString>, default: P) -> P

Same as Style::get_or.
Source§

fn get_or_default<P>(&self, name: impl Into<ImmutableString>) -> P

Source§

fn property<P>(&self, name: impl Into<ImmutableString>) -> StyledProperty<P>