Struct chargrid_runtime::FrameBuffer
source · [−]pub struct FrameBuffer { /* private fields */ }
Implementations
sourceimpl FrameBuffer
impl FrameBuffer
pub fn new(size: Size) -> FrameBuffer
pub fn size(&self) -> Size
pub fn resize(&mut self, size: Size)
pub fn clear_with_background(&mut self, background: Rgba32)
pub fn clear(&mut self)
pub fn enumerate(&self) -> Zip<CoordIterRowMajor, Iter<'_, FrameBufferCell>>
pub fn iter(&self) -> Iter<'_, FrameBufferCell>
pub fn rows(&self) -> Chunks<'_, FrameBufferCell>
pub fn set_cell(&mut self, coord: Coord, depth: i8, render_cell: RenderCell)
pub fn default_ctx<'a>(&self) -> Ctx<'a>
pub fn set_cell_relative_to_ctx(
&mut self,
ctx: Ctx<'a>,
coord: Coord,
depth: i8,
render_cell: RenderCell
)
Auto Trait Implementations
impl RefUnwindSafe for FrameBuffer
impl Send for FrameBuffer
impl Sync for FrameBuffer
impl Unpin for FrameBuffer
impl UnwindSafe for FrameBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more