pub fn create_buffer(&self, offset: i32, width: i32, height: i32, stride: i32, format: u32,) -> WlBuffer {
        let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), WL_SHM_POOL_CREATE_BUFFER, &wl_buffer_interface as *const wl_interface
           , ptr::null_mut::<wl_proxy>(), offset, width, height, stride, format) };
        let mut proxy: WlBuffer = unsafe { Proxy::from_ptr(ptr) };
        let evt_iter = eventiter_from_internals(self.evq.clone());
        proxy.set_evt_iterator(&evt_iter);
        ::std::mem::forget(evt_iter); // Don't run the destructor !
        proxy
    }
/// create a buffer from the pool
///
/// Create a wl_buffer object from the pool.
///
/// The buffer is created offset bytes into the pool and has
/// width and height as specified.  The stride arguments specifies
/// the number of bytes from beginning of one row to the beginning
/// of the next.  The format is the pixel format of the buffer and
/// must be one of those advertised through the wl_shm.format event.
///
/// A buffer will keep a reference to the pool it was created from
/// so it is valid to destroy the pool immediately after creating
/// a buffer from it.
create a buffer from the pool
Create a wl_buffer object from the pool.

The buffer is created offset bytes into the pool and has
width and height as specified.  The stride arguments specifies
the number of bytes from beginning of one row to the beginning
of the next.  The format is the pixel format of the buffer and
must be one of those advertised through the wl_shm.format event.

A buffer will keep a reference to the pool it was created from
so it is valid to destroy the pool immediately after creating
a buffer from it.
create a buffer from the pool Create a wl_buffer object from the pool . The buffer is created offset bytes into the pool and has width and height as specified . The stride arguments specifies the number of bytes from beginning of one row to the beginning of the next . The format is the pixel format of the buffer and must be one of those advertised through the wl_shm . format event . A buffer will keep a reference to the pool it was created from so it is valid to destroy the pool immediately after creating a buffer from it .
pub fn create_buffer(&self, offset: i32, width: i32, height: i32, stride: i32, format: u32,) -> WlBuffer {
        let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), WL_SHM_POOL_CREATE_BUFFER, &wl_buffer_interface as *const wl_interface
           , ptr::null_mut::<wl_proxy>(), offset, width, height, stride, format) };
        let mut proxy: WlBuffer = unsafe { Proxy::from_ptr(ptr) };
        let evt_iter = eventiter_from_internals(self.evq.clone());
        proxy.set_evt_iterator(&evt_iter);
        ::std::mem::forget(evt_iter); // Don't run the destructor !
        proxy
    }
pub fn create_buffer ( & self , offset : i32 , width : i32 , height : i32 , stride : i32 , format : u32 , ) -> WlBuffer { let ptr = unsafe { ffi_dispatch ! ( WAYLAND_CLIENT_HANDLE wl_proxy_marshal_constructor self ptr ( ) WL_SHM_POOL_CREATE_BUFFER wl_buffer_interface as const wl_interface ptr null_mut wl_proxy ( ) offset width height stride format ) } ; let mut proxy : WlBuffer = unsafe { Proxy :: from_ptr ( ptr ) } ; let evt_iter = eventiter_from_internals ( self . evq . clone ( ) ) ; proxy . set_evt_iterator ( & evt_iter ) ; :: std :: mem :: forget ( evt_iter ) ; // Don't run the destructor ! proxy }
create a buffer from the pool
Create a wl_buffer object from the pool.
create a buffer from the pool Create a wl_buffer object from the pool .
&self
offset
i32
width
i32
height
i32
stride
i32
format
u32
&self
offset
i32
width
i32
height
i32
stride
i32
format
u32