#[repr(C)]pub struct Style {Show 13 fields
pub size: usize,
pub fg_color: StyleColor,
pub bg_color: StyleColor,
pub underline_color: StyleColor,
pub bold: bool,
pub italic: bool,
pub faint: bool,
pub blink: bool,
pub inverse: bool,
pub invisible: bool,
pub strikethrough: bool,
pub overline: bool,
pub underline: c_int,
}Expand description
Terminal cell style.
Describes the complete visual style for a terminal cell, including foreground, background, and underline colors, as well as text decoration flags. The underline field uses the same values as GhosttySgrUnderline.
This is a sized struct. Use GHOSTTY_INIT_SIZED() to initialize it.
Fields§
§size: usize§fg_color: StyleColor§bg_color: StyleColor§underline_color: StyleColor§bold: bool§italic: bool§faint: bool§blink: bool§inverse: bool§invisible: bool§strikethrough: bool§overline: bool§underline: c_int< One of GHOSTTY_SGR_UNDERLINE_* values
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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