Trait Buffer

Source
pub trait Buffer {
    // Required methods
    fn size(&self) -> (u32, u32);
    fn format(&self) -> DrmFourcc;
    fn pitch(&self) -> u32;
    fn handle(&self) -> Handle;
}
Expand description

Common functionality of all regular buffers.

Required Methods§

Source

fn size(&self) -> (u32, u32)

The width and height of the buffer.

Source

fn format(&self) -> DrmFourcc

The format of the buffer.

Source

fn pitch(&self) -> u32

The pitch of the buffer.

Source

fn handle(&self) -> Handle

The handle to the buffer.

Implementors§

Source§

impl Buffer for DumbBuffer

impl<T: 'static> Buffer for BufferObject<T>

impl Buffer for GbmBuffer