pub struct PanePointerCaptureAdapter { /* private fields */ }Expand description
Deterministic pointer-capture adapter for pane web hosts.
The adapter emits semantic events accepted by PaneDragResizeMachine and
returns host pointer-capture commands that can be wired to DOM
setPointerCapture() / releasePointerCapture().
Implementations§
Source§impl PanePointerCaptureAdapter
impl PanePointerCaptureAdapter
Sourcepub fn new(
config: PanePointerCaptureConfig,
) -> Result<Self, PaneDragResizeMachineError>
pub fn new( config: PanePointerCaptureConfig, ) -> Result<Self, PaneDragResizeMachineError>
Construct a new adapter with validated thresholds.
Sourcepub const fn config(&self) -> PanePointerCaptureConfig
pub const fn config(&self) -> PanePointerCaptureConfig
Adapter configuration.
Sourcepub fn active_pointer_id(&self) -> Option<u32>
pub fn active_pointer_id(&self) -> Option<u32>
Active pointer ID, if any.
Sourcepub const fn machine_state(&self) -> PaneDragResizeState
pub const fn machine_state(&self) -> PaneDragResizeState
Current pane drag/resize state machine state.
Sourcepub fn pointer_down(
&mut self,
target: PaneResizeTarget,
pointer_id: u32,
button: PanePointerButton,
position: PanePointerPosition,
modifiers: PaneModifierSnapshot,
) -> PanePointerDispatch
pub fn pointer_down( &mut self, target: PaneResizeTarget, pointer_id: u32, button: PanePointerButton, position: PanePointerPosition, modifiers: PaneModifierSnapshot, ) -> PanePointerDispatch
Handle pointer-down on a pane splitter target.
Sourcepub fn capture_acquired(&mut self, pointer_id: u32) -> PanePointerDispatch
pub fn capture_acquired(&mut self, pointer_id: u32) -> PanePointerDispatch
Mark browser pointer capture as successfully acquired.
Sourcepub fn pointer_move(
&mut self,
pointer_id: u32,
position: PanePointerPosition,
modifiers: PaneModifierSnapshot,
) -> PanePointerDispatch
pub fn pointer_move( &mut self, pointer_id: u32, position: PanePointerPosition, modifiers: PaneModifierSnapshot, ) -> PanePointerDispatch
Handle pointer-move during an active drag lifecycle.
Sourcepub fn pointer_up(
&mut self,
pointer_id: u32,
button: PanePointerButton,
position: PanePointerPosition,
modifiers: PaneModifierSnapshot,
) -> PanePointerDispatch
pub fn pointer_up( &mut self, pointer_id: u32, button: PanePointerButton, position: PanePointerPosition, modifiers: PaneModifierSnapshot, ) -> PanePointerDispatch
Handle pointer-up and release capture for the active pointer.
Sourcepub fn pointer_cancel(&mut self, pointer_id: Option<u32>) -> PanePointerDispatch
pub fn pointer_cancel(&mut self, pointer_id: Option<u32>) -> PanePointerDispatch
Handle browser pointer-cancel events.
Sourcepub fn pointer_leave(&mut self, pointer_id: u32) -> PanePointerDispatch
pub fn pointer_leave(&mut self, pointer_id: u32) -> PanePointerDispatch
Handle pointer-leave lifecycle events.
Sourcepub fn blur(&mut self) -> PanePointerDispatch
pub fn blur(&mut self) -> PanePointerDispatch
Handle browser blur.
Handle visibility-hidden interruptions.
Sourcepub fn lost_pointer_capture(&mut self, pointer_id: u32) -> PanePointerDispatch
pub fn lost_pointer_capture(&mut self, pointer_id: u32) -> PanePointerDispatch
Handle lostpointercapture; emits cancel and clears active state.
Trait Implementations§
Source§impl Clone for PanePointerCaptureAdapter
impl Clone for PanePointerCaptureAdapter
Source§fn clone(&self) -> PanePointerCaptureAdapter
fn clone(&self) -> PanePointerCaptureAdapter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more