Struct raw_window_handle::DisplayHandle
source · #[repr(transparent)]pub struct DisplayHandle<'a> { /* private fields */ }Available on crate feature
std or non-Android only.Expand description
The handle to the display controller of the windowing system.
This is the primary return type of the HasDisplayHandle trait. It is guaranteed to contain
a valid platform-specific display handle for its lifetime.
Get the underlying raw display handle with the HasRawDisplayHandle trait.
Implementations§
source§impl<'a> DisplayHandle<'a>
impl<'a> DisplayHandle<'a>
sourcepub unsafe fn borrow_raw(raw: RawDisplayHandle) -> Self
pub unsafe fn borrow_raw(raw: RawDisplayHandle) -> Self
Create a DisplayHandle from a RawDisplayHandle.
Safety
The RawDisplayHandle must be valid for the lifetime.
Trait Implementations§
source§impl<'a> Clone for DisplayHandle<'a>
impl<'a> Clone for DisplayHandle<'a>
source§impl Debug for DisplayHandle<'_>
impl Debug for DisplayHandle<'_>
source§impl<'a> HasDisplayHandle for DisplayHandle<'a>
impl<'a> HasDisplayHandle for DisplayHandle<'a>
source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
source§impl HasRawDisplayHandle for DisplayHandle<'_>
impl HasRawDisplayHandle for DisplayHandle<'_>
fn raw_display_handle(&self) -> RawDisplayHandle
source§impl<'a> Hash for DisplayHandle<'a>
impl<'a> Hash for DisplayHandle<'a>
source§impl<'a> PartialEq<DisplayHandle<'a>> for DisplayHandle<'a>
impl<'a> PartialEq<DisplayHandle<'a>> for DisplayHandle<'a>
source§fn eq(&self, other: &DisplayHandle<'a>) -> bool
fn eq(&self, other: &DisplayHandle<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.