Type Definition libnotcurses_sys::c_api::NcChannel_u32

source ·
pub type NcChannel_u32 = u32;
Expand description

32 bits of context-dependent info containing NcRgb_u32

It’s recommended to use NcChannel instead.

It is composed of:

  • a 24-bit NcRgb_u32 value
  • plus 8 bits divided in:
    • 2 bits of NcAlpha_u32
    • 6 bits of context-dependent info

The context details are documented in NcChannels_u64.

Diagram

~~AA~~~~ RRRRRRRR GGGGGGGG BBBBBBBB

type in C: channel (uint32_t)

See also

Trait Implementations§

source§

impl<'a> From<&'a NcChannel> for &'a NcChannel_u32

source§

fn from(s: &'a NcChannel) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a mut NcChannel> for &'a mut NcChannel_u32

source§

fn from(s: &'a mut NcChannel) -> Self

Converts to this type from the input type.
source§

impl From<NcChannel> for NcChannel_u32

source§

fn from(s: NcChannel) -> Self

Converts to this type from the input type.