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
sourceimpl NcAlpha
impl NcAlpha
sourcepub fn display_short(&self) -> &str
pub fn display_short(&self) -> &str
Displays the short name identifier of the alpha value.
Trait Implementations
sourceimpl From<NcAlpha> for NcAlpha_u32
impl From<NcAlpha> for NcAlpha_u32
sourceimpl From<u32> for NcAlpha
impl From<u32> for NcAlpha
sourcefn from(alpha: NcAlpha_u32) -> Self
fn from(alpha: NcAlpha_u32) -> Self
Converts to this type from the input type.
impl Copy for NcAlpha
impl Eq for NcAlpha
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more