Struct ncursesw::normal::ColorPair [−][src]
pub struct ColorPair { /* fields omitted */ }
Expand description
A color pair comprising of a foreground and background color.
Implementations
Safety
Set the screen of the ColorPair
.
Use with caution!!! This function only need’s to be used if using the screen type
functions and is provided to allow the alignment of the screen pointer with the
screen that the ColorPair
are for as this crate will apply a screen of None
by default when retriving Attributes
from functions such as attr_get()
and
wattr_get()
.
Trait Implementations
Implement the | operator for combining a ColorPair
and an Attribute
to produce Attributes
Implement the | operator for setting a ColorPair
on a Attributes
.
Note: as only one color pair can be applied to attributes at any one time any previously Or’d color_pair will be Xor’d out of the attributes before Or’ing the new color pair.
Implement the ^ operator for removing a ColorPair
on a Attributes
.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ColorPair
impl UnwindSafe for ColorPair
Blanket Implementations
Mutably borrows from an owned value. Read more