[][src]Trait alacritty::input::ActionContext

pub trait ActionContext<T: EventListener> {
    fn write_to_pty<B: Into<Cow<'static, [u8]>>>(&mut self, data: B);
fn size_info(&self) -> SizeInfo;
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 selection_is_empty(&self) -> bool;
fn mouse_mut(&mut self) -> &mut Mouse;
fn mouse(&self) -> &Mouse;
fn mouse_coords(&self) -> Option<Point>;
fn received_count(&mut self) -> &mut usize;
fn suppress_chars(&mut self) -> &mut bool;
fn modifiers(&mut self) -> &mut ModifiersState;
fn scroll(&mut self, scroll: Scroll);
fn window(&self) -> &Window;
fn window_mut(&mut self) -> &mut Window;
fn terminal(&self) -> &Term<T>;
fn terminal_mut(&mut self) -> &mut Term<T>;
fn spawn_new_instance(&mut self);
fn change_font_size(&mut self, delta: f32);
fn reset_font_size(&mut self);
fn pop_message(&mut self);
fn message(&self) -> Option<&Message>;
fn config(&self) -> &TermConfig<UIConfig>;
fn event_loop(&self) -> &EventLoopWindowTarget<Event>;
fn urls(&self) -> &Urls;
fn launch_url(&self, url: Url);
fn mouse_mode(&self) -> bool;
fn clipboard_mut(&mut self) -> &mut Clipboard;
fn scheduler_mut(&mut self) -> &mut Scheduler;
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 search_direction(&self) -> Direction;
fn search_active(&self) -> bool;
fn on_typing_start(&mut self); }

Required methods

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

fn size_info(&self) -> SizeInfo

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 selection_is_empty(&self) -> bool

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

fn mouse(&self) -> &Mouse

fn mouse_coords(&self) -> Option<Point>

fn received_count(&mut self) -> &mut usize

fn suppress_chars(&mut self) -> &mut bool

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

fn scroll(&mut self, scroll: Scroll)

fn window(&self) -> &Window

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

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

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

fn spawn_new_instance(&mut self)

fn change_font_size(&mut self, delta: f32)

fn reset_font_size(&mut self)

fn pop_message(&mut self)

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

fn config(&self) -> &TermConfig<UIConfig>

fn event_loop(&self) -> &EventLoopWindowTarget<Event>

fn urls(&self) -> &Urls

fn launch_url(&self, url: Url)

fn mouse_mode(&self) -> bool

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

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

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 search_direction(&self) -> Direction

fn search_active(&self) -> bool

fn on_typing_start(&mut self)

Loading content...

Implementors

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

fn launch_url(&self, url: Url)[src]

Spawn URL launcher when clicking on URLs.

fn search_history_previous(&mut self)[src]

Go to the previous regex in the search history.

fn search_history_next(&mut self)[src]

Go to the previous regex in the search history.

fn on_typing_start(&mut self)[src]

Handle keyboard typing start.

This will temporarily disable some features like terminal cursor blinking or the mouse cursor.

All features are re-enabled again automatically.

Loading content...