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