Lines Matching full:properties
12 /// Properties of the coordinate axes
14 pub struct Properties { struct
15 grids: map::grid::Map<grid::Properties>, argument
24 impl Default for Properties { argument
25 fn default() -> Properties { in default()
26 Properties { in default()
38 impl Properties { impl
42 pub fn hide(&mut self) -> &mut Properties { in hide() argument
50 pub fn show(&mut self) -> &mut Properties { in show() argument
56 impl Configure<Grid> for Properties { implementation
57 type Properties = grid::Properties; typedef
60 fn configure<F>(&mut self, grid: Grid, configure: F) -> &mut Properties in configure()
62 F: FnOnce(&mut grid::Properties) -> &mut grid::Properties, in configure() argument
67 let mut properties = Default::default(); in configure() localVariable
68 configure(&mut properties); in configure()
69 self.grids.insert(grid, properties); in configure()
76 impl Set<Label> for Properties { implementation
78 fn set(&mut self, label: Label) -> &mut Properties { in set() argument
84 impl Set<Range> for Properties { implementation
88 fn set(&mut self, range: Range) -> &mut Properties { in set() argument
100 impl Set<Scale> for Properties { implementation
104 fn set(&mut self, scale: Scale) -> &mut Properties { in set() argument
116 impl Set<ScaleFactor> for Properties { implementation
123 fn set(&mut self, factor: ScaleFactor) -> &mut Properties { in set() argument
130 impl<P, L> Set<TicLabels<P, L>> for Properties implementation
138 fn set(&mut self, tics: TicLabels<P, L>) -> &mut Properties { in set() argument
157 impl<'a> Script for (Axis, &'a Properties) { implementation
159 let &(axis, properties) = self; in script()
162 let mut script = if properties.hidden { in script()
168 if let Some(ref tics) = properties.tics { in script()
174 if let Some(ref label) = properties.label { in script()
178 if let Some((low, high)) = properties.range { in script()
182 if properties.logarithmic { in script()
186 for (grid, properties) in properties.grids.iter() { in script()
187 script.push_str(&(axis, grid, properties).script()); in script()
194 impl crate::ScaleFactorTrait for Properties { implementation