#[repr(C)]
pub struct FrameBufferInfo { pub byte_len: usize, pub horizontal_resolution: usize, pub vertical_resolution: usize, pub pixel_format: PixelFormat, pub bytes_per_pixel: usize, pub stride: usize, }
Expand description

Describes the layout and pixel format of a framebuffer.

Fields

byte_len: usize

The total size in bytes.

horizontal_resolution: usize

The width in pixels.

vertical_resolution: usize

The height in pixels.

pixel_format: PixelFormat

The color format of each pixel.

bytes_per_pixel: usize

The number of bytes per pixel.

stride: usize

Number of pixels between the start of a line and the start of the next.

Some framebuffers use additional padding at the end of a line, so this value might be larger than horizontal_resolution. It is therefore recommended to use this field for calculating the start address of a line.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.