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
device: File
frame: Mmap
var_screen_info: VarScreeninfo
fix_screen_info: FixScreeninfo
Methods
impl Framebuffer[src]
impl Framebufferpub fn new<P: AsRef<Path>>(
path_to_device: P
) -> Result<Framebuffer, FramebufferError>[src]
pub fn new<P: AsRef<Path>>(
path_to_device: P
) -> Result<Framebuffer, FramebufferError>pub fn write_frame(&mut self, frame: &[u8])[src]
pub fn write_frame(&mut self, frame: &[u8])Writes a frame to the Framebuffer.
pub fn get_fix_screeninfo(
device: &File
) -> Result<FixScreeninfo, FramebufferError>[src]
pub fn get_fix_screeninfo(
device: &File
) -> Result<FixScreeninfo, FramebufferError>Creates a FixScreeninfo struct and fills it using ioctl.
pub fn get_var_screeninfo(
device: &File
) -> Result<VarScreeninfo, FramebufferError>[src]
pub fn get_var_screeninfo(
device: &File
) -> Result<VarScreeninfo, FramebufferError>Creates a VarScreeninfo struct and fills it using ioctl.
pub fn put_var_screeninfo(
device: &File,
screeninfo: &VarScreeninfo
) -> Result<i32, FramebufferError>[src]
pub fn put_var_screeninfo(
device: &File,
screeninfo: &VarScreeninfo
) -> Result<i32, FramebufferError>pub fn set_kd_mode(kd_mode: KdMode) -> Result<i32, FramebufferError>[src]
pub fn set_kd_mode(kd_mode: KdMode) -> Result<i32, FramebufferError>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]
impl Debug for FramebufferAuto Trait Implementations
impl Send for Framebuffer
impl Send for Framebufferimpl Sync for Framebuffer
impl Sync for Framebuffer