[][src]Struct alacritty::event::ActionContext

pub struct ActionContext<'a, N, T> {
    pub notifier: &'a mut N,
    pub terminal: &'a mut Term<T>,
    pub clipboard: &'a mut Clipboard,
    pub size_info: &'a mut SizeInfo,
    pub mouse: &'a mut Mouse,
    pub received_count: &'a mut usize,
    pub suppress_chars: &'a mut bool,
    pub modifiers: &'a mut ModifiersState,
    pub window: &'a mut Window,
    pub message_buffer: &'a mut MessageBuffer,
    pub display_update_pending: &'a mut DisplayUpdate,
    pub config: &'a mut TermConfig<UIConfig>,
    pub event_loop: &'a EventLoopWindowTarget<Event>,
    pub urls: &'a Urls,
    pub scheduler: &'a mut Scheduler,
    pub search_state: &'a mut SearchState,
    cursor_hidden: &'a mut bool,
    cli_options: &'a CLIOptions,
    font_size: &'a mut Size,
}

Fields

notifier: &'a mut Nterminal: &'a mut Term<T>clipboard: &'a mut Clipboardsize_info: &'a mut SizeInfomouse: &'a mut Mousereceived_count: &'a mut usizesuppress_chars: &'a mut boolmodifiers: &'a mut ModifiersStatewindow: &'a mut Windowmessage_buffer: &'a mut MessageBufferdisplay_update_pending: &'a mut DisplayUpdateconfig: &'a mut TermConfig<UIConfig>event_loop: &'a EventLoopWindowTarget<Event>urls: &'a Urlsscheduler: &'a mut Schedulersearch_state: &'a mut SearchStatecursor_hidden: &'a mut boolcli_options: &'a CLIOptionsfont_size: &'a mut Size

Implementations

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

fn search_reset_state(&mut self)[src]

Reset terminal to the state before search was started.

fn goto_match(&mut self, limit: Option<usize>)[src]

Jump to the first regex match from the search origin.

Cleanup the search state.

fn absolute_origin(&self) -> Point<usize>[src]

Get the absolute position of the search origin.

This takes the relative motion of the viewport since the start of the search into account. So while the absolute point of the origin might have changed since new content was printed, this will still return the correct absolute position.

fn update_cursor_blinking(&mut self)[src]

Update the cursor blinking state.

Trait Implementations

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.

Auto Trait Implementations

impl<'a, N, T> !RefUnwindSafe for ActionContext<'a, N, T>

impl<'a, N, T> !Send for ActionContext<'a, N, T>

impl<'a, N, T> !Sync for ActionContext<'a, N, T>

impl<'a, N, T> Unpin for ActionContext<'a, N, T>

impl<'a, N, T> !UnwindSafe for ActionContext<'a, N, T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.