Struct early_printer::EarlyFramebufferPrinter
source · pub struct EarlyFramebufferPrinter {
pub paddr: PhysicalAddress,
pub width: u32,
pub height: u32,
pub stride: u32,
pub format: FramebufferFormat,
/* private fields */
}
Expand description
A text printer for writing characters to an early graphical framebuffer.
Fields§
§paddr: PhysicalAddress
The starting physical address of the framebuffer.
width: u32
The width in pixels of the framebuffer.
height: u32
The height in pixels of the framebuffer.
stride: u32
The stride in pixels of the framebuffer.
format: FramebufferFormat
The format of this framebuffer.
Implementations§
source§impl EarlyFramebufferPrinter
impl EarlyFramebufferPrinter
sourcepub fn into_mapping(self) -> Option<BorrowedSliceMappedPages<u32, Mutable>>
pub fn into_mapping(self) -> Option<BorrowedSliceMappedPages<u32, Mutable>>
Returns the memory mapping for the underlying framebuffer, allowing it to be reused.
sourcepub fn print_char(
&mut self,
ch: char,
foreground_pixel_color: u32,
background_pixel_color: u32
)
pub fn print_char( &mut self, ch: char, foreground_pixel_color: u32, background_pixel_color: u32 )
Prints the given character to the current location in this framebuffer.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EarlyFramebufferPrinter
impl Send for EarlyFramebufferPrinter
impl Sync for EarlyFramebufferPrinter
impl Unpin for EarlyFramebufferPrinter
impl !UnwindSafe for EarlyFramebufferPrinter
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