pub fn frame_buffer(&self, frame: usize) -> Option<CursorImageBuffer> {
        if frame >= self.image_count() {
            None
        } else {
            unsafe {
                let image = *(*self.cursor).images.offset(frame as isize);
                let ptr = ffi_dispatch!(WAYLAND_CURSOR_HANDLE, wl_cursor_image_get_buffer, image);
                let buffer = Proxy::from_c_ptr(ptr).into();

                Some(CursorImageBuffer {
                    _cursor: PhantomData,
                    buffer,
                })
            }
        }
    }
/// Returns a `CursorImageBuffer` containing the given image of an animation.
///
/// It can be attached to a surface as a classic `WlBuffer`.
///
/// Returns `None` if the frame is out of bounds.
///
/// Note: destroying this buffer (using the `destroy` method) will corrupt
/// your theme data, so you might not want to do it.
Returns a `CursorImageBuffer` containing the given image of an animation.
It can be attached to a surface as a classic `WlBuffer`.

Returns `None` if the frame is out of bounds.

destroying this buffer (using the `destroy` method) will corrupt
your theme data, so you might not want to do it.
Returns a ` CursorImageBuffer ` containing the given image of an animation . It can be attached to a surface as a classic ` WlBuffer ` . Returns ` None ` if the frame is out of bounds . destroying this buffer ( using the ` destroy ` method ) will corrupt your theme data so you might not want to do it .
pub fn frame_buffer(&self, frame: usize) -> Option<CursorImageBuffer> {
        if frame >= self.image_count() {
            None
        } else {
            unsafe {
                let image = *(*self.cursor).images.offset(frame as isize);
                let ptr = ffi_dispatch!(WAYLAND_CURSOR_HANDLE, wl_cursor_image_get_buffer, image);
                let buffer = Proxy::from_c_ptr(ptr).into();
                Some(CursorImageBuffer {
                    _cursor: PhantomData,
                    buffer,
                })
            }
        }
    }
pub fn frame_buffer ( & self , frame : usize ) -> Option < CursorImageBuffer > { if frame >= self . image_count ( ) { None } else { unsafe { let image = * ( * self . cursor ) . images . offset ( frame as isize ) ; let ptr = ffi_dispatch ! ( WAYLAND_CURSOR_HANDLE wl_cursor_image_get_buffer image ) ; let buffer = Proxy :: from_c_ptr ( ptr ) . into ( ) ; Some ( CursorImageBuffer { _cursor : PhantomData , buffer , } ) } } }
Returns a `CursorImageBuffer` containing the given image of an animation.
Returns a ` CursorImageBuffer ` containing the given image of an animation .
&self
frame
usize
&self
frame
usize