[−][src]Struct tuikit::canvas::BoundedCanvas
A sub-area of a canvas. It will handle the adjustments of cursor movement, so that you could write to for example (0, 0) and BoundedCanvas will adjust it to real position.
Implementations
impl<'a> BoundedCanvas<'a>
[src]
pub fn new(
top: usize,
left: usize,
width: usize,
height: usize,
canvas: &'a mut dyn Canvas
) -> Self
[src]
top: usize,
left: usize,
width: usize,
height: usize,
canvas: &'a mut dyn Canvas
) -> Self
Trait Implementations
impl<'a> Canvas for BoundedCanvas<'a>
[src]
fn size(&self) -> Result<(usize, usize)>
[src]
fn clear(&mut self) -> Result<()>
[src]
fn put_cell(&mut self, row: usize, col: usize, cell: Cell) -> Result<usize>
[src]
fn set_cursor(&mut self, row: usize, col: usize) -> Result<()>
[src]
fn show_cursor(&mut self, show: bool) -> Result<()>
[src]
fn put_char_with_attr(
&mut self,
row: usize,
col: usize,
ch: char,
attr: Attr
) -> Result<usize>
[src]
&mut self,
row: usize,
col: usize,
ch: char,
attr: Attr
) -> Result<usize>
fn print_with_attr(
&mut self,
row: usize,
col: usize,
content: &str,
attr: Attr
) -> Result<usize>
[src]
&mut self,
row: usize,
col: usize,
content: &str,
attr: Attr
) -> Result<usize>
fn print(&mut self, row: usize, col: usize, content: &str) -> Result<usize>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BoundedCanvas<'a>
impl<'a> !Send for BoundedCanvas<'a>
impl<'a> !Sync for BoundedCanvas<'a>
impl<'a> Unpin for BoundedCanvas<'a>
impl<'a> !UnwindSafe for BoundedCanvas<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,