[−][src]Trait termpixels::core::Renderable
Required methods
fn position(&self) -> &Location
fn set_position(&mut self, location: &Location)
fn size(&self) -> &Size
fn ascii_for(&self, location: &Location) -> char
fn style_for(&self, location: &Location) -> Style
fn on_event(&mut self, event: Event) -> Result<()>
Provided methods
fn center(&self) -> Location
fn is_center(&self, location: &Location) -> bool
fn set_center(&mut self, location: &Location)
fn top_left_corner(&self) -> Location
fn is_top_left_corner(&self, location: &Location) -> bool
fn bottom_left_corner(&self) -> Location
fn is_bottom_left_corner(&self, location: &Location) -> bool
fn top_right_corner(&self) -> Location
fn is_top_right_corner(&self, location: &Location) -> bool
fn bottom_right_corner(&self) -> Location
fn is_bottom_right_corner(&self, location: &Location) -> bool
fn is_corner(&self, location: &Location) -> bool
fn left_boundary(&self) -> u16
fn is_left_boundary(&self, location: &Location) -> bool
fn top_boundary(&self) -> u16
fn is_top_boundary(&self, location: &Location) -> bool
fn bottom_boundary(&self) -> u16
fn is_bottom_boundary(&self, location: &Location) -> bool
fn right_boundary(&self) -> u16
fn is_right_boundary(&self, location: &Location) -> bool
fn is_boundary(&self, location: &Location) -> bool
fn covers(&self, location: &Location) -> bool
fn paint(
&self,
stdout: &mut RawTerminal<Stdout>,
location: Location
) -> Result<()>
&self,
stdout: &mut RawTerminal<Stdout>,
location: Location
) -> Result<()>
fn paint_all(&self, stdout: &mut RawTerminal<Stdout>) -> Result<()>
fn clear(
&self,
stdout: &mut RawTerminal<Stdout>,
location: Location
) -> Result<()>
&self,
stdout: &mut RawTerminal<Stdout>,
location: Location
) -> Result<()>
fn clear_all(&self, stdout: &mut RawTerminal<Stdout>) -> Result<()>
fn render<R: Read>(
&mut self,
stdout: &mut RawTerminal<Stdout>,
events: &mut Events<R>
) -> Result<()>
&mut self,
stdout: &mut RawTerminal<Stdout>,
events: &mut Events<R>
) -> Result<()>