Struct framebuffer::Framebuffer [] [src]

pub struct Framebuffer {
    pub device: File,
    pub frame: Mmap,
    pub var_screen_info: VarScreeninfo,
    pub fix_screen_info: FixScreeninfo,
}

Struct that should be used to work with the framebuffer. Direct usage of frame should not be necessary.

Fields

Methods

impl Framebuffer
[src]

Writes a frame to the Framebuffer.

Creates a FixScreeninfo struct and fills it using ioctl.

Creates a VarScreeninfo struct and fills it using ioctl.

Sets the tty graphics mode. Make sure to change it back to KdMode::Text after the program is done!

Trait Implementations

impl Debug for Framebuffer
[src]

Formats the value using the given formatter.