pub enum WindowHoverDetectionQuality {
None,
BestEffort,
Reliable,
}Expand description
Windowing quality signal: whether the backend can reliably determine which window is under the cursor.
This is used as a degradation signal for editor-grade multi-window UX (e.g. docking tear-off hover target selection under overlap).
Variants§
None
The backend cannot reliably determine window-under-cursor (or cannot provide global cursor position updates needed to infer it).
BestEffort
Best-effort: selection may be stale/missing or ambiguous under overlap.
Reliable
Reliable enough for editor-grade hover selection.
Implementations§
Source§impl WindowHoverDetectionQuality
impl WindowHoverDetectionQuality
pub fn as_str(self) -> &'static str
pub fn clamp_to_available(self, available: Self) -> Self
Trait Implementations§
Source§impl Clone for WindowHoverDetectionQuality
impl Clone for WindowHoverDetectionQuality
Source§fn clone(&self) -> WindowHoverDetectionQuality
fn clone(&self) -> WindowHoverDetectionQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowHoverDetectionQuality
impl Debug for WindowHoverDetectionQuality
Source§impl Default for WindowHoverDetectionQuality
impl Default for WindowHoverDetectionQuality
Source§fn default() -> WindowHoverDetectionQuality
fn default() -> WindowHoverDetectionQuality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowHoverDetectionQuality
impl<'de> Deserialize<'de> for WindowHoverDetectionQuality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for WindowHoverDetectionQuality
impl Eq for WindowHoverDetectionQuality
impl StructuralPartialEq for WindowHoverDetectionQuality
Auto Trait Implementations§
impl Freeze for WindowHoverDetectionQuality
impl RefUnwindSafe for WindowHoverDetectionQuality
impl Send for WindowHoverDetectionQuality
impl Sync for WindowHoverDetectionQuality
impl Unpin for WindowHoverDetectionQuality
impl UnsafeUnpin for WindowHoverDetectionQuality
impl UnwindSafe for WindowHoverDetectionQuality
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
Mutably borrows from an owned value. Read more