Struct alacritty::window_context::WindowContext [−][src]
pub struct WindowContext {Show 15 fields
pub message_buffer: MessageBuffer,
pub display: Display,
event_queue: Vec<GlutinEvent<'static, Event>>,
terminal: Arc<FairMutex<Term<EventProxy>>>,
modifiers: ModifiersState,
search_state: SearchState,
received_count: usize,
suppress_chars: bool,
notifier: Notifier,
font_size: Size,
mouse: Mouse,
dirty: bool,
preserve_title: bool,
master_fd: RawFd,
shell_pid: u32,
}Expand description
Event context for one individual Alacritty window.
Fields
message_buffer: MessageBufferdisplay: Displayevent_queue: Vec<GlutinEvent<'static, Event>>terminal: Arc<FairMutex<Term<EventProxy>>>modifiers: ModifiersStatesearch_state: SearchStatereceived_count: usizesuppress_chars: boolnotifier: Notifierfont_size: Sizemouse: Mousedirty: boolpreserve_title: boolmaster_fd: RawFdshell_pid: u32Implementations
pub fn new(
config: &UiConfig,
options: &WindowOptions,
window_event_loop: &EventLoopWindowTarget<Event>,
proxy: EventLoopProxy<Event>,
wayland_event_queue: Option<&EventQueue>
) -> Result<Self, Box<dyn Error>>
pub fn new(
config: &UiConfig,
options: &WindowOptions,
window_event_loop: &EventLoopWindowTarget<Event>,
proxy: EventLoopProxy<Event>,
wayland_event_queue: Option<&EventQueue>
) -> Result<Self, Box<dyn Error>>
Create a new terminal window context.
Update the terminal window to the latest config.
pub fn handle_event(
&mut self,
event_loop: &EventLoopWindowTarget<Event>,
event_proxy: &EventLoopProxy<Event>,
config: &mut UiConfig,
clipboard: &mut Clipboard,
scheduler: &mut Scheduler,
event: GlutinEvent<'_, Event>
)
pub fn handle_event(
&mut self,
event_loop: &EventLoopWindowTarget<Event>,
event_proxy: &EventLoopProxy<Event>,
config: &mut UiConfig,
clipboard: &mut Clipboard,
scheduler: &mut Scheduler,
event: GlutinEvent<'_, Event>
)
Process events for this terminal window.
Write the ref test results to the disk.
fn submit_display_update(
terminal: &mut Term<EventProxy>,
display: &mut Display,
notifier: &mut Notifier,
message_buffer: &MessageBuffer,
search_state: &SearchState,
old_is_searching: bool,
config: &UiConfig
)
fn submit_display_update(
terminal: &mut Term<EventProxy>,
display: &mut Display,
notifier: &mut Notifier,
message_buffer: &MessageBuffer,
search_state: &SearchState,
old_is_searching: bool,
config: &UiConfig
)
Submit the pending changes to the Display.