Trait SizeDesc
plotters::style
pub trait SizeDesc { fn in_pixels<T: HasDimension>(&self, parent: &T) -> i32; }
The trait that describes a size, it may be a relative size which the size is determined by the parent size, e.g., 10% of the parent width
fn in_pixels<T: HasDimension>(&self, parent: &T) -> i32
Convert the size into the number of pixels
parent
impl SizeDesc for i32
fn in_pixels<D: HasDimension>(&self, _parent: &D) -> i32
impl SizeDesc for u32
impl SizeDesc for f32
impl SizeDesc for f64
impl SizeDesc for RelativeSize
fn in_pixels<D: HasDimension>(&self, parent: &D) -> i32