alacritty::input

Trait ActionContext

Source
pub trait ActionContext<T: EventListener> {
Show 52 methods // Required methods fn size_info(&self) -> SizeInfo; fn selection_is_empty(&self) -> bool; fn mouse_mut(&mut self) -> &mut Mouse; fn mouse(&self) -> &Mouse; fn touch_purpose(&mut self) -> &mut TouchPurpose; fn modifiers(&mut self) -> &mut Modifiers; fn window(&mut self) -> &mut Window; fn display(&mut self) -> &mut Display; fn terminal(&self) -> &Term<T>; fn terminal_mut(&mut self) -> &mut Term<T>; fn message(&self) -> Option<&Message>; fn config(&self) -> &UiConfig; fn mouse_mode(&self) -> bool; fn clipboard_mut(&mut self) -> &mut Clipboard; fn scheduler_mut(&mut self) -> &mut Scheduler; fn search_next( &mut self, origin: Point, direction: Direction, side: Side, ) -> Option<Match>; fn search_direction(&self) -> Direction; fn search_active(&self) -> bool; fn inline_search_state(&mut self) -> &mut InlineSearchState; // Provided methods fn write_to_pty<B: Into<Cow<'static, [u8]>>>(&self, _data: B) { ... } fn mark_dirty(&mut self) { ... } fn copy_selection(&mut self, _ty: ClipboardType) { ... } fn start_selection( &mut self, _ty: SelectionType, _point: Point, _side: Side, ) { ... } fn toggle_selection( &mut self, _ty: SelectionType, _point: Point, _side: Side, ) { ... } fn update_selection(&mut self, _point: Point, _side: Side) { ... } fn clear_selection(&mut self) { ... } fn scroll(&mut self, _scroll: Scroll) { ... } fn spawn_new_instance(&mut self) { ... } fn create_new_window(&mut self) { ... } fn change_font_size(&mut self, _delta: f32) { ... } fn reset_font_size(&mut self) { ... } fn pop_message(&mut self) { ... } fn start_search(&mut self, _direction: Direction) { ... } fn confirm_search(&mut self) { ... } fn cancel_search(&mut self) { ... } fn search_input(&mut self, _c: char) { ... } fn search_pop_word(&mut self) { ... } fn search_history_previous(&mut self) { ... } fn search_history_next(&mut self) { ... } fn advance_search_origin(&mut self, _direction: Direction) { ... } fn on_typing_start(&mut self) { ... } fn toggle_vi_mode(&mut self) { ... } fn start_inline_search(&mut self, _direction: Direction, _stop_short: bool) { ... } fn inline_search_next(&mut self) { ... } fn inline_search_input(&mut self, _text: &str) { ... } fn inline_search_previous(&mut self) { ... } fn hint_input(&mut self, _character: char) { ... } fn trigger_hint(&mut self, _hint: &HintMatch) { ... } fn expand_selection(&mut self) { ... } fn on_terminal_input_start(&mut self) { ... } fn paste(&mut self, _text: &str, _bracketed: bool) { ... } fn spawn_daemon<I, S>(&self, _program: &str, _args: I) where I: IntoIterator<Item = S> + Debug + Copy, S: AsRef<OsStr> { ... }
}

Required Methods§

Source

fn size_info(&self) -> SizeInfo

Source

fn selection_is_empty(&self) -> bool

Source

fn mouse_mut(&mut self) -> &mut Mouse

Source

fn mouse(&self) -> &Mouse

Source

fn touch_purpose(&mut self) -> &mut TouchPurpose

Source

fn modifiers(&mut self) -> &mut Modifiers

Source

fn window(&mut self) -> &mut Window

Source

fn display(&mut self) -> &mut Display

Source

fn terminal(&self) -> &Term<T>

Source

fn terminal_mut(&mut self) -> &mut Term<T>

Source

fn message(&self) -> Option<&Message>

Source

fn config(&self) -> &UiConfig

Source

fn mouse_mode(&self) -> bool

Source

fn clipboard_mut(&mut self) -> &mut Clipboard

Source

fn scheduler_mut(&mut self) -> &mut Scheduler

Source

fn search_next( &mut self, origin: Point, direction: Direction, side: Side, ) -> Option<Match>

Source

fn search_direction(&self) -> Direction

Source

fn search_active(&self) -> bool

Source

fn inline_search_state(&mut self) -> &mut InlineSearchState

Provided Methods§

Source

fn write_to_pty<B: Into<Cow<'static, [u8]>>>(&self, _data: B)

Source

fn mark_dirty(&mut self)

Source

fn copy_selection(&mut self, _ty: ClipboardType)

Source

fn start_selection(&mut self, _ty: SelectionType, _point: Point, _side: Side)

Source

fn toggle_selection(&mut self, _ty: SelectionType, _point: Point, _side: Side)

Source

fn update_selection(&mut self, _point: Point, _side: Side)

Source

fn clear_selection(&mut self)

Source

fn scroll(&mut self, _scroll: Scroll)

Source

fn spawn_new_instance(&mut self)

Source

fn create_new_window(&mut self)

Source

fn change_font_size(&mut self, _delta: f32)

Source

fn reset_font_size(&mut self)

Source

fn pop_message(&mut self)

Source

fn search_input(&mut self, _c: char)

Source

fn search_pop_word(&mut self)

Source

fn search_history_previous(&mut self)

Source

fn search_history_next(&mut self)

Source

fn advance_search_origin(&mut self, _direction: Direction)

Source

fn on_typing_start(&mut self)

Source

fn toggle_vi_mode(&mut self)

Source

fn inline_search_next(&mut self)

Source

fn inline_search_input(&mut self, _text: &str)

Source

fn inline_search_previous(&mut self)

Source

fn hint_input(&mut self, _character: char)

Source

fn trigger_hint(&mut self, _hint: &HintMatch)

Source

fn expand_selection(&mut self)

Source

fn on_terminal_input_start(&mut self)

Source

fn paste(&mut self, _text: &str, _bracketed: bool)

Source

fn spawn_daemon<I, S>(&self, _program: &str, _args: I)
where I: IntoIterator<Item = S> + Debug + Copy, S: AsRef<OsStr>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, N: Notify + 'a, T: EventListener> ActionContext<T> for ActionContext<'a, N, T>