Struct bootloader::boot_info::FrameBufferInfo
source · #[repr(C)]pub struct FrameBufferInfo {
pub byte_len: usize,
pub horizontal_resolution: usize,
pub vertical_resolution: usize,
pub pixel_format: PixelFormat,
pub bytes_per_pixel: usize,
pub stride: usize,
}
Expand description
Describes the layout and pixel format of a framebuffer.
Fields§
§byte_len: usize
The total size in bytes.
horizontal_resolution: usize
The width in pixels.
vertical_resolution: usize
The height in pixels.
pixel_format: PixelFormat
The color format of each pixel.
bytes_per_pixel: usize
The number of bytes per pixel.
stride: usize
Number of pixels between the start of a line and the start of the next.
Some framebuffers use additional padding at the end of a line, so this
value might be larger than horizontal_resolution
. It is
therefore recommended to use this field for calculating the start address of a line.
Trait Implementations§
source§impl Clone for FrameBufferInfo
impl Clone for FrameBufferInfo
source§fn clone(&self) -> FrameBufferInfo
fn clone(&self) -> FrameBufferInfo
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 FrameBufferInfo
impl Debug for FrameBufferInfo
impl Copy for FrameBufferInfo
Auto Trait Implementations§
impl Freeze for FrameBufferInfo
impl RefUnwindSafe for FrameBufferInfo
impl Send for FrameBufferInfo
impl Sync for FrameBufferInfo
impl Unpin for FrameBufferInfo
impl UnwindSafe for FrameBufferInfo
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