Struct multiboot::information::FramebufferTable
source · [−]#[repr(C)]pub struct FramebufferTable {
pub addr: u64,
pub pitch: u32,
pub width: u32,
pub height: u32,
pub bpp: u8,
/* private fields */
}
Expand description
Contains the information about the framebuffer
Fields
addr: u64
pitch: u32
width: u32
height: u32
bpp: u8
Implementations
sourceimpl FramebufferTable
impl FramebufferTable
sourcepub fn new(
addr: u64,
pitch: u32,
width: u32,
height: u32,
bpp: u8,
color_info_type: ColorInfoType
) -> Self
pub fn new(
addr: u64,
pitch: u32,
width: u32,
height: u32,
bpp: u8,
color_info_type: ColorInfoType
) -> Self
Create this table from a color info.
If the type is ColorInfoType::Text
, bpp
has to be 16.
sourcepub fn color_info(&self) -> Option<ColorInfoType>
pub fn color_info(&self) -> Option<ColorInfoType>
Get the color info from this table.
Trait Implementations
sourceimpl Debug for FramebufferTable
impl Debug for FramebufferTable
sourceimpl Default for FramebufferTable
impl Default for FramebufferTable
sourcefn default() -> FramebufferTable
fn default() -> FramebufferTable
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FramebufferTable
impl Send for FramebufferTable
impl Sync for FramebufferTable
impl Unpin for FramebufferTable
impl UnwindSafe for FramebufferTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more