Trait wayland_client::internals::FFI
[−]
[src]
pub trait FFI { type Ptr; fn ptr(&self) -> *const Self::Ptr; unsafe fn ptr_mut(&self) -> *mut Self::Ptr; }
A trait for structures wrapping a FFI pointer, to access the pointer.
Normal use of the library does not require using this trait, it is only
provided for special situations like EGL requiring the pointer to the
wl_display
, or implementing custom protocol extentions.
Associated Types
type Ptr
Required Methods
fn ptr(&self) -> *const Self::Ptr
Returns a *const
pointer to the underlying wayland object.
unsafe fn ptr_mut(&self) -> *mut Self::Ptr
Returns a *mut
pointer to the underlying wayland object.
Implementors
impl FFI for Display
impl FFI for Registry
impl FFI for Compositor
impl FFI for Region
impl FFI for WSurface
impl FFI for Output
impl FFI for Keyboard
impl<S: Surface> FFI for Pointer<S>
impl FFI for Seat
impl FFI for Touch
impl FFI for Shell
impl<S: Surface> FFI for ShellSurface<S>
impl FFI for Buffer
impl FFI for Shm
impl FFI for ShmPool
impl FFI for SubCompositor
impl<S: Surface> FFI for SubSurface<S>
impl FFI for EGLSurface