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 Displayimpl FFI for Registryimpl FFI for Compositorimpl FFI for Regionimpl FFI for WSurfaceimpl FFI for Outputimpl FFI for Keyboardimpl<S: Surface> FFI for Pointer<S>impl FFI for Seatimpl FFI for Touchimpl FFI for Shellimpl<S: Surface> FFI for ShellSurface<S>impl FFI for Bufferimpl FFI for Shmimpl FFI for ShmPoolimpl FFI for SubCompositorimpl<S: Surface> FFI for SubSurface<S>impl FFI for EGLSurface