Struct astrup::figure::Figure
[−]
[src]
pub struct Figure { /* fields omitted */ }
Methods
impl Figure
[src]
fn new() -> Figure
[src]
fn set_title(self, title: &str) -> Self
[src]
fn set_window_title(&mut self, title: &str)
[src]
Set window title. This is displayed in the window "header", and not in the figure itself.
fn set_height(self, val: usize) -> Self
[src]
fn set_width(self, val: usize) -> Self
[src]
fn set_color(self, color: Rgba) -> Self
[src]
fn set_color_rgb(self, red: f32, green: f32, blue: f32) -> Self
[src]
Set the figure background color
fn set_color_rgba(self, red: f32, green: f32, blue: f32, alpha: f32) -> Self
[src]
Set the figure background color
fn title(&self) -> String
[src]
fn window_title(&self) -> String
[src]
fn height(&self) -> usize
[src]
fn width(&self) -> usize
[src]
fn display_border(self, val: bool) -> Self
[src]
Whether or not to display a border around the figure
fn set_border_color(self, color: Rgba) -> Self
[src]
Set the color of the border around the figure
fn set_border_thickness(self, val: f64) -> Self
[src]
Set the line width of the border around the figure
fn add(self, plot: Plot) -> Self
[src]
fn fit(&mut self) -> Result<(), Error>
[src]
fn save(self, filename: &str) -> Result<Self, Error>
[src]
fn draw(&self, cr: &Context)
[src]
Draw the figure and the subsequent structures