Struct view::RenderContext
source · pub struct RenderContext { /* private fields */ }
Expand description
Represents data associated with rendering content.
Implementations§
source§impl RenderContext
impl RenderContext
sourcepub const fn new(width: usize, height: usize) -> Self
pub const fn new(width: usize, height: usize) -> Self
Create a new instance with a width and height.
sourcepub const fn is_minimum_view_width(&self) -> bool
pub const fn is_minimum_view_width(&self) -> bool
Is the terminal window width at least the minimal supported width.
sourcepub const fn is_minimum_view_height(&self) -> bool
pub const fn is_minimum_view_height(&self) -> bool
Is the terminal window height at least the minimal supported height.
sourcepub const fn is_full_width(&self) -> bool
pub const fn is_full_width(&self) -> bool
Is the terminal window large enough to render lines using their full width.
sourcepub const fn is_window_too_small(&self) -> bool
pub const fn is_window_too_small(&self) -> bool
Is the terminal window too small to render content.
Trait Implementations§
source§impl Clone for RenderContext
impl Clone for RenderContext
source§fn clone(&self) -> RenderContext
fn clone(&self) -> RenderContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RenderContext
impl Debug for RenderContext
impl Copy for RenderContext
Auto Trait Implementations§
impl RefUnwindSafe for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnwindSafe for RenderContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more