[−][src]Trait jss::traits::TStyleContext
Manipulate runtime context of current style - work with active element dimensions, set variables for runtime calculation and other data needed in runtime
Required Methods
fn set_dimension(&mut self, _: DimensionType, _: Option<Dimensions>)
Set dimensions with size and position node on layout
fn set_variable(&mut self, _: String, _: Variable)
Set variables for runtime calculator after apply you can use that var inside calc expression
fn set_variables<T>(&mut self, _: T) where
T: IntoIterator<Item = (String, Variable)>,
T: IntoIterator<Item = (String, Variable)>,
The same thing as set_variable
but for enumeration items
Implementors
impl TStyleContext for Context
[src]
impl TStyleContext for Context
fn set_dimension(
&mut self,
entry_type: DimensionType,
dimension: Option<Dimension>
)
[src]
fn set_dimension(
&mut self,
entry_type: DimensionType,
dimension: Option<Dimension>
)
fn set_variable(&mut self, name: String, value: Variable)
[src]
fn set_variable(&mut self, name: String, value: Variable)
fn set_variables<T>(&mut self, variables: T) where
T: IntoIterator<Item = (String, Variable)>,
[src]
fn set_variables<T>(&mut self, variables: T) where
T: IntoIterator<Item = (String, Variable)>,