pub struct PaneTerminalAdapter { /* private fields */ }Expand description
Deterministic terminal adapter mapping raw Event values into
schema-validated pane semantic interaction events.
Implementations§
Source§impl PaneTerminalAdapter
impl PaneTerminalAdapter
Sourcepub fn new(
config: PaneTerminalAdapterConfig,
) -> Result<Self, PaneDragResizeMachineError>
pub fn new( config: PaneTerminalAdapterConfig, ) -> Result<Self, PaneDragResizeMachineError>
Construct a new adapter with validated drag thresholds.
Sourcepub const fn config(&self) -> PaneTerminalAdapterConfig
pub const fn config(&self) -> PaneTerminalAdapterConfig
Adapter configuration.
Sourcepub fn active_pointer_id(&self) -> Option<u32>
pub fn active_pointer_id(&self) -> Option<u32>
Active pointer id currently tracked by the adapter, if any.
Sourcepub const fn machine_state(&self) -> PaneDragResizeState
pub const fn machine_state(&self) -> PaneDragResizeState
Current pane drag/resize machine state.
Sourcepub fn translate(
&mut self,
event: &Event,
target_hint: Option<PaneResizeTarget>,
) -> PaneTerminalDispatch
pub fn translate( &mut self, event: &Event, target_hint: Option<PaneResizeTarget>, ) -> PaneTerminalDispatch
Translate one raw terminal event into pane semantic event(s).
target_hint is provided by host hit-testing (upcoming pane-terminal
tasks). Pointer drag/move/up reuse active target continuity once armed.
Sourcepub fn translate_with_handles(
&mut self,
event: &Event,
handles: &[PaneTerminalSplitterHandle],
) -> PaneTerminalDispatch
pub fn translate_with_handles( &mut self, event: &Event, handles: &[PaneTerminalSplitterHandle], ) -> PaneTerminalDispatch
Translate one raw terminal event while resolving splitter targets from terminal hit regions.
This is a convenience wrapper for host code that already has splitter
handle regions from pane_terminal_splitter_handles.
Sourcepub fn force_cancel_all(&mut self) -> Option<PaneCleanupDiagnostics>
pub fn force_cancel_all(&mut self) -> Option<PaneCleanupDiagnostics>
Force-cancel any active pane interaction and return diagnostic info.
This is the safety-valve for cleanup paths (RAII guard drops, signal handlers, panic hooks) where constructing a proper semantic event is not feasible. It resets both the underlying drag/resize state machine and the adapter’s active-pointer tracking.
Returns None if no interaction was active.
Trait Implementations§
Source§impl Clone for PaneTerminalAdapter
impl Clone for PaneTerminalAdapter
Source§fn clone(&self) -> PaneTerminalAdapter
fn clone(&self) -> PaneTerminalAdapter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more