Enum libnotcurses_sys::NcAlpha
source · #[repr(u32)]pub enum NcAlpha {
Blend = 268_435_456,
HighContrast = 805_306_368,
Opaque = 0,
Transparent = 536_870_912,
}
Expand description
Alpha information, part of an NcChannel
,
applies to NcCell
’s foreground or background color.
§Default:
§Diagram
Internally it’s 2 bits of alpha, surrounded by context dependent bits:
~~AA~~~~ -------- -------- --------
See also: NcChannels
for more context information.
Variants§
Blend = 268_435_456
Indicates NcCell
’s foreground or background color will be a
composite between its color and the NcCell
s’ corresponding colors
underneath it.
HighContrast = 805_306_368
Indicates the foreground color will be high-contrast, relative to the computed background.
Background cannot be high-contrast.
Opaque = 0
Indicates NcCell
’s foreground or background color is used unchanged.
Transparent = 536_870_912
Indicates NcCell
’s foreground or background color is derived
entirely from the NcCell
s underneath it.
Implementations§
Trait Implementations§
source§impl From<NcAlpha> for NcAlpha_u32
impl From<NcAlpha> for NcAlpha_u32
source§impl From<u32> for NcAlpha
impl From<u32> for NcAlpha
source§fn from(alpha: NcAlpha_u32) -> Self
fn from(alpha: NcAlpha_u32) -> Self
Converts to this type from the input type.
source§impl PartialEq for NcAlpha
impl PartialEq for NcAlpha
impl Copy for NcAlpha
impl Eq for NcAlpha
impl StructuralPartialEq for NcAlpha
Auto Trait Implementations§
impl RefUnwindSafe for NcAlpha
impl Send for NcAlpha
impl Sync for NcAlpha
impl Unpin for NcAlpha
impl UnwindSafe for NcAlpha
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