[][src]Struct alacritty::event::Processor

pub struct Processor<N> {
    notifier: N,
    mouse: Mouse,
    received_count: usize,
    suppress_chars: bool,
    clipboard: Clipboard,
    modifiers: ModifiersState,
    config: TermConfig<UIConfig>,
    message_buffer: MessageBuffer,
    display: Display,
    font_size: Size,
    event_queue: Vec<GlutinEvent<'static, Event>>,
    search_state: SearchState,
    cli_options: CLIOptions,
}

The event processor.

Stores some state from received events and dispatches actions when they are triggered.

Fields

notifier: Nmouse: Mousereceived_count: usizesuppress_chars: boolclipboard: Clipboardmodifiers: ModifiersStateconfig: TermConfig<UIConfig>message_buffer: MessageBufferdisplay: Displayfont_size: Sizeevent_queue: Vec<GlutinEvent<'static, Event>>search_state: SearchStatecli_options: CLIOptions

Implementations

impl<N: Notify + OnResize> Processor<N>[src]

pub fn new(
    notifier: N,
    message_buffer: MessageBuffer,
    config: TermConfig<UIConfig>,
    display: Display,
    cli_options: CLIOptions
) -> Processor<N>
[src]

Create a new event processor.

Takes a writer which is expected to be hooked up to the write end of a PTY.

fn event_queue_empty(&mut self) -> bool[src]

Return true if event_queue is empty, false otherwise.

pub fn run<T>(
    &mut self,
    terminal: Arc<FairMutex<Term<T>>>,
    event_loop: EventLoop<Event>
) where
    T: EventListener
[src]

Run the event loop.

fn handle_event<T>(
    event: GlutinEvent<'_, Event>,
    processor: &mut Processor<'_, T, ActionContext<'_, N, T>>
) where
    T: EventListener
[src]

Handle events from glutin.

Doesn't take self mutably due to borrow checking.

fn skip_event(event: &GlutinEvent<'_, Event>) -> bool[src]

Check if an event is irrelevant and can be skipped.

fn reload_config<T>(
    path: &PathBuf,
    processor: &mut Processor<'_, T, ActionContext<'_, N, T>>
) where
    T: EventListener
[src]

fn submit_display_update<T>(
    &mut self,
    terminal: &mut Term<T>,
    old_is_searching: bool,
    display_update_pending: DisplayUpdate
) where
    T: EventListener
[src]

Submit the pending changes to the Display.

fn write_ref_test_results<T>(&self, terminal: &Term<T>)[src]

Write the ref test results to the disk.

Auto Trait Implementations

impl<N> !RefUnwindSafe for Processor<N>

impl<N> !Send for Processor<N>

impl<N> !Sync for Processor<N>

impl<N> Unpin for Processor<N> where
    N: Unpin

impl<N> !UnwindSafe for Processor<N>

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.