Struct astrup::mark::GridLine
[−]
[src]
pub struct GridLine { /* fields omitted */ }
GridLine
Indicator used by axis to serve as a reference for the displayed data
Methods
impl GridLine
[src]
fn new(start: Coord, end: Coord) -> GridLine
[src]
Create and return a new GridLine
fn set_width(&mut self, width: f64)
[src]
Set the line width of a gridline
fn set_color(&mut self, color: Rgba)
[src]
Set the color of a gridline
fn set_color_rgb(&mut self, red: f32, green: f32, blue: f32)
[src]
Set the color of a gridline
fn set_color_rgba(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
[src]
Set the color of a gridline
fn scale_size(&mut self, factor: f64)
[src]
Scale the width of a gridline
fn draw(&self, cr: &Context, fig_rel_height: f64, fig_rel_width: f64)
[src]
Draw the gridline
Trait Implementations
impl Clone for GridLine
[src]
fn clone(&self) -> GridLine
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more