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§
source§impl 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§
source§impl Debug for FramebufferTable
impl Debug for FramebufferTable
source§impl Default for FramebufferTable
impl Default for FramebufferTable
source§fn default() -> FramebufferTable
fn default() -> FramebufferTable
Returns the “default value” for a type. Read more