pub struct TuiCell {
pub grapheme: String,
pub fg: [f32; 3],
pub bg: Option<[f32; 3]>,
pub bold: bool,
pub italic: bool,
pub underline: UnderlineStyle,
pub strikethrough: bool,
pub link: Option<Arc<String>>,
}Expand description
A single rendered cell in a TUI screen grid.
Fields§
§grapheme: StringFull grapheme cluster (base + combining/ZWJ sequence). A single terminal
cell may contain multiple codepoints, e.g. 👨👩👧 (ZWJ family),
👋🏽 (skin-tone modifier), 1️⃣ (keycap), 🇯🇵 (regional-indicator flag).
fg: [f32; 3]Foreground RGB color (linear, 0.0–1.0).
bg: Option<[f32; 3]>Background RGB color. None means default background (transparent/Base).
bold: bool§italic: bool§underline: UnderlineStyle§strikethrough: bool§link: Option<Arc<String>>OSC 8 hyperlink URI (shared via Arc because runs of cells share the same link).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiCell
impl RefUnwindSafe for TuiCell
impl Send for TuiCell
impl Sync for TuiCell
impl Unpin for TuiCell
impl UnsafeUnpin for TuiCell
impl UnwindSafe for TuiCell
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