pub struct DrmFramebuffer {
pub fb_id: u32,
pub width: u32,
pub height: u32,
pub pitch: u32,
pub offset: u32,
pub format: PixelFormat,
pub gem_handle: u32,
}Expand description
DRM framebuffer object
Fields§
§fb_id: u32§width: u32Width in pixels
height: u32Height in pixels
pitch: u32Pitch (bytes per row)
offset: u32Byte offset into the buffer
format: PixelFormatPixel format
gem_handle: u32GEM handle for backing buffer
Implementations§
Source§impl DrmFramebuffer
impl DrmFramebuffer
pub fn new( fb_id: u32, width: u32, height: u32, format: PixelFormat, gem_handle: u32, ) -> Self
Trait Implementations§
Source§impl Clone for DrmFramebuffer
impl Clone for DrmFramebuffer
Source§fn clone(&self) -> DrmFramebuffer
fn clone(&self) -> DrmFramebuffer
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DrmFramebuffer
impl RefUnwindSafe for DrmFramebuffer
impl Send for DrmFramebuffer
impl Sync for DrmFramebuffer
impl Unpin for DrmFramebuffer
impl UnwindSafe for DrmFramebuffer
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)