pub struct Config {
pub width: u32,
pub height: u32,
pub fourcc: u32,
pub bpp: u32,
pub add_fb: bool,
}Expand description
How a dumb buffer should be allocated.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
fourcc: u32DRM FourCC.
bpp: u32Bits per pixel the kernel uses to size the allocation. Must match the format.
add_fb: boolWhether to register a KMS framebuffer after allocating.
Set false for the legacy drmModeSetCursor path, which consumes the
raw GEM handle and needs no framebuffer id.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more