[][src]Trait wayland_client::HandledBy

pub trait HandledBy<T>: Interface + Sized {
    fn handle(handler: &mut T, event: Self::Event, proxy: Self);
}

Provides a callback function to handle events of the implementing interface via T.

This trait is meant to be implemented automatically by code generated with wayland-scanner.

Required methods

fn handle(handler: &mut T, event: Self::Event, proxy: Self)

Handles an event.

Loading content...

Implementors

impl<M, I> HandledBy<Sink<M>> for I where
    I: Interface,
    M: From<(I::Event, I)>, 
[src]

impl<T: EventHandler> HandledBy<T> for WlBuffer[src]

impl<T: EventHandler> HandledBy<T> for WlCallback[src]

impl<T: EventHandler> HandledBy<T> for WlCompositor[src]

impl<T: EventHandler> HandledBy<T> for WlDataDevice[src]

impl<T: EventHandler> HandledBy<T> for WlDataDeviceManager[src]

impl<T: EventHandler> HandledBy<T> for WlDataOffer[src]

impl<T: EventHandler> HandledBy<T> for WlDataSource[src]

impl<T: EventHandler> HandledBy<T> for WlDisplay[src]

impl<T: EventHandler> HandledBy<T> for WlKeyboard[src]

impl<T: EventHandler> HandledBy<T> for WlOutput[src]

impl<T: EventHandler> HandledBy<T> for WlPointer[src]

impl<T: EventHandler> HandledBy<T> for WlRegion[src]

impl<T: EventHandler> HandledBy<T> for WlRegistry[src]

impl<T: EventHandler> HandledBy<T> for WlSeat[src]

impl<T: EventHandler> HandledBy<T> for WlShell[src]

impl<T: EventHandler> HandledBy<T> for WlShellSurface[src]

impl<T: EventHandler> HandledBy<T> for WlShm[src]

impl<T: EventHandler> HandledBy<T> for WlShmPool[src]

impl<T: EventHandler> HandledBy<T> for WlSubcompositor[src]

impl<T: EventHandler> HandledBy<T> for WlSubsurface[src]

impl<T: EventHandler> HandledBy<T> for WlSurface[src]

impl<T: EventHandler> HandledBy<T> for WlTouch[src]

Loading content...