pub struct SoftwareRasterizer { /* private fields */ }Expand description
CPU rendering. Glyphs are rasterized once and blended into their cells, so text stays locked to the grid and a row costs little more than a copy.
Implementations§
Source§impl SoftwareRasterizer
impl SoftwareRasterizer
Sourcepub fn new(cell_width: usize, cell_height: usize) -> Option<Self>
pub fn new(cell_width: usize, cell_height: usize) -> Option<Self>
The fonts ship in the binary, because pixels are drawn on the remote host over SSH and servers rarely have any. Returns None only when the cell size is unknown.
Sourcepub fn with_type_row(self, rows: usize) -> Self
pub fn with_type_row(self, rows: usize) -> Self
Takes the size of words, icons and controls from a row of rows pixels instead of
this one’s own height. Where Cellix lays out rows taller than the terminal’s line,
what stands in a row stays the size it is and the row gives it air.
Trait Implementations§
Source§impl Rasterizer for SoftwareRasterizer
impl Rasterizer for SoftwareRasterizer
Auto Trait Implementations§
impl !Freeze for SoftwareRasterizer
impl !RefUnwindSafe for SoftwareRasterizer
impl !Send for SoftwareRasterizer
impl !Sync for SoftwareRasterizer
impl !UnwindSafe for SoftwareRasterizer
impl Forget for SoftwareRasterizer
impl Move for SoftwareRasterizer
impl Unpin for SoftwareRasterizer
impl UnsafeUnpin for SoftwareRasterizer
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