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]
pub fn invert(&self) -> Self
[src]
Return an inverted color pair.
With swapped front abd back color.
pub fn from_256colors(front: u8, back: u8) -> Self
[src]
Creates a new color pair from color IDs.
Trait Implementations
impl Clone for ColorPair
[src]
fn clone(&self) -> ColorPair
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ColorPair
[src]
impl Debug for ColorPair
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ColorPair
[src]
fn eq(&self, __arg_0: &ColorPair) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColorPair) -> bool
[src]
This method tests for !=
.