Struct limn_core::style::DrawStyle
[−]
[src]
pub struct DrawStyle { pub style: Option<Box<DrawComponentStyle>>, pub selector: Option<LinkedHashMap<PropSet, Box<DrawComponentStyle>>>, pub class: Option<String>, pub type_id: TypeId, }
Fields
style: Option<Box<DrawComponentStyle>>
selector: Option<LinkedHashMap<PropSet, Box<DrawComponentStyle>>>
class: Option<String>
type_id: TypeId
Methods
impl DrawStyle
[src]
pub fn new<D: Draw + Component + 'static, T: ComponentStyle<Component = D> + Debug + Send + 'static>(
style: T
) -> Self
[src]
style: T
) -> Self
pub fn from_class<T: 'static>(class: &str) -> Self
[src]
pub fn prop_style<D: Draw + Component + 'static, T: ComponentStyle<Component = D> + Debug + Send + 'static>(
&mut self,
props: PropSet,
style: T
)
[src]
&mut self,
props: PropSet,
style: T
)
pub fn set_class(&mut self, class: &str)
[src]
ⓘImportant traits for Box<I>pub fn resolve(&self, props: PropSet) -> Box<DrawComponentStyle>
[src]
ⓘImportant traits for Box<I>
pub fn merge(&mut self, other: DrawStyle)
[src]
Trait Implementations
impl Debug for DrawStyle
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more