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 NcCell
s’ 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 NcCell
s underneath it.
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 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more