pub struct WindowId(/* private fields */);
Expand description
A unique identifier for a window. It is used to track windows across different platforms.
§Platform-specific
- Windows: The ID is a value of
HWND
. - macOS: The ID is a unique within the current user session.
It is called a window number and same as
CGWindowID
.
Implementations§
Source§impl WindowId
impl WindowId
pub const fn new(id: PlatformWindowId) -> Self
Sourcepub fn platform_window_id(&self) -> &PlatformWindowId
pub fn platform_window_id(&self) -> &PlatformWindowId
Returns the underlying platform-specific window identifier as a reference.
Sourcepub const fn into_platform_window_id(self) -> PlatformWindowId
pub const fn into_platform_window_id(self) -> PlatformWindowId
Returns the underlying platform-specific window identifier.
Trait Implementations§
impl Copy for WindowId
impl Eq for WindowId
impl Send for WindowId
impl StructuralPartialEq for WindowId
impl Sync for WindowId
Auto Trait Implementations§
impl Freeze for WindowId
impl RefUnwindSafe for WindowId
impl Unpin for WindowId
impl UnwindSafe for WindowId
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