pub struct FileFbDevice { /* private fields */ }Expand description
A plain file as a framebuffer: line_length * yres bytes, mapped as a
device’s memory is.
Implementations§
Source§impl FileFbDevice
impl FileFbDevice
Sourcepub fn create(path: &str, var_info: fb_var_screeninfo) -> Result<Self>
pub fn create(path: &str, var_info: fb_var_screeninfo) -> Result<Self>
Creates (or truncates) the file for a framebuffer of the given variable information; the lines have no padding.
Trait Implementations§
Source§impl IFbDevice for FileFbDevice
impl IFbDevice for FileFbDevice
Source§fn get_var_screen_info(&self) -> Result<fb_var_screeninfo>
fn get_var_screen_info(&self) -> Result<fb_var_screeninfo>
FBIOGET_VSCREENINFO.Source§fn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>
fn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>
FBIOPUT_VSCREENINFO.Source§fn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>
fn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>
FBIOGET_FSCREENINFO.Source§fn map(&self, length: usize) -> Result<FbMapping>
fn map(&self, length: usize) -> Result<FbMapping>
Maps
length bytes of the device’s memory for reading and writing.Source§fn wait_for_vsync(&self)
fn wait_for_vsync(&self)
FBIO_WAITFORVSYNC; a device without it returns at once.Auto Trait Implementations§
impl Freeze for FileFbDevice
impl RefUnwindSafe for FileFbDevice
impl Send for FileFbDevice
impl Sync for FileFbDevice
impl Unpin for FileFbDevice
impl UnsafeUnpin for FileFbDevice
impl UnwindSafe for FileFbDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more