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.