Trait wayland_client::Proxy
[−]
[src]
pub trait Proxy { fn ptr(&self) -> *mut wl_proxy; fn interface() -> *mut wl_interface; fn interface_name() -> &'static str; fn version() -> u32; fn id(&self) -> ProxyId; unsafe fn from_ptr(ptr: *mut wl_proxy) -> Self; unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> Self; fn set_evt_iterator(&mut self, iter: &EventIterator); }
Required Methods
fn ptr(&self) -> *mut wl_proxy
fn interface() -> *mut wl_interface
fn interface_name() -> &'static str
The internal name of this interface, as advertized by the registry if it is a global.
fn version() -> u32
The maximum version of this interface handled by the library.
fn id(&self) -> ProxyId
Get the id of this proxy
unsafe fn from_ptr(ptr: *mut wl_proxy) -> Self
Creates a proxy from a fresh ptr
unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> Self
Creates a proxy from a ptr that is managed elsewhere
As opposed to from_ptr
, this function will not try to
set a listener/dispatcher for this proxy, and thus its
events won't be available.
fn set_evt_iterator(&mut self, iter: &EventIterator)
Set the event iterator associated to this proxy
Implementors
impl Proxy for WlDisplay
impl Proxy for WlRegistry
impl Proxy for WlCallback
impl Proxy for WlCompositor
impl Proxy for WlShmPool
impl Proxy for WlShm
impl Proxy for WlBuffer
impl Proxy for WlDataOffer
impl Proxy for WlDataSource
impl Proxy for WlDataDevice
impl Proxy for WlDataDeviceManager
impl Proxy for WlShell
impl Proxy for WlShellSurface
impl Proxy for WlSurface
impl Proxy for WlSeat
impl Proxy for WlPointer
impl Proxy for WlKeyboard
impl Proxy for WlTouch
impl Proxy for WlOutput
impl Proxy for WlRegion
impl Proxy for WlSubcompositor
impl Proxy for WlSubsurface