Struct alacritty::event::Processor [−][src]
pub struct Processor {
wayland_event_queue: Option<EventQueue>,
windows: HashMap<WindowId, WindowContext>,
cli_options: CliOptions,
config: UiConfig,
}Expand description
The event processor.
Stores some state from received events and dispatches actions when they are triggered.
Fields
wayland_event_queue: Option<EventQueue>windows: HashMap<WindowId, WindowContext>cli_options: CliOptionsconfig: UiConfigImplementations
Create a new event processor.
Takes a writer which is expected to be hooked up to the write end of a PTY.
pub fn create_window(
&mut self,
event_loop: &EventLoopWindowTarget<Event>,
proxy: EventLoopProxy<Event>,
options: WindowOptions
) -> Result<(), Box<dyn Error>>
pub fn create_window(
&mut self,
event_loop: &EventLoopWindowTarget<Event>,
proxy: EventLoopProxy<Event>,
options: WindowOptions
) -> Result<(), Box<dyn Error>>
Create a new terminal window.
Check if an event is irrelevant and can be skipped.