pub struct JoinedWindow<T: Clone + 'static> {
pub world: DndWorld<T>,
pub key: WindowKey,
pub geometry: WindowGeometry,
}Expand description
A provider’s handle to the world it joined: the world, this window’s key, and this window’s geometry - everything the pointer path needs to think cross-window.
Fields§
§world: DndWorld<T>§key: WindowKey§geometry: WindowGeometryImplementations§
Source§impl<T: Clone + 'static> JoinedWindow<T>
impl<T: Clone + 'static> JoinedWindow<T>
Sourcepub fn location(&self, zone: ZoneId) -> ZoneLocation
pub fn location(&self, zone: ZoneId) -> ZoneLocation
Qualify one of this window’s local zone ids for world state.
Sourcepub fn enter(&self, location: ZoneLocation)
pub fn enter(&self, location: ZoneLocation)
Mark a window-qualified zone as hovered. Custom world-aware sources should use this rather than the legacy id-only context method.
Sourcepub fn clear_hover(&self)
pub fn clear_hover(&self)
Clear both qualified world hover and the legacy context hover.
Sourcepub fn is_over(&self, zone: ZoneId) -> bool
pub fn is_over(&self, zone: ZoneId) -> bool
Whether this exact window/zone pair owns the world hover.
Sourcepub fn local_pointer(&self) -> Option<Point>
pub fn local_pointer(&self) -> Option<Point>
Latest global pointer converted into this window’s client CSS coordinates. If geometry disappeared mid-gesture, the origin window retains its established context-local fallback.
Trait Implementations§
Source§impl<T: Clone + 'static> Clone for JoinedWindow<T>
impl<T: Clone + 'static> Clone for JoinedWindow<T>
impl<T: Clone + 'static> Copy for JoinedWindow<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for JoinedWindow<T>
impl<T> !Send for JoinedWindow<T>
impl<T> !Sync for JoinedWindow<T>
impl<T> !UnwindSafe for JoinedWindow<T>
impl<T> Freeze for JoinedWindow<T>
impl<T> Unpin for JoinedWindow<T>
impl<T> UnsafeUnpin for JoinedWindow<T>where
DndWorld<T>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.