[][src]Struct alacritty::display::Display

pub struct Display {
    pub size_info: SizeInfo,
    pub window: Window,
    pub urls: Urls,
    pub highlighted_url: Option<Url>,
    pub wayland_event_queue: Option<EventQueue>,
    pub is_x11: bool,
    pub cursor_hidden: bool,
    renderer: QuadRenderer,
    glyph_cache: GlyphCache,
    meter: Meter,
}

The display wraps a window, font rasterizer, and GPU renderer.

Fields

size_info: SizeInfowindow: Windowurls: Urlshighlighted_url: Option<Url>

Currently highlighted URL.

wayland_event_queue: Option<EventQueue>is_x11: boolcursor_hidden: bool

UI cursor visibility for blinking.

renderer: QuadRendererglyph_cache: GlyphCachemeter: Meter

Implementations

impl Display[src]

pub fn new<E>(
    config: &TermConfig<UIConfig>,
    event_loop: &EventLoop<E>
) -> Result<Display, Error>
[src]

fn new_glyph_cache(
    dpr: f64,
    renderer: &mut QuadRenderer,
    config: &TermConfig<UIConfig>
) -> Result<(GlyphCache, f32, f32), Error>
[src]

fn update_glyph_cache(
    &mut self,
    config: &TermConfig<UIConfig>,
    font: &Font
) -> (f32, f32)
[src]

Update font size and cell dimensions.

This will return a tuple of the cell width and height.

fn clear_glyph_cache(&mut self)[src]

Clear glyph cache.

pub fn handle_update<T>(
    &mut self,
    terminal: &mut Term<T>,
    pty_resize_handle: &mut dyn OnResize,
    message_buffer: &MessageBuffer,
    search_active: bool,
    config: &TermConfig<UIConfig>,
    update_pending: DisplayUpdate
) where
    T: EventListener
[src]

Process update events.

pub fn draw<T>(
    &mut self,
    terminal: MutexGuard<'_, Term<T>>,
    message_buffer: &MessageBuffer,
    config: &TermConfig<UIConfig>,
    mouse: &Mouse,
    mods: ModifiersState,
    search_state: &SearchState
)
[src]

Draw the screen.

A reference to Term whose state is being drawn must be provided.

This call may block if vsync is enabled.

Format search regex to account for the cursor and fullwidth characters.

Draw current search regex.

fn draw_render_timer(
    &mut self,
    config: &TermConfig<UIConfig>,
    size_info: &SizeInfo
)
[src]

Draw render timer.

fn draw_line_indicator(
    &mut self,
    config: &TermConfig<UIConfig>,
    size_info: &SizeInfo,
    total_lines: usize,
    vi_mode_point: Option<Point>,
    line: usize
)
[src]

Draw an indicator for the position of a line in history.

fn request_frame(&self, window: &Window)[src]

Requst a new frame for a window on Wayland.

Auto Trait Implementations

impl !RefUnwindSafe for Display

impl !Send for Display

impl !Sync for Display

impl Unpin for Display

impl !UnwindSafe for Display

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.