FbVarScreenInfo

Struct FbVarScreenInfo 

Source
#[repr(C)]
pub struct FbVarScreenInfo {
Show 29 fields 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: FbBitfield, pub green: FbBitfield, pub blue: FbBitfield, pub transp: FbBitfield, 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],
}
Expand description

Variable screen information structure (Linux fb_var_screeninfo compatible)

Fields§

§xres: u32

Visible resolution width

§yres: u32

Visible resolution height

§xres_virtual: u32

Virtual resolution width

§yres_virtual: u32

Virtual resolution height

§xoffset: u32

Offset from virtual to visible resolution

§yoffset: u32

Offset from virtual to visible resolution

§bits_per_pixel: u32

Bits per pixel

§grayscale: u32

Grayscale != 0 means graylevels instead of colors

§red: FbBitfield

Red bitfield

§green: FbBitfield

Green bitfield

§blue: FbBitfield

Blue bitfield

§transp: FbBitfield

Transparency bitfield

§nonstd: u32

Non-zero if not grayscale

§activate: u32

Activate settings

§height: u32

Screen height in mm

§width: u32

Screen width in mm

§accel_flags: u32

Acceleration flags

§pixclock: u32

Pixel clock in picoseconds

§left_margin: u32

Time from sync to picture

§right_margin: u32

Time from picture to sync

§upper_margin: u32

Time from sync to picture

§lower_margin: u32

Time from picture to sync

§hsync_len: u32

Length of horizontal sync

§vsync_len: u32

Length of vertical sync

§sync: u32

Sync flags

§vmode: u32

Video mode flags

§rotate: u32

Rotation angle (0=normal, 1=90°, 2=180°, 3=270°)

§colorspace: u32

Color space for frame buffer

§reserved: [u32; 4]

Reserved for future use

Trait Implementations§

Source§

impl Clone for FbVarScreenInfo

Source§

fn clone(&self) -> FbVarScreenInfo

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FbVarScreenInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FbVarScreenInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for FbVarScreenInfo

Auto Trait Implementations§

§

impl Freeze for FbVarScreenInfo

§

impl RefUnwindSafe for FbVarScreenInfo

§

impl Send for FbVarScreenInfo

§

impl Sync for FbVarScreenInfo

§

impl Unpin for FbVarScreenInfo

§

impl UnwindSafe for FbVarScreenInfo

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.