Trait smithay_clipboard::dnd::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§