[][src]Struct linfb::sys::fb_var_screeninfo

#[repr(C)]
pub struct fb_var_screeninfo {
    pub xres: u32,
    pub yres: u32,
    pub xres_virtual: u32,
    pub yres_virtual: u32,
    pub xoffset: u32,
    pub yoffset: u32,
    pub bits_per_pixel: u32,
    pub grayscale: u32,
    pub red: fb_bitfield,
    pub green: fb_bitfield,
    pub blue: fb_bitfield,
    pub transp: fb_bitfield,
    pub nonstd: u32,
    pub activate: u32,
    pub height: u32,
    pub width: u32,
    pub accel_flags: u32,
    pub pixclock: u32,
    pub left_margin: u32,
    pub right_margin: u32,
    pub upper_margin: u32,
    pub lower_margin: u32,
    pub hsync_len: u32,
    pub vsync_len: u32,
    pub sync: u32,
    pub vmode: u32,
    pub rotate: u32,
    pub colorspace: u32,
    pub reserved: [u32; 4],
}

System structure representing variable screen info

Fields

xres: u32

Resolution of screen, X axis

yres: u32

Resolution of screen, Y axis

xres_virtual: u32yres_virtual: u32xoffset: u32yoffset: u32bits_per_pixel: u32

Number of bits per one pixel. Should be 32

grayscale: u32

Is framebuffer grayscale. Should be 0 on modern systems

red: fb_bitfield

Definition of red channel format

green: fb_bitfield

Definition of green channel format

blue: fb_bitfield

Definition of blue channel format

transp: fb_bitfield

Definition of alpha channel format

nonstd: u32activate: u32height: u32

Height of the screen, in mm

width: u32

Width of the screen, in mm

accel_flags: u32pixclock: u32left_margin: u32right_margin: u32upper_margin: u32lower_margin: u32hsync_len: u32vsync_len: u32sync: u32vmode: u32rotate: u32colorspace: u32reserved: [u32; 4]

Methods

impl fb_var_screeninfo[src]

pub fn overall_size(&self) -> usize[src]

Overall size of framebuffer in bytes

Trait Implementations

impl Clone for fb_var_screeninfo[src]

impl Default for fb_var_screeninfo[src]

impl Debug for fb_var_screeninfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

impl<T> Downcast for T where
    T: Any
[src]