[][src]Trait raw_window_handle::HasRawWindowHandle

pub unsafe trait HasRawWindowHandle {
    fn raw_window_handle(&self) -> RawWindowHandle;
}

Window that wraps around a raw window handle.

It is entirely valid behavior for fields within each platform-specific RawWindowHandle variant to be null or 0, and appropriate checking should be done before the handle is used. However, users can safely assume that non-null/0 fields are valid handles, and it is up to the implementor of this trait to ensure that condition is upheld.

The exact handle returned by raw_window_handle must not change during the lifetime of this trait's implementor.

Required methods

Loading content...

Implementors

Loading content...