[−][src]Struct alacritty::display::Display
The display wraps a window, font rasterizer, and GPU renderer.
Fields
size_info: SizeInfo
window: Window
urls: Urls
highlighted_url: Option<Url>
Currently highlighted URL.
wayland_event_queue: Option<EventQueue>
is_x11: bool
UI cursor visibility for blinking.
renderer: QuadRenderer
glyph_cache: GlyphCache
meter: Meter
Implementations
impl Display
[src]
pub fn new<E>(
config: &TermConfig<UIConfig>,
event_loop: &EventLoop<E>
) -> Result<Display, Error>
[src]
config: &TermConfig<UIConfig>,
event_loop: &EventLoop<E>
) -> Result<Display, Error>
fn new_glyph_cache(
dpr: f64,
renderer: &mut QuadRenderer,
config: &TermConfig<UIConfig>
) -> Result<(GlyphCache, f32, f32), Error>
[src]
dpr: f64,
renderer: &mut QuadRenderer,
config: &TermConfig<UIConfig>
) -> Result<(GlyphCache, f32, f32), Error>
fn update_glyph_cache(
&mut self,
config: &TermConfig<UIConfig>,
font: &Font
) -> (f32, f32)
[src]
&mut self,
config: &TermConfig<UIConfig>,
font: &Font
) -> (f32, f32)
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]
&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,
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]
&mut self,
terminal: MutexGuard<'_, Term<T>>,
message_buffer: &MessageBuffer,
config: &TermConfig<UIConfig>,
mouse: &Mouse,
mods: ModifiersState,
search_state: &SearchState
)
Draw the screen.
A reference to Term whose state is being drawn must be provided.
This call may block if vsync is enabled.
fn format_search(
size_info: &SizeInfo,
search_regex: &str,
search_label: &str
) -> String
[src]
size_info: &SizeInfo,
search_regex: &str,
search_label: &str
) -> String
Format search regex to account for the cursor and fullwidth characters.
fn draw_search(
&mut self,
config: &TermConfig<UIConfig>,
size_info: &SizeInfo,
text: &str
)
[src]
&mut self,
config: &TermConfig<UIConfig>,
size_info: &SizeInfo,
text: &str
)
Draw current search regex.
fn draw_render_timer(
&mut self,
config: &TermConfig<UIConfig>,
size_info: &SizeInfo
)
[src]
&mut self,
config: &TermConfig<UIConfig>,
size_info: &SizeInfo
)
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]
&mut self,
config: &TermConfig<UIConfig>,
size_info: &SizeInfo,
total_lines: usize,
vi_mode_point: Option<Point>,
line: usize
)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,