smithay_clipboard::dnd

Trait RawSurface

Source
pub trait RawSurface {
    // Required method
    unsafe fn get_ptr(&mut self) -> *mut c_void;
}

Required Methods§

Source

unsafe fn get_ptr(&mut self) -> *mut c_void

§Safety

returned pointer must be a valid *mut wl_surface pointer, and it must remain valid for as long as RawSurface object is alive.

Implementations on Foreign Types§

Source§

impl RawSurface for WlSurface

Source§

unsafe fn get_ptr(&mut self) -> *mut c_void

Source§

impl<'a> RawSurface for WindowHandle<'a>

Source§

unsafe fn get_ptr(&mut self) -> *mut c_void

Implementors§