#[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
Auto Trait Implementations§
impl Freeze for FramebufferTable
impl RefUnwindSafe for FramebufferTable
impl Send for FramebufferTable
impl Sync for FramebufferTable
impl Unpin for FramebufferTable
impl UnwindSafe for FramebufferTable
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