Struct astrup::view::View
[−]
[src]
pub struct View { /* fields omitted */ }
A struct used to display the figure(s) on screen.
Currently, this is just a window with a title bar and an exit cross. One window is made for each figure. If you resize the window after it has been launched, the figure stays intact, e.i. no resizing of the figure. This can change in the future, but has low priority.
Methods
impl View
[src]
fn new() -> Result<View, Error>
[src]
Create and return a new View
fn new_from(figure: Figure) -> Result<View, Error>
[src]
Create and return a new View from an existing Figure
fn add(self, figure: Figure) -> Result<Self, Error>
[src]
Add figures to be displayed
fn show(self)
[src]
Display the figures on the screen. This must be called in order to display anything.