Trait drm::buffer::Buffer
[−]
[src]
pub trait Buffer { fn size(&self) -> (u32, u32); fn format(&self) -> PixelFormat; fn pitch(&self) -> u32; fn handle(&self) -> Id; }
Common functionality of all buffers.
Required Methods
fn size(&self) -> (u32, u32)
The width and height of the buffer.
fn format(&self) -> PixelFormat
The format of the buffer.
fn pitch(&self) -> u32
The pitch of the buffer.
fn handle(&self) -> Id
The GEM handle of the buffer.
Implementors
impl Buffer for DumbBuffer