#[non_exhaustive]pub struct SelectedPlane {
pub plane_id: u32,
pub path: PlanePath,
pub cursor_max_w: u32,
pub cursor_max_h: u32,
pub fourcc: u32,
pub legacy_plane_id: u32,
}Expand description
The plane a cursor will use.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.plane_id: u32The plane’s KMS id, or 0 on the legacy path, which addresses the CRTC
rather than a plane.
path: PlanePathHow it will be driven.
cursor_max_w: u32The plane’s maximum cursor width, when it advertises one.
cursor_max_h: u32The plane’s maximum cursor height, when it advertises one.
fourcc: u32The FourCC the cursor buffer is allocated and drawn in.
Not always ARGB8888. Tegra’s cursor plane advertises RGBA8888 and
nothing else, and a plane that differs only in channel order is
perfectly able to carry a cursor – see CURSOR_FORMATS.
legacy_plane_id: u32On the legacy path, the CRTC’s cursor plane the legacy ioctls drive
when RendererConfig::prefer_legacy
chose them over it; 0 otherwise.
Trait Implementations§
Source§impl Clone for SelectedPlane
impl Clone for SelectedPlane
impl Copy for SelectedPlane
Source§impl Debug for SelectedPlane
impl Debug for SelectedPlane
impl Eq for SelectedPlane
Source§impl PartialEq for SelectedPlane
impl PartialEq for SelectedPlane
impl StructuralPartialEq for SelectedPlane
Auto Trait Implementations§
impl Freeze for SelectedPlane
impl RefUnwindSafe for SelectedPlane
impl Send for SelectedPlane
impl Sync for SelectedPlane
impl Unpin for SelectedPlane
impl UnsafeUnpin for SelectedPlane
impl UnwindSafe for SelectedPlane
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