[][src]Trait jss::traits::TStyleContext

pub trait TStyleContext: Debug + PartialEq + Clone {
    fn set_dimension(&mut self, _: DimensionType, _: Option<Dimensions>);
fn set_variable(&mut self, _: String, _: Variable);
fn set_variables<T>(&mut self, _: T)
    where
        T: IntoIterator<Item = (String, Variable)>
; }

Manipulate runtime context of current style - work with active element dimensions, set variables for runtime calculation and other data needed in runtime

Required Methods

Set dimensions with size and position node on layout

Set variables for runtime calculator after apply you can use that var inside calc expression

The same thing as set_variable but for enumeration items

Implementors

impl TStyleContext for Context
[src]