pub struct WlBuffer {
pub id: u32,
pub pool_id: u32,
pub offset: u32,
pub width: u32,
pub height: u32,
pub stride: u32,
pub format: PixelFormat,
pub released: bool,
}Expand description
A buffer object referencing pixel data within a WlShmPool.
Fields§
§id: u32Buffer object ID
pool_id: u32Owning pool ID
offset: u32Byte offset into the pool
width: u32Width in pixels
height: u32Height in pixels
stride: u32Bytes per row
format: PixelFormatPixel format
released: boolWhether the compositor has released this buffer back to the client
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WlBuffer
impl RefUnwindSafe for WlBuffer
impl Send for WlBuffer
impl Sync for WlBuffer
impl Unpin for WlBuffer
impl UnwindSafe for WlBuffer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)