Enum ncursesw::normal::Attribute [−][src]
pub enum Attribute {
Show 18 variants
Normal,
CharText,
Standout,
Underline,
Reverse,
Blink,
Dim,
Bold,
AlternativeCharSet,
Invisible,
Protected,
Horizontal,
Left,
Low,
Right,
Top,
Vertical,
Italic,
}
Variants
Normal
CharText
Standout
Underline
Reverse
Blink
Dim
Bold
AlternativeCharSet
Invisible
Protected
Horizontal
Left
Low
Right
Top
Vertical
Italic
Trait Implementations
Implement the | operator for combining two ’Attribute’s into Attributes
Implement the | operator for adding an Attribute to Attributes
Implement the | operator for combining a ColorPair
and a Attribute
to produce Attributes
Example
extern crate ncursesw;
use ncursesw::*;
use ncursesw::normal::*;
start_color()?;
let blue = Color::Dark(BaseColor::Blue);
let yellow = Color::Dark(BaseColor::Yellow);
let color_pair1 = ColorPair::new(1, Colors::new(blue, yellow))?;
let attrs = Attribute::Dim | color_pair1;
assert!(attrs.color_pair() == color_pair1);
type Output = Attributes
type Output = Attributes
The resulting type after applying the |
operator.
Implement the | operator for combining a ColorPair
and an Attribute
to produce Attributes
Implement the ^ operator for disabling an Attribute from Attributes
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
Mutably borrows from an owned value. Read more