pub enum OverlayTarget {
RawHandle {
display: RawDisplayHandle,
window: RawWindowHandle,
},
}Expand description
The platform object an OverlaySurface presents into.
The variants mirror wgpu::SurfaceTargetUnsafe’s raw ones; the pointer
and handles are the caller’s, borrowed for the surface’s whole life (see
OverlaySurface::new’s # Safety).
Variants§
RawHandle
A raw display and window handle — Android’s ANativeWindow
(Self::android_ndk_window) and any other raw-window-handle host.
Fields
§
display: RawDisplayHandleThe display the window lives on.
§
window: RawWindowHandleThe window to present into.
Implementations§
Source§impl OverlayTarget
impl OverlayTarget
Sourcepub fn android_ndk_window(window: NonNull<c_void>) -> Self
pub fn android_ndk_window(window: NonNull<c_void>) -> Self
The Android target for an acquired ANativeWindow*.
Trait Implementations§
Source§impl Clone for OverlayTarget
impl Clone for OverlayTarget
impl Copy for OverlayTarget
Auto Trait Implementations§
impl !Send for OverlayTarget
impl !Sync for OverlayTarget
impl Freeze for OverlayTarget
impl RefUnwindSafe for OverlayTarget
impl Unpin for OverlayTarget
impl UnsafeUnpin for OverlayTarget
impl UnwindSafe for OverlayTarget
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