Struct pancurses_result::Color

source ·
pub struct Color { /* private fields */ }
Expand description

Color subsystem. It can be accessed via Curses::color.

Implementations

The maximum number of colors supported.

This corresponds to COLORS.

Get the nth color pair.

This corresponds to COLOR_PAIR.

Get the number of color pairs.

This corresponds to COLOR_PAIRS.

Get the ColorContent of a certain color.

Is it possible to change colors?

Tell the curses instance to use default colors.

Set the nth color to a certain ColorContent.

This corresponds to init_color.

Set the color_pair to a combination of the foregrond and background colors.

This corresponds to init_pair.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.