pub enum LayerConfig {
Color {
color: Color,
},
Primary {
image_id: ImageId,
image_metadata: ImageMetadata,
unblock_event: Option<EventId>,
},
}
Expand description
LayerConfig is a variant type of the two distinct layer configuration types that are supported by the display driver: Primary and Color.
Variants§
Color
A color layer contains a single color.
Primary
A primary layer is draws its pixels from a sysmem buffer backed image and supports various transofmations.
Fields
§
image_id: ImageId
The ID of the image that should be assigned to the primary layer. See the image
mod
in this crate to negotiate an image buffer with the display driver that can be used in
this configuration.
§
image_metadata: ImageMetadata
Describes the dimensions, pixel format, and usage of the layer image.
Trait Implementations§
Source§impl Clone for LayerConfig
impl Clone for LayerConfig
Source§fn clone(&self) -> LayerConfig
fn clone(&self) -> LayerConfig
Returns a copy of the value. Read more
1.0.0 · Source§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 LayerConfig
impl RefUnwindSafe for LayerConfig
impl Send for LayerConfig
impl Sync for LayerConfig
impl Unpin for LayerConfig
impl UnwindSafe for LayerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)