Struct ncursesw::extend::Colors [−][src]
pub struct Colors { /* fields omitted */ }
Expand description
Foreground and background colors.
Trait Implementations
Return the colors (foreground and background) of the color pair.
Example
extern crate ncursesw;
use ncursesw::*;
use ncursesw::extend::*;
start_color()?;
let blue = Color::Dark(BaseColor::Blue);
let yellow = Color::Dark(BaseColor::Yellow);
let color_pair1 = ColorPair::new(1, Colors::new(blue, yellow))?;
let colors = color_pair1.colors()?;
assert!(colors.foreground() == blue && colors.background() == yellow);
Create a new instance of foreground and background colors.
Foreground color.
Background color.
Auto Trait Implementations
impl RefUnwindSafe for Colors
impl UnwindSafe for Colors
Blanket Implementations
Mutably borrows from an owned value. Read more