[−][src]Struct stivale::framebuffer::FramebufferInfo
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,