pub struct CellRenderer { /* private fields */ }Implementations§
Source§impl CellRenderer
impl CellRenderer
pub async fn new( window: Arc<Window>, font_family: Option<&str>, font_family_bold: Option<&str>, font_family_italic: Option<&str>, font_family_bold_italic: Option<&str>, font_ranges: &[FontRange], font_size: f32, cols: usize, rows: usize, window_padding: f32, line_spacing: f32, char_spacing: f32, scrollbar_position: &str, scrollbar_width: f32, scrollbar_thumb_color: [f32; 4], scrollbar_track_color: [f32; 4], enable_text_shaping: bool, enable_ligatures: bool, enable_kerning: bool, vsync_mode: VsyncMode, window_opacity: f32, background_color: [u8; 3], background_image_path: Option<&str>, background_image_mode: BackgroundImageMode, background_image_opacity: f32, ) -> Result<Self>
pub fn device(&self) -> &Device
pub fn queue(&self) -> &Queue
pub fn surface_format(&self) -> TextureFormat
pub fn cell_width(&self) -> f32
pub fn cell_height(&self) -> f32
pub fn window_padding(&self) -> f32
pub fn grid_size(&self) -> (usize, usize)
pub fn resize(&mut self, width: u32, height: u32) -> (usize, usize)
pub fn update_cells(&mut self, new_cells: &[Cell])
pub fn update_cursor( &mut self, pos: (usize, usize), opacity: f32, style: CursorStyle, )
pub fn clear_cursor(&mut self)
pub fn update_scrollbar( &mut self, scroll_offset: usize, visible_lines: usize, total_lines: usize, )
pub fn set_visual_bell_intensity(&mut self, intensity: f32)
pub fn update_opacity(&mut self, opacity: f32)
pub fn update_scale_factor(&mut self, scale_factor: f64)
pub fn update_window_padding(&mut self, padding: f32) -> Option<(usize, usize)>
pub fn set_background_image( &mut self, path: Option<&str>, mode: BackgroundImageMode, opacity: f32, )
pub fn update_background_image_opacity(&mut self, opacity: f32)
pub fn update_scrollbar_appearance( &mut self, width: f32, thumb_color: [f32; 4], track_color: [f32; 4], )
pub fn update_scrollbar_position(&mut self, position: &str)
pub fn scrollbar_contains_point(&self, x: f32, y: f32) -> bool
pub fn scrollbar_thumb_bounds(&self) -> Option<(f32, f32)>
pub fn scrollbar_track_contains_x(&self, x: f32) -> bool
pub fn scrollbar_mouse_y_to_scroll_offset(&self, mouse_y: f32) -> Option<usize>
pub fn reconfigure_surface(&mut self)
pub fn clear_glyph_cache(&mut self)
pub fn render(&mut self, show_scrollbar: bool) -> Result<SurfaceTexture>
pub fn render_to_texture( &mut self, target_view: &TextureView, ) -> Result<SurfaceTexture>
pub fn render_overlays( &mut self, surface_texture: &SurfaceTexture, show_scrollbar: bool, ) -> Result<()>
pub fn update_graphics( &mut self, _graphics: &[TerminalGraphic], _scroll_offset: usize, _scrollback_len: usize, _visible_lines: usize, ) -> Result<()>
pub fn update_background_image_opacity_only(&mut self, opacity: f32)
Auto Trait Implementations§
impl !Freeze for CellRenderer
impl !RefUnwindSafe for CellRenderer
impl Send for CellRenderer
impl Sync for CellRenderer
impl Unpin for CellRenderer
impl !UnwindSafe for CellRenderer
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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