#[repr(C)]pub struct GhosttyStyle {Show 13 fields
pub size: usize,
pub fg_color: GhosttyStyleColor,
pub bg_color: GhosttyStyleColor,
pub underline_color: GhosttyStyleColor,
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.
@ingroup style
Fields§
§size: usize§fg_color: GhosttyStyleColor§bg_color: GhosttyStyleColor§underline_color: GhosttyStyleColor§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§
Source§impl Clone for GhosttyStyle
impl Clone for GhosttyStyle
Source§fn clone(&self) -> GhosttyStyle
fn clone(&self) -> GhosttyStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GhosttyStyle
impl Default for GhosttyStyle
impl Copy for GhosttyStyle
Auto Trait Implementations§
impl Freeze for GhosttyStyle
impl RefUnwindSafe for GhosttyStyle
impl Send for GhosttyStyle
impl Sync for GhosttyStyle
impl Unpin for GhosttyStyle
impl UnsafeUnpin for GhosttyStyle
impl UnwindSafe for GhosttyStyle
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