#[repr(C)]pub struct XcbWindowHandle {
pub window: NonZeroU32,
pub visual_id: Option<NonZeroU32>,
}
Expand description
raw_window_handle_ffi:
This type is ABI-stable and FFI-compatible analogue for raw_window_handle::XcbWindowHandle
.
Can be converted to and from the referenced type.
Fields§
§window: NonZeroU32
An X11 xcb_window_t
.
visual_id: Option<NonZeroU32>
An X11 xcb_visualid_t
.
Implementations§
Source§impl XcbWindowHandle
impl XcbWindowHandle
Sourcepub unsafe fn into(self) -> XcbWindowHandle
pub unsafe fn into(self) -> XcbWindowHandle
Converts FFI type back to the original raw_window_handle::AppKitWindowHandle
.
§Safety
Original type raw_window_handle::AppKitWindowHandle
is marked as non_exaustive
,
and therefore it is impossible to convert to it completely safely.
Trait Implementations§
Source§impl Clone for XcbWindowHandle
impl Clone for XcbWindowHandle
Source§fn clone(&self) -> XcbWindowHandle
fn clone(&self) -> XcbWindowHandle
Returns a duplicate 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 moreSource§impl Debug for XcbWindowHandle
impl Debug for XcbWindowHandle
Source§impl From<XcbWindowHandle> for RawWindowHandle
impl From<XcbWindowHandle> for RawWindowHandle
Source§fn from(val: XcbWindowHandle) -> RawWindowHandle
fn from(val: XcbWindowHandle) -> RawWindowHandle
Converts to this type from the input type.
Source§impl From<XcbWindowHandle> for XcbWindowHandle
impl From<XcbWindowHandle> for XcbWindowHandle
Source§fn from(value: XcbWindowHandle) -> Self
fn from(value: XcbWindowHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for XcbWindowHandle
impl Hash for XcbWindowHandle
Source§impl PartialEq for XcbWindowHandle
impl PartialEq for XcbWindowHandle
impl Copy for XcbWindowHandle
impl Eq for XcbWindowHandle
impl Send for XcbWindowHandle
impl StructuralPartialEq for XcbWindowHandle
impl Sync for XcbWindowHandle
Auto Trait Implementations§
impl Freeze for XcbWindowHandle
impl RefUnwindSafe for XcbWindowHandle
impl Unpin for XcbWindowHandle
impl UnwindSafe for XcbWindowHandle
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