Struct alacritty::event::ActionContext
source · pub struct ActionContext<'a, N, T> {Show 19 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 modifiers: &'a mut Modifiers,
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_proxy: &'a EventLoopProxy<Event>,
pub scheduler: &'a mut Scheduler,
pub search_state: &'a mut SearchState,
pub inline_search_state: &'a mut InlineSearchState,
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
§modifiers: &'a mut Modifiers
§display: &'a mut Display
§message_buffer: &'a mut MessageBuffer
§config: &'a UiConfig
§cursor_blink_timed_out: &'a mut bool
§event_proxy: &'a EventLoopProxy<Event>
§scheduler: &'a mut Scheduler
§search_state: &'a mut SearchState
§inline_search_state: &'a mut InlineSearchState
§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)
sourcefn inline_search(&mut self, direction: Direction)
fn inline_search(&mut self, direction: Direction)
Perform vi mode inline search in the specified direction.
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 on_terminal_input_start(&mut self)
fn on_terminal_input_start(&mut self)
Handle beginning of terminal text input.
source§fn toggle_vi_mode(&mut self)
fn toggle_vi_mode(&mut self)
Toggle the vi mode status.
source§fn inline_search_state(&mut self) -> &mut InlineSearchState
fn inline_search_state(&mut self) -> &mut InlineSearchState
Get vi inline search state.
source§fn start_inline_search(&mut self, direction: Direction, stop_short: bool)
fn start_inline_search(&mut self, direction: Direction, stop_short: bool)
Start vi mode inline search.
source§fn inline_search_next(&mut self)
fn inline_search_next(&mut self)
Jump to the next matching character in the line.
source§fn inline_search_previous(&mut self)
fn inline_search_previous(&mut self)
Jump to the next matching character in the line.
source§fn inline_search_input(&mut self, text: &str)
fn inline_search_input(&mut self, text: &str)
Process input during inline search.
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 modifiers(&mut self) -> &mut Modifiers
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)
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 clipboard_mut(&mut self) -> &mut Clipboard
fn scheduler_mut(&mut self) -> &mut Scheduler
Auto Trait Implementations§
impl<'a, N, T> Freeze for ActionContext<'a, N, T>
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.