Function wlc_sys_with_elogind::wlc_view_from_surface [] [src]

pub unsafe extern "C" fn wlc_view_from_surface(
    surface: wlc_resource,
    client: *mut c_void,
    interface: *const c_void,
    implementation: *const c_void,
    version: u32,
    id: u32,
    userdata: *mut c_void
) -> wlc_handle

Turns wl_surface into a wlc view. Returns 0 on failure. This will also trigger view.created callback as any view would. For the extra arguments see details of wl_resource_create and wl_resource_set_implementation. The extra arguments may be set NULL, if you are not implementing Wayland interface for the surface role.