[−][src]Struct alacritty::input::Processor
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: boolMethods
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]
&mut self,
button: u8,
state: ElementState,
modifiers: ModifiersState
)
pub fn on_mouse_double_click(
&mut self,
button: MouseButton,
point: Option<Point>
)[src]
&mut self,
button: MouseButton,
point: Option<Point>
)
pub fn on_mouse_triple_click(
&mut self,
button: MouseButton,
point: Option<Point>
)[src]
&mut self,
button: MouseButton,
point: Option<Point>
)
pub fn on_mouse_press(
&mut self,
button: MouseButton,
modifiers: ModifiersState,
point: Option<Point>
)[src]
&mut self,
button: MouseButton,
modifiers: ModifiersState,
point: Option<Point>
)
pub fn on_mouse_release(
&mut self,
button: MouseButton,
modifiers: ModifiersState,
point: Option<Point>
)[src]
&mut self,
button: MouseButton,
modifiers: ModifiersState,
point: Option<Point>
)
pub fn on_mouse_wheel(
&mut self,
delta: MouseScrollDelta,
phase: TouchPhase,
modifiers: ModifiersState
)[src]
&mut self,
delta: MouseScrollDelta,
phase: TouchPhase,
modifiers: ModifiersState
)
pub fn on_focus_change(&mut self, is_focused: bool)[src]
pub fn mouse_input(
&mut self,
state: ElementState,
button: MouseButton,
modifiers: ModifiersState
)[src]
&mut self,
state: ElementState,
button: MouseButton,
modifiers: ModifiersState
)
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,
A: Send,
impl<'a, A> Sync for Processor<'a, A> where
A: Sync,
A: Sync,
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.