Enum smithay_client_toolkit::output::Subpixel
source · #[non_exhaustive]#[repr(u32)]pub enum Subpixel {
Unknown = 0,
None = 1,
HorizontalRgb = 2,
HorizontalBgr = 3,
VerticalRgb = 4,
VerticalBgr = 5,
}
Expand description
subpixel geometry information
This enumeration describes how the physical pixels on an output are laid out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown = 0
unknown geometry
None = 1
no geometry
HorizontalRgb = 2
horizontal RGB
HorizontalBgr = 3
horizontal BGR
VerticalRgb = 4
vertical RGB
VerticalBgr = 5
vertical BGR
Implementations§
Trait Implementations§
source§impl PartialEq for Subpixel
impl PartialEq for Subpixel
impl Copy for Subpixel
impl StructuralPartialEq for Subpixel
Auto Trait Implementations§
impl RefUnwindSafe for Subpixel
impl Send for Subpixel
impl Sync for Subpixel
impl Unpin for Subpixel
impl UnwindSafe for Subpixel
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