Struct terminal_graphics::graphics::container::Container
[−]
[src]
pub struct Container<'a> { /* fields omitted */ }
The Container graphic can be placed anywhere in the Display and holds a Graphic.
A Graphic within the container is drawn in the coordinates relative to the container.
Methods
impl<'a> Container<'a>
[src]
pub fn new() -> Container<'static>
[src]
Create an empty Container
pub fn from(
pos_x: isize,
pos_y: isize,
width: isize,
height: isize,
graphic: &'a mut Graphic,
border: Colour,
background: Colour
) -> Container
[src]
pos_x: isize,
pos_y: isize,
width: isize,
height: isize,
graphic: &'a mut Graphic,
border: Colour,
background: Colour
) -> Container
Create a Container