Struct cursive::theme::ColorPair
[−]
[src]
pub struct ColorPair { pub front: Color, pub back: Color, }
Combines a front and back color.
Fields
front: Color
Color used for the foreground.
back: Color
Color used for the background.
Methods
impl ColorPair
[src]
fn invert(&self) -> Self
Return an inverted color pair.
With swapped front abd back color.
fn from_256colors(front: u8, back: u8) -> Self
Creates a new color pair from color IDs.
Trait Implementations
impl Clone for ColorPair
[src]
fn clone(&self) -> ColorPair
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ColorPair
[src]
impl Debug for ColorPair
[src]
impl PartialEq for ColorPair
[src]
fn eq(&self, __arg_0: &ColorPair) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColorPair) -> bool
This method tests for !=
.