Struct astrup::mark::Tick
[−]
[src]
pub struct Tick { /* fields omitted */ }
Tick
Indicator used by an axis to serve as a reference for the displayed data. This can extend to both sides of the mark it is associated with.
Methods
impl Tick
[src]
fn new() -> Tick
[src]
Create and return a new Tick
fn set_width(&mut self, val: f64)
[src]
Set the tick width
fn set_length(&mut self, val: f64)
[src]
Set both the positive and negative tick length
fn set_positive_length(&mut self, val: f64)
[src]
Set the tick positive length
fn set_negative_length(&mut self, val: f64)
[src]
Set the tick negative length
fn set_direction(&mut self, direction: &Coord)
[src]
Set the tick direction
fn set_color(&mut self, color: Rgba)
[src]
Set the tick color
fn set_color_rgb(&mut self, red: f32, green: f32, blue: f32)
[src]
Set the tick color
fn set_color_rgba(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
[src]
Set the tick color
fn color(&self) -> Rgba
[src]
Return the tick color
fn direction(&self) -> Coord
[src]
Return the tick direction
fn width(&self) -> f64
[src]
Return the tick width
fn positive_length(&self) -> f64
[src]
Return the positive tick length
fn negative_length(&self) -> f64
[src]
Return the negative tick length
fn fit(&mut self, mark_frame: Frame)
[src]
Fit the tick to a parent mark frame
fn draw(
&self,
cr: &Context,
fig_rel_height: f64,
fig_rel_width: f64,
x_root: f64,
y_root: f64
)
[src]
&self,
cr: &Context,
fig_rel_height: f64,
fig_rel_width: f64,
x_root: f64,
y_root: f64
)
Draw the tick mark
Trait Implementations
impl Clone for Tick
[src]
fn clone(&self) -> Tick
[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