Function ncursesw::PAIR_NUMBER [−][src]
pub fn PAIR_NUMBER(attrs: Attributes) -> ColorPair
Expand description
Extract the color pair from normal attributes.
Example
let colors1 = Colors::new(Color::Red, Color::Black);
let color_pair1 = ColorPair::new(colors1)?;
let attributes = Attribute::Dim | color_pair1;
assert!(PAIR_NUMBER(attributes) == color_pair1);