Struct raw_window_handle::XcbDisplayHandle
source · [−]Expand description
Raw display handle for Xcb.
Construction
let display_handle = XcbDisplayHandle::empty();
/* set fields */
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.connection: *mut c_void
A pointer to an X server xcb_connection_t
.
screen: c_int
An X11 screen to use with this display handle.
Note, that X11 could have multiple screens, however graphics APIs could work only with one screen at the time, given that multiple screens usually reside on different GPUs.
Implementations
Trait Implementations
sourceimpl Clone for XcbDisplayHandle
impl Clone for XcbDisplayHandle
sourcefn clone(&self) -> XcbDisplayHandle
fn clone(&self) -> XcbDisplayHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for XcbDisplayHandle
impl Debug for XcbDisplayHandle
sourceimpl Hash for XcbDisplayHandle
impl Hash for XcbDisplayHandle
sourceimpl PartialEq<XcbDisplayHandle> for XcbDisplayHandle
impl PartialEq<XcbDisplayHandle> for XcbDisplayHandle
sourcefn eq(&self, other: &XcbDisplayHandle) -> bool
fn eq(&self, other: &XcbDisplayHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &XcbDisplayHandle) -> bool
fn ne(&self, other: &XcbDisplayHandle) -> bool
This method tests for !=
.
impl Copy for XcbDisplayHandle
impl Eq for XcbDisplayHandle
impl StructuralEq for XcbDisplayHandle
impl StructuralPartialEq for XcbDisplayHandle
Auto Trait Implementations
impl RefUnwindSafe for XcbDisplayHandle
impl !Send for XcbDisplayHandle
impl !Sync for XcbDisplayHandle
impl Unpin for XcbDisplayHandle
impl UnwindSafe for XcbDisplayHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more