[−][src]Struct alacritty::event::Processor
The event processor
Stores some state from received events and dispatches actions when they are triggered.
Methods
impl<N: Notify> Processor<N>[src]
pub fn new(
notifier: N,
resize_tx: Sender<PhysicalSize>,
options: &Options,
config: &Config,
ref_test: bool,
size_info: SizeInfo
) -> Processor<N>[src]
notifier: N,
resize_tx: Sender<PhysicalSize>,
options: &Options,
config: &Config,
ref_test: bool,
size_info: SizeInfo
) -> Processor<N>
Create a new event processor
Takes a writer which is expected to be hooked up to the write end of a pty.
pub fn process_events<'a>(
&mut self,
term: &'a FairMutex<Term>,
window: &mut Window
) -> MutexGuard<'a, Term>[src]
&mut self,
term: &'a FairMutex<Term>,
window: &mut Window
) -> MutexGuard<'a, Term>
Process events. When wait_for_event is set, this method is guaranteed
to process at least one event.
pub fn update_config(&mut self, config: &Config)[src]
Trait Implementations
impl<N> OnResize for Processor<N>[src]
Notify that the terminal was resized
Currently this just forwards the notice to the input processor.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> SetParameter for T[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>, [src]
T: Parameter<Self>,
Sets value as a parameter of self.