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
Example
let attributes = Attribute::Blink | Attribute::Reverse;
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
assert!(attributes.is_reverse());
Implement the | operator for adding an Attribute to Attributes
Example
let mut attributes = Attributes::default();
assert!(!attributes.is_bold());
attributes = attributes | Attribute::Bold;
assert!(attributes.is_bold());
Implement the | operator for combining a ColorPair
and a Attribute
to produce Attributes
Example
let colors1 = Colors::new(Color::Red, Color::Black);
let color_pair1 = ColorPair::new(1, colors1)?;
let attributes = Attribute::Blink | color_pair1;
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
Implement the | operator for combining a ColorPair
and an Attribute
to produce Attributes
Example
let colors5 = Colors::new(Color::Red, Color::Black);
let attributes = ColorPair::new(5, &colors5) | Attribute::Blink;
assert!(attributes.color_pair() == 5);
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
Implement the ^ operator for disabling an Attribute from Attributes
Example
let mut attributes = Attributes::from(Attribute::Bold);
assert!(attributes.is_bold());
attributes = attributes ^ Attribute::Bold;
assert!(!attributes.is_bold());
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
Mutably borrows from an owned value. Read more