pub struct BorrowedWindow<'a>(/* private fields */);Available on crate feature
winio only.Expand description
Raw window handle.
Implementations§
Source§impl<'a> BorrowedWindow<'a>
impl<'a> BorrowedWindow<'a>
Sourcepub unsafe fn win32(hwnd: *mut c_void) -> BorrowedWindow<'a>
Available on Windows and crate feature win32 only.
pub unsafe fn win32(hwnd: *mut c_void) -> BorrowedWindow<'a>
win32 only.Create from Win32 HWND.
§Safety
- The caller must ensure that
hwndis a valid handle for the lifetime'a. hwndmust not be null.
Trait Implementations§
Source§impl AsWindow for BorrowedWindow<'_>
impl AsWindow for BorrowedWindow<'_>
Source§fn as_window(&self) -> BorrowedWindow<'_>
fn as_window(&self) -> BorrowedWindow<'_>
Get the window handle.
Source§impl<'a> Clone for BorrowedWindow<'a>
impl<'a> Clone for BorrowedWindow<'a>
Source§fn clone(&self) -> BorrowedWindow<'a>
fn clone(&self) -> BorrowedWindow<'a>
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<'a, T> From<&'a T> for BorrowedWindow<'a>
impl<'a, T> From<&'a T> for BorrowedWindow<'a>
Source§fn from(value: &'a T) -> BorrowedWindow<'a>
fn from(value: &'a T) -> BorrowedWindow<'a>
Converts to this type from the input type.
impl<'a> Copy for BorrowedWindow<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorrowedWindow<'a>
impl<'a> RefUnwindSafe for BorrowedWindow<'a>
impl<'a> !Send for BorrowedWindow<'a>
impl<'a> !Sync for BorrowedWindow<'a>
impl<'a> Unpin for BorrowedWindow<'a>
impl<'a> UnsafeUnpin for BorrowedWindow<'a>
impl<'a> UnwindSafe for BorrowedWindow<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more