pub trait ColorsType<C, T>where
C: ColorType<T>,
T: ColorAttributeTypes,{
// Required methods
fn screen(&self) -> Option<SCREEN>;
fn foreground(&self) -> C;
fn background(&self) -> C;
}
Expand description
Background and foreground colors.
Required Methods§
Sourcefn screen(&self) -> Option<SCREEN>
fn screen(&self) -> Option<SCREEN>
Returns the screen pointer of the foreground and background colors.
Sourcefn foreground(&self) -> C
fn foreground(&self) -> C
Return the foreground color.
Sourcefn background(&self) -> C
fn background(&self) -> C
Return the background color.