pub struct CellAppearance {
pub disposition: Disposition,
pub fg: [f32; 4],
pub bg: [f32; 4],
pub bg_is_ground: bool,
pub glyph_visible: bool,
pub bidi_warning: bool,
pub cursor_marker: Option<(CursorMarkerKind, [f32; 4])>,
pub link_underline: Option<[f32; 4]>,
pub underline: Option<(UnderlineStyle, [f32; 4])>,
pub strikethrough: Option<[f32; 4]>,
pub overline: Option<[f32; 4]>,
}Expand description
Colors are linear RGBA and are resolved under either disposition: a glyph inking across cells takes each neighbor’s fg.
Fields§
§disposition: Disposition§fg: [f32; 4]§bg: [f32; 4]§bg_is_ground: boolbg is the theme background with no cell, cursor, selection or
warning color over it.
glyph_visible: boolCONCEAL (SGR 8) hides the glyph, and so does a wide character half under the pre-edit overlay, whose glyph inks across both halves. SECURITY: this must gate every fg draw.
bidi_warning: bool§cursor_marker: Option<(CursorMarkerKind, [f32; 4])>§link_underline: Option<[f32; 4]>§underline: Option<(UnderlineStyle, [f32; 4])>§strikethrough: Option<[f32; 4]>§overline: Option<[f32; 4]>Trait Implementations§
Source§impl Clone for CellAppearance
impl Clone for CellAppearance
impl Copy for CellAppearance
Source§impl Debug for CellAppearance
impl Debug for CellAppearance
Source§impl PartialEq for CellAppearance
impl PartialEq for CellAppearance
impl StructuralPartialEq for CellAppearance
Auto Trait Implementations§
impl Freeze for CellAppearance
impl RefUnwindSafe for CellAppearance
impl Send for CellAppearance
impl Sync for CellAppearance
impl Unpin for CellAppearance
impl UnsafeUnpin for CellAppearance
impl UnwindSafe for CellAppearance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more