Skip to main content

DockDragDiagnostics

Struct DockDragDiagnostics 

Source
pub struct DockDragDiagnostics {
Show 29 fields pub pointer_id: PointerId, pub source_window: AppWindowId, pub current_window: AppWindowId, pub position: Point, pub start_position: Point, pub cursor_grab_offset: Option<Point>, pub follow_window: Option<AppWindowId>, pub cursor_screen_pos_raw_physical_px: Option<Point>, pub cursor_screen_pos_used_physical_px: Option<Point>, pub cursor_screen_pos_was_clamped: bool, pub cursor_override_active: bool, pub current_window_outer_pos_physical_px: Option<Point>, pub current_window_decoration_offset_physical_px: Option<Point>, pub current_window_client_origin_screen_physical_px: Option<Point>, pub current_window_client_origin_source_platform: bool, pub current_window_scale_factor_x1000_from_runner: Option<u32>, pub current_window_local_pos_from_screen_logical_px: Option<Point>, pub current_window_scale_factor_x1000: Option<u32>, pub kind: DragKindId, pub dragging: bool, pub cross_window_hover: bool, pub payload_ghost_visible: bool, pub transparent_payload_applied: bool, pub transparent_payload_hit_test_passthrough_applied: bool, pub window_under_cursor_source: WindowUnderCursorSource, pub moving_window: Option<AppWindowId>, pub moving_window_scale_factor_x1000: Option<u32>, pub window_under_moving_window: Option<AppWindowId>, pub window_under_moving_window_source: WindowUnderCursorSource,
}

Fields§

§pointer_id: PointerId§source_window: AppWindowId§current_window: AppWindowId§position: Point

Window-local logical cursor position at the time the snapshot was published.

§start_position: Point

Window-local logical cursor position when the drag session started.

§cursor_grab_offset: Option<Point>

Cursor grab offset in window-local logical coordinates (ImGui-style multi-viewport anchor).

§follow_window: Option<AppWindowId>

The OS window requested to follow the cursor for this drag session (if any).

§cursor_screen_pos_raw_physical_px: Option<Point>

Best-effort diagnostics hint: raw cursor position in screen-space physical pixels, as observed by the runner.

§cursor_screen_pos_used_physical_px: Option<Point>

Best-effort diagnostics hint: cursor position in screen-space physical pixels used for local position conversion (may be clamped during scripted injection).

§cursor_screen_pos_was_clamped: bool§cursor_override_active: bool§current_window_outer_pos_physical_px: Option<Point>

Best-effort diagnostics hint: outer position of current_window in screen-space physical pixels when routing was computed.

§current_window_decoration_offset_physical_px: Option<Point>

Best-effort diagnostics hint: decoration offset (client origin relative to outer origin) in physical pixels for current_window.

§current_window_client_origin_screen_physical_px: Option<Point>

Best-effort diagnostics hint: computed client origin (screen-space physical px) for current_window.

§current_window_client_origin_source_platform: bool§current_window_scale_factor_x1000_from_runner: Option<u32>

Best-effort diagnostics hint: scale factor used by the runner when converting screen physical pixels into window-local logical pixels.

§current_window_local_pos_from_screen_logical_px: Option<Point>

Best-effort diagnostics hint: local position derived from the screen-space cursor position

  • client origin + scale factor.
§current_window_scale_factor_x1000: Option<u32>

Best-effort diagnostics hint: scale factor (DPI) of current_window at the time the snapshot was published.

§kind: DragKindId

The drag kind for the active dock drag session.

§dragging: bool§cross_window_hover: bool§payload_ghost_visible: bool

True when the shell-local dock payload ghost should currently paint in this window.

This reflects shell choreography only; it does not imply a native or external drag preview.

§transparent_payload_applied: bool

True when the runner has applied an ImGui-style “transparent payload” treatment to the moving dock window (e.g. click-through/NoInputs while following the cursor).

§transparent_payload_hit_test_passthrough_applied: bool

Best-effort diagnostics hint: true when the runner successfully applied click-through hit-test passthrough to the moving dock window while transparent payload is enabled.

§window_under_cursor_source: WindowUnderCursorSource

Best-effort diagnostics hint: which mechanism was used to select the hovered window during cross-window drag routing (OS-backed vs heuristic).

§moving_window: Option<AppWindowId>

Best-effort diagnostics hint: OS window currently being moved by the runner for this drag session (ImGui-style “follow window” multi-viewport behavior).

§moving_window_scale_factor_x1000: Option<u32>

Best-effort diagnostics hint: scale factor (DPI) of Self::moving_window at the time the snapshot was published.

§window_under_moving_window: Option<AppWindowId>

Best-effort diagnostics hint: when Self::moving_window is set, the window considered “under” the moving window at the current cursor position.

§window_under_moving_window_source: WindowUnderCursorSource

Best-effort diagnostics hint: which mechanism was used to select Self::window_under_moving_window.

Trait Implementations§

Source§

impl Clone for DockDragDiagnostics

Source§

fn clone(&self) -> DockDragDiagnostics

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DockDragDiagnostics

Source§

impl Debug for DockDragDiagnostics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DockDragDiagnostics

Source§

fn eq(&self, other: &DockDragDiagnostics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DockDragDiagnostics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.