pub struct CellRendererConfig<'a> {Show 29 fields
pub font_family: Option<&'a str>,
pub font_family_bold: Option<&'a str>,
pub font_family_italic: Option<&'a str>,
pub font_family_bold_italic: Option<&'a str>,
pub font_ranges: &'a [FontRange],
pub font_size: f32,
pub cols: usize,
pub rows: usize,
pub window_padding: f32,
pub line_spacing: f32,
pub char_spacing: f32,
pub scrollbar_position: &'a str,
pub scrollbar_width: f32,
pub scrollbar_thumb_color: [f32; 4],
pub scrollbar_track_color: [f32; 4],
pub enable_text_shaping: bool,
pub enable_ligatures: bool,
pub enable_kerning: bool,
pub font_antialias: bool,
pub font_hinting: bool,
pub font_thin_strokes: ThinStrokesMode,
pub minimum_contrast: f32,
pub vsync_mode: VsyncMode,
pub power_preference: PowerPreference,
pub window_opacity: f32,
pub background_color: [u8; 3],
pub background_image_path: Option<&'a str>,
pub background_image_mode: BackgroundImageMode,
pub background_image_opacity: f32,
}Expand description
Configuration for CellRenderer::new.
Bundles all font, grid, scrollbar, and background parameters so the
constructor does not exceed the clippy::too_many_arguments threshold.
Fields§
§font_family: Option<&'a str>§font_family_bold: Option<&'a str>§font_family_italic: Option<&'a str>§font_family_bold_italic: Option<&'a str>§font_ranges: &'a [FontRange]§font_size: f32§cols: usize§rows: usize§window_padding: f32§line_spacing: f32§char_spacing: f32§scrollbar_position: &'a str§scrollbar_width: f32§scrollbar_thumb_color: [f32; 4]§scrollbar_track_color: [f32; 4]§enable_text_shaping: bool§enable_ligatures: bool§enable_kerning: bool§font_antialias: bool§font_hinting: bool§font_thin_strokes: ThinStrokesMode§minimum_contrast: f32§vsync_mode: VsyncMode§power_preference: PowerPreference§window_opacity: f32§background_color: [u8; 3]§background_image_path: Option<&'a str>§background_image_mode: BackgroundImageMode§background_image_opacity: f32Auto Trait Implementations§
impl<'a> Freeze for CellRendererConfig<'a>
impl<'a> RefUnwindSafe for CellRendererConfig<'a>
impl<'a> Send for CellRendererConfig<'a>
impl<'a> Sync for CellRendererConfig<'a>
impl<'a> Unpin for CellRendererConfig<'a>
impl<'a> UnsafeUnpin for CellRendererConfig<'a>
impl<'a> UnwindSafe for CellRendererConfig<'a>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more