Struct alacritty::event::ActionContext
source · 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>
impl<'a, N: Notify + 'a, T: EventListener> ActionContext<'a, N, T>
fn update_search(&mut self)
sourcefn search_reset_state(&mut self)
fn search_reset_state(&mut self)
Reset terminal to the state before search was started.
sourcefn goto_match(&mut self, limit: Option<usize>)
fn goto_match(&mut self, limit: Option<usize>)
Jump to the first regex match from the search origin.
sourcefn exit_search(&mut self)
fn exit_search(&mut self)
Cleanup the search state.
sourcefn update_cursor_blinking(&mut self)
fn update_cursor_blinking(&mut self)
Update the cursor blinking state.
fn schedule_blinking(&mut self)
fn schedule_blinking_timeout(&mut self)
Trait Implementations§
source§impl<'a, N: Notify + 'a, T: EventListener> ActionContext<T> for ActionContext<'a, N, T>
impl<'a, N: Notify + 'a, T: EventListener> ActionContext<T> for ActionContext<'a, N, T>
source§fn mark_dirty(&mut self)
fn mark_dirty(&mut self)
Request a redraw.
source§fn search_history_previous(&mut self)
fn search_history_previous(&mut self)
Go to the previous regex in the search history.
source§fn search_history_next(&mut self)
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>
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)
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)
fn hint_input(&mut self, c: char)
Process a new character for keyboard hints.
source§fn trigger_hint(&mut self, hint: &HintMatch)
fn trigger_hint(&mut self, hint: &HintMatch)
Trigger a hint action.
source§fn expand_selection(&mut self)
fn expand_selection(&mut self)
Expand the selection to the current mouse cursor position.
source§fn toggle_vi_mode(&mut self)
fn toggle_vi_mode(&mut self)
Toggle the vi mode status.
fn write_to_pty<B: Into<Cow<'static, [u8]>>>(&self, val: B)
fn size_info(&self) -> SizeInfo
fn scroll(&mut self, scroll: Scroll)
fn copy_selection(&mut self, ty: ClipboardType)
fn selection_is_empty(&self) -> bool
fn clear_selection(&mut self)
fn update_selection(&mut self, point: Point, side: Side)
fn start_selection(&mut self, ty: SelectionType, point: Point, side: Side)
fn toggle_selection(&mut self, ty: SelectionType, point: Point, side: Side)
fn mouse_mode(&self) -> bool
fn mouse_mut(&mut self) -> &mut Mouse
fn mouse(&self) -> &Mouse
fn touch_purpose(&mut self) -> &mut TouchPurpose
fn received_count(&mut self) -> &mut usize
fn suppress_chars(&mut self) -> &mut bool
fn modifiers(&mut self) -> &mut ModifiersState
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 spawn_new_instance(&mut self)
fn create_new_window(&mut self)
fn spawn_daemon<I, S>(&self, program: &str, args: I)where I: IntoIterator<Item = S> + Debug + Copy, S: AsRef<OsStr>,
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 advance_search_origin(&mut self, direction: Direction)
fn search_direction(&self) -> Direction
fn search_active(&self) -> bool
fn message(&self) -> Option<&Message>
fn config(&self) -> &UiConfig
fn event_loop(&self) -> &EventLoopWindowTarget<Event>
fn clipboard_mut(&mut self) -> &mut Clipboard
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more