Struct framebuffer::Framebuffer[][src]

pub struct Framebuffer {
    pub device: File,
    pub frame: MmapMut,
    pub var_screen_info: VarScreeninfo,
    pub fix_screen_info: FixScreeninfo,
}
Expand description

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

Fields

device: Fileframe: MmapMutvar_screen_info: VarScreeninfofix_screen_info: FixScreeninfo

Implementations

Writes a frame to the Framebuffer.

Reads a frame from 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!

Allows setting tty mode from non-terminal session by explicitly specifying device name

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.