[][src]Struct stivale::framebuffer::FramebufferInfo

#[repr(packed)]pub struct FramebufferInfo { /* fields omitted */ }

The framebuffer info passed by the bootloader and based on the configuration in the stivale header

May be in an undefined state if a textual framebuffer is configured

Implementations

impl FramebufferInfo[src]

pub fn start_address(&self) -> usize[src]

Get the start address of the framebuffer

pub fn end_address(&self) -> usize[src]

Get the end address of the framebuffer

Identical to framebuffer_info.start_address() + framebuffer_info.size()

pub fn size(&self) -> usize[src]

Get the size of the framebuffer

pub fn width(&self) -> u16[src]

Get the width of the framebuffer in pixels

pub fn height(&self) -> u16[src]

Get the height of the framebuffer in pixels

pub fn pitch(&self) -> u16[src]

Get the bytes per line of the framebuffer

pub fn bpp(&self) -> u16[src]

Get the bits per pixel of the framebuffer

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.