#[repr(C)]pub struct SsWindowHandle {
pub kind: u32,
pub screen: i32,
pub window: *mut c_void,
pub display: *mut c_void,
}Expand description
A platform window, flattened for the ABI. Which fields are read depends on
kind (SS_WINDOW_*); unused ones must be null/zero.
Fields§
§kind: u32One of the SS_WINDOW_* constants.
screen: i32X11 screen number. Ignored unless kind is SS_WINDOW_XLIB.
window: *mut c_voidWin32: HWND. AppKit: NSView*. Metal: CAMetalLayer*.
Xlib: the Window XID cast to a pointer. Wayland: wl_surface*.
display: *mut c_voidWin32: HINSTANCE (may be null). Xlib: Display*. Wayland: wl_display*.
Unused otherwise.
Trait Implementations§
Source§impl Clone for SsWindowHandle
impl Clone for SsWindowHandle
impl Copy for SsWindowHandle
Auto Trait Implementations§
impl !Send for SsWindowHandle
impl !Sync for SsWindowHandle
impl Freeze for SsWindowHandle
impl RefUnwindSafe for SsWindowHandle
impl Unpin for SsWindowHandle
impl UnsafeUnpin for SsWindowHandle
impl UnwindSafe for SsWindowHandle
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