Enum libnotcurses_sys::NcAlpha
source · #[repr(u32)]
pub enum NcAlpha {
Blend,
HighContrast,
Opaque,
Transparent,
}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
Indicates NcCell’s foreground or background color will be a
composite between its color and the NcCells’ corresponding colors
underneath it.
HighContrast
Indicates the foreground color will be high-contrast, relative to the computed background.
Background cannot be high-contrast.
Opaque
Indicates NcCell’s foreground or background color is used unchanged.
Transparent
Indicates NcCell’s foreground or background color is derived
entirely from the NcCells 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.