[][src]Struct alacritty::input::Processor

pub struct Processor<'a, A: 'a> {
    pub key_bindings: &'a [KeyBinding],
    pub mouse_bindings: &'a [MouseBinding],
    pub mouse_config: &'a Mouse,
    pub scrolling_config: &'a Scrolling,
    pub ctx: A,
    pub save_to_clipboard: bool,
    pub alt_send_esc: bool,
}

Processes input from glutin.

An escape sequence may be emitted in case specific keys or key combinations are activated.

TODO also need terminal state when processing input

Fields

key_bindings: &'a [KeyBinding]mouse_bindings: &'a [MouseBinding]mouse_config: &'a Mousescrolling_config: &'a Scrollingctx: Asave_to_clipboard: boolalt_send_esc: bool

Methods

impl<'a, A: ActionContext + 'a> Processor<'a, A>[src]

pub fn mouse_moved(&mut self, x: usize, y: usize, modifiers: ModifiersState)[src]

pub fn normal_mouse_report(&mut self, button: u8)[src]

pub fn sgr_mouse_report(&mut self, button: u8, state: ElementState)[src]

pub fn mouse_report(
    &mut self,
    button: u8,
    state: ElementState,
    modifiers: ModifiersState
)
[src]

pub fn on_mouse_double_click(
    &mut self,
    button: MouseButton,
    point: Option<Point>
)
[src]

pub fn on_mouse_triple_click(
    &mut self,
    button: MouseButton,
    point: Option<Point>
)
[src]

pub fn on_mouse_press(
    &mut self,
    button: MouseButton,
    modifiers: ModifiersState,
    point: Option<Point>
)
[src]

pub fn on_mouse_release(
    &mut self,
    button: MouseButton,
    modifiers: ModifiersState,
    point: Option<Point>
)
[src]

pub fn on_mouse_wheel(
    &mut self,
    delta: MouseScrollDelta,
    phase: TouchPhase,
    modifiers: ModifiersState
)
[src]

pub fn on_focus_change(&mut self, is_focused: bool)[src]

pub fn mouse_input(
    &mut self,
    state: ElementState,
    button: MouseButton,
    modifiers: ModifiersState
)
[src]

pub fn process_key(&mut self, input: KeyboardInput)[src]

Process key input

pub fn received_char(&mut self, c: char)[src]

Process a received character

Auto Trait Implementations

impl<'a, A> Send for Processor<'a, A> where
    A: Send

impl<'a, A> Sync for Processor<'a, A> where
    A: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]