Struct surfman::platform::unix::x11::connection::NativeConnection
source · pub struct NativeConnection {
pub egl_display: *const c_void,
pub x11_display: *mut Display,
}
Expand description
Wrapper for an X11 and EGL display.
Fields§
§egl_display: *const c_void
The EGL display associated with that X11 display.
You can obtain this with eglGetPlatformDisplay()
.
It is assumed that this EGL display is already initialized, via eglInitialize()
.
x11_display: *mut Display
The corresponding Xlib Display. This must be present; do not pass NULL.
Trait Implementations§
source§impl Clone for NativeConnection
impl Clone for NativeConnection
source§fn clone(&self) -> NativeConnection
fn clone(&self) -> NativeConnection
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for NativeConnection
impl !Send for NativeConnection
impl !Sync for NativeConnection
impl Unpin for NativeConnection
impl UnwindSafe for NativeConnection
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