pub struct ActionContext<'a, N, T> {
Show 22 fields pub notifier: &'a mut N, pub terminal: &'a mut Term<T>, pub clipboard: &'a mut Clipboard, pub mouse: &'a mut Mouse, pub touch: &'a mut TouchPurpose, pub received_count: &'a mut usize, pub suppress_chars: &'a mut bool, pub modifiers: &'a mut ModifiersState, pub display: &'a mut Display, pub message_buffer: &'a mut MessageBuffer, pub config: &'a UiConfig, pub cursor_blink_timed_out: &'a mut bool, pub event_loop: &'a EventLoopWindowTarget<Event>, pub event_proxy: &'a EventLoopProxy<Event>, pub scheduler: &'a mut Scheduler, pub search_state: &'a mut SearchState, pub font_size: &'a mut Size, pub dirty: &'a mut bool, pub occluded: &'a mut bool, pub preserve_title: bool, pub master_fd: RawFd, pub shell_pid: u32,
}

Fields§

§notifier: &'a mut N§terminal: &'a mut Term<T>§clipboard: &'a mut Clipboard§mouse: &'a mut Mouse§touch: &'a mut TouchPurpose§received_count: &'a mut usize§suppress_chars: &'a mut bool§modifiers: &'a mut ModifiersState§display: &'a mut Display§message_buffer: &'a mut MessageBuffer§config: &'a UiConfig§cursor_blink_timed_out: &'a mut bool§event_loop: &'a EventLoopWindowTarget<Event>§event_proxy: &'a EventLoopProxy<Event>§scheduler: &'a mut Scheduler§search_state: &'a mut SearchState§font_size: &'a mut Size§dirty: &'a mut bool§occluded: &'a mut bool§preserve_title: bool§master_fd: RawFd§shell_pid: u32

Implementations§

source§

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

source

fn search_reset_state(&mut self)

Reset terminal to the state before search was started.

source

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

Jump to the first regex match from the search origin.

Cleanup the search state.

source

fn update_cursor_blinking(&mut self)

Update the cursor blinking state.

source

fn schedule_blinking(&mut self)

source

fn schedule_blinking_timeout(&mut self)

Trait Implementations§

source§

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

source§

fn mark_dirty(&mut self)

Request a redraw.

source§

fn search_history_previous(&mut self)

Go to the previous regex in the search history.

source§

fn search_history_next(&mut self)

Go to the previous regex in the search history.

source§

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

Find the next search match.

source§

fn on_typing_start(&mut self)

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.

source§

fn hint_input(&mut self, c: char)

Process a new character for keyboard hints.

source§

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

Trigger a hint action.

source§

fn expand_selection(&mut self)

Expand the selection to the current mouse cursor position.

source§

fn paste(&mut self, text: &str)

Paste a text into the terminal.

source§

fn toggle_vi_mode(&mut self)

Toggle the vi mode status.

source§

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

source§

fn size_info(&self) -> SizeInfo

source§

fn scroll(&mut self, scroll: Scroll)

source§

fn copy_selection(&mut self, ty: ClipboardType)

source§

fn selection_is_empty(&self) -> bool

source§

fn clear_selection(&mut self)

source§

fn update_selection(&mut self, point: Point, side: Side)

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 mouse_mode(&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 received_count(&mut self) -> &mut usize

source§

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

source§

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

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 spawn_new_instance(&mut self)

source§

fn create_new_window(&mut self)

source§

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

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 advance_search_origin(&mut self, direction: Direction)

source§

fn search_direction(&self) -> Direction

source§

fn search_active(&self) -> bool

source§

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

source§

fn config(&self) -> &UiConfig

source§

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

source§

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

source§

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

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.