Struct drm::mode::Fb [] [src]

pub struct Fb { /* fields omitted */ }

Fb is the DRM representation of frame buffer.

Either crated by a DRM api, or imported from:

Methods

impl Fb
[src]

Add a frame buffer using a GEM handle.

  • handle: A gem handle
  • (width, height): The width and height in pixels.
  • bpp: Bit's per pixel (Eg: 32)
  • pitch: Offset between the start of each row in bytes. (ie. width + padding)
  • depth: Color depth. (Eg: 24)

There is an Api for FbAdd2, which allows for mulit-plane buffers and more useful color format selection.

Remove the frame buffer from DRM.

This will not happen automatically as the Fb object is not a real representation of the Frame buffer, but a struct containing metadata about it.

TODO: It might be a good idea to create a real RAII type for Fb.

Trait Implementations

impl Debug for Fb
[src]

Formats the value using the given formatter.

impl Clone for Fb
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Fb
[src]

impl PartialEq for Fb
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Fb
[src]

impl Hash for Fb
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Resource for Fb
[src]