Skip to main content

Compositor

Struct Compositor 

Source
pub struct Compositor { /* private fields */ }

Trait Implementations§

Source§

impl BufferHandler for Compositor

Source§

fn buffer_destroyed(&mut self, _buffer: &WlBuffer)

Called when the client has destroyed the buffer. Read more
Source§

impl ClientDndGrabHandler for Compositor

Source§

fn started( &mut self, source: Option<WlDataSource>, icon: Option<WlSurface>, seat: Seat<Self>, )

A client started a drag’n’drop as response to a user pointer action Read more
Source§

fn dropped( &mut self, target: Option<WlSurface>, validated: bool, seat: Seat<Self>, )

The drag’n’drop action was finished by the user releasing the buttons Read more
Source§

impl CompositorHandler for Compositor

Source§

fn compositor_state(&mut self) -> &mut CompositorState

Source§

fn client_compositor_state<'a>( &self, client: &'a Client, ) -> &'a CompositorClientState

Source§

fn commit(&mut self, surface: &WlSurface)

Surface commit handler Read more
Source§

fn new_surface(&mut self, surface: &WlSurface)

New surface handler. Read more
Source§

fn new_subsurface(&mut self, surface: &WlSurface, parent: &WlSurface)

New subsurface handler. Read more
Source§

fn destroyed(&mut self, _surface: &WlSurface)

The surface was destroyed. Read more
Source§

impl DataDeviceHandler for Compositor

Source§

fn data_device_state(&self) -> &DataDeviceState

Source§

fn action_choice( &mut self, available: DndAction, preferred: DndAction, ) -> DndAction

Action chooser for DnD negociation
Source§

impl Dispatch<WlBuffer, Dmabuf> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlBuffer, request: <WlBuffer as Resource>::Request, data: &Dmabuf, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlBuffer, data: &Dmabuf, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlBuffer, ShmBufferUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlBuffer, request: <WlBuffer as Resource>::Request, data: &ShmBufferUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlBuffer, data: &ShmBufferUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlCallback, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlCallback, request: <WlCallback as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlCallback, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlCompositor, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlCompositor, request: <WlCompositor as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlCompositor, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlDataDeviceManager, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlDataDeviceManager, request: <WlDataDeviceManager as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlDataDeviceManager, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlKeyboard, KeyboardUserData<Compositor>> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlKeyboard, request: <WlKeyboard as Resource>::Request, data: &KeyboardUserData<Compositor>, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlKeyboard, data: &KeyboardUserData<Compositor>, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlOutput, OutputUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlOutput, request: <WlOutput as Resource>::Request, data: &OutputUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlOutput, data: &OutputUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlPointer, PointerUserData<Compositor>> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlPointer, request: <WlPointer as Resource>::Request, data: &PointerUserData<Compositor>, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlPointer, data: &PointerUserData<Compositor>, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlRegion, RegionUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlRegion, request: <WlRegion as Resource>::Request, data: &RegionUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlRegion, data: &RegionUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlSeat, SeatUserData<Compositor>> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlSeat, request: <WlSeat as Resource>::Request, data: &SeatUserData<Compositor>, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlSeat, data: &SeatUserData<Compositor>, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlShm, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlShm, request: <WlShm as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed(state: &mut Self, client: ClientId, resource: &WlShm, data: &())

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlShmPool, ShmPoolUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlShmPool, request: <WlShmPool as Resource>::Request, data: &ShmPoolUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlShmPool, data: &ShmPoolUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlSubcompositor, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlSubcompositor, request: <WlSubcompositor as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlSubcompositor, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlSubsurface, SubsurfaceUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlSubsurface, request: <WlSubsurface as Resource>::Request, data: &SubsurfaceUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlSubsurface, data: &SubsurfaceUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlSurface, SurfaceUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlSurface, request: <WlSurface as Resource>::Request, data: &SurfaceUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlSurface, data: &SurfaceUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WlTouch, TouchUserData<Compositor>> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WlTouch, request: <WlTouch as Resource>::Request, data: &TouchUserData<Compositor>, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WlTouch, data: &TouchUserData<Compositor>, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpCursorShapeManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpCursorShapeManagerV1, request: <WpCursorShapeManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpCursorShapeManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpFractionalScaleManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpFractionalScaleManagerV1, request: <WpFractionalScaleManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpFractionalScaleManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpFractionalScaleV1, Weak<WlSurface>> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpFractionalScaleV1, request: <WpFractionalScaleV1 as Resource>::Request, data: &Weak<WlSurface>, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpFractionalScaleV1, data: &Weak<WlSurface>, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpLinuxDrmSyncobjManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpLinuxDrmSyncobjManagerV1, request: <WpLinuxDrmSyncobjManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpLinuxDrmSyncobjManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpLinuxDrmSyncobjSurfaceV1, DrmSyncobjSurfaceData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpLinuxDrmSyncobjSurfaceV1, request: <WpLinuxDrmSyncobjSurfaceV1 as Resource>::Request, data: &DrmSyncobjSurfaceData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpLinuxDrmSyncobjSurfaceV1, data: &DrmSyncobjSurfaceData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpLinuxDrmSyncobjTimelineV1, DrmSyncobjTimelineData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpLinuxDrmSyncobjTimelineV1, request: <WpLinuxDrmSyncobjTimelineV1 as Resource>::Request, data: &DrmSyncobjTimelineData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpLinuxDrmSyncobjTimelineV1, data: &DrmSyncobjTimelineData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpViewport, ViewportState> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpViewport, request: <WpViewport as Resource>::Request, data: &ViewportState, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpViewport, data: &ViewportState, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<WpViewporter, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &WpViewporter, request: <WpViewporter as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &WpViewporter, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgActivationTokenV1, ActivationTokenData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgActivationTokenV1, request: <XdgActivationTokenV1 as Resource>::Request, data: &ActivationTokenData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgActivationTokenV1, data: &ActivationTokenData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgActivationV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgActivationV1, request: <XdgActivationV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgActivationV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgPopup, XdgShellSurfaceUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgPopup, request: <XdgPopup as Resource>::Request, data: &XdgShellSurfaceUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgPopup, data: &XdgShellSurfaceUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgPositioner, XdgPositionerUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgPositioner, request: <XdgPositioner as Resource>::Request, data: &XdgPositionerUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgPositioner, data: &XdgPositionerUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgSurface, XdgSurfaceUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgSurface, request: <XdgSurface as Resource>::Request, data: &XdgSurfaceUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgSurface, data: &XdgSurfaceUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgToplevel, XdgShellSurfaceUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgToplevel, request: <XdgToplevel as Resource>::Request, data: &XdgShellSurfaceUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgToplevel, data: &XdgShellSurfaceUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgToplevelIconManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgToplevelIconManagerV1, request: <XdgToplevelIconManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgToplevelIconManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgToplevelIconV1, XdgToplevelIconUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgToplevelIconV1, request: <XdgToplevelIconV1 as Resource>::Request, data: &XdgToplevelIconUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgToplevelIconV1, data: &XdgToplevelIconUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<XdgWmBase, XdgWmBaseUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &XdgWmBase, request: <XdgWmBase as Resource>::Request, data: &XdgWmBaseUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &XdgWmBase, data: &XdgWmBaseUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpLinuxBufferParamsV1, DmabufParamsData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpLinuxBufferParamsV1, request: <ZwpLinuxBufferParamsV1 as Resource>::Request, data: &DmabufParamsData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpLinuxBufferParamsV1, data: &DmabufParamsData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpLinuxDmabufFeedbackV1, DmabufFeedbackData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpLinuxDmabufFeedbackV1, request: <ZwpLinuxDmabufFeedbackV1 as Resource>::Request, data: &DmabufFeedbackData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpLinuxDmabufFeedbackV1, data: &DmabufFeedbackData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpLinuxDmabufV1, DmabufData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpLinuxDmabufV1, request: <ZwpLinuxDmabufV1 as Resource>::Request, data: &DmabufData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpLinuxDmabufV1, data: &DmabufData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpPrimarySelectionDeviceManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpPrimarySelectionDeviceManagerV1, request: <ZwpPrimarySelectionDeviceManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpPrimarySelectionDeviceManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpTextInputManagerV3, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpTextInputManagerV3, request: <ZwpTextInputManagerV3 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpTextInputManagerV3, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZwpTextInputV3, TextInputUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZwpTextInputV3, request: <ZwpTextInputV3 as Resource>::Request, data: &TextInputUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZwpTextInputV3, data: &TextInputUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZxdgDecorationManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZxdgDecorationManagerV1, request: <ZxdgDecorationManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZxdgDecorationManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZxdgOutputManagerV1, ()> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZxdgOutputManagerV1, request: <ZxdgOutputManagerV1 as Resource>::Request, data: &(), dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZxdgOutputManagerV1, data: &(), )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZxdgOutputV1, XdgOutputUserData> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZxdgOutputV1, request: <ZxdgOutputV1 as Resource>::Request, data: &XdgOutputUserData, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZxdgOutputV1, data: &XdgOutputUserData, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl Dispatch<ZxdgToplevelDecorationV1, ToplevelSurface> for Compositor

Source§

fn request( state: &mut Self, client: &Client, resource: &ZxdgToplevelDecorationV1, request: <ZxdgToplevelDecorationV1 as Resource>::Request, data: &ToplevelSurface, dhandle: &DisplayHandle, data_init: &mut DataInit<'_, Self>, )

Called when a request from a client is processed. Read more
Source§

fn destroyed( state: &mut Self, client: ClientId, resource: &ZxdgToplevelDecorationV1, data: &ToplevelSurface, )

Called when the object this user data is associated with has been destroyed. Read more
Source§

impl DmabufHandler for Compositor

Source§

fn dmabuf_state(&mut self) -> &mut DmabufState

Returns a mutable reference to the DmabufState delegate type.
Source§

fn dmabuf_imported( &mut self, _global: &DmabufGlobal, _dmabuf: Dmabuf, notifier: ImportNotifier, )

This function is called when a client has imported a Dmabuf. Read more
Source§

fn new_surface_feedback( &mut self, _surface: &WlSurface, _global: &DmabufGlobal, ) -> Option<DmabufFeedback>

This function allows to override the default DmabufFeedback for a surface Read more
Source§

impl DrmSyncobjHandler for Compositor

Source§

fn drm_syncobj_state(&mut self) -> Option<&mut DrmSyncobjState>

Returns a mutable reference to the DrmSyncobjState delegate type
Source§

impl FractionalScaleHandler for Compositor

Source§

fn new_fractional_scale(&mut self, _surface: WlSurface)

A new fractional scale was instantiated
Source§

impl GlobalDispatch<WlCompositor, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlCompositor>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WlDataDeviceManager, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlDataDeviceManager>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WlOutput, WlOutputData> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlOutput>, global_data: &WlOutputData, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &WlOutputData) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WlSeat, SeatGlobalData<Compositor>> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlSeat>, global_data: &SeatGlobalData<Compositor>, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &SeatGlobalData<Compositor>) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WlShm, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlShm>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WlSubcompositor, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WlSubcompositor>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WpCursorShapeManagerV1, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WpCursorShapeManagerV1>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WpFractionalScaleManagerV1, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WpFractionalScaleManagerV1>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WpLinuxDrmSyncobjManagerV1, DrmSyncobjGlobalData> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WpLinuxDrmSyncobjManagerV1>, global_data: &DrmSyncobjGlobalData, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &DrmSyncobjGlobalData) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<WpViewporter, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<WpViewporter>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<XdgActivationV1, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<XdgActivationV1>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<XdgToplevelIconManagerV1, XdgToplevelIconManagerUserData> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<XdgToplevelIconManagerV1>, global_data: &XdgToplevelIconManagerUserData, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view( client: Client, global_data: &XdgToplevelIconManagerUserData, ) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<XdgWmBase, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<XdgWmBase>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<ZwpLinuxDmabufV1, DmabufGlobalData> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<ZwpLinuxDmabufV1>, global_data: &DmabufGlobalData, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &DmabufGlobalData) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<ZwpTextInputManagerV3, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<ZwpTextInputManagerV3>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<ZxdgDecorationManagerV1, XdgDecorationManagerGlobalData> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<ZxdgDecorationManagerV1>, global_data: &XdgDecorationManagerGlobalData, data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view( client: Client, global_data: &XdgDecorationManagerGlobalData, ) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl GlobalDispatch<ZxdgOutputManagerV1, ()> for Compositor

Source§

fn bind( state: &mut Self, dhandle: &DisplayHandle, client: &Client, resource: New<ZxdgOutputManagerV1>, global_data: &(), data_init: &mut DataInit<'_, Self>, )

Called when a client has bound this global. Read more
Source§

fn can_view(client: Client, global_data: &()) -> bool

Checks if the global should be advertised to some client. Read more
Source§

impl OutputHandler for Compositor

Source§

fn output_bound(&mut self, _output: Output, _wl_output: WlOutput)

A client bound a new wl_output instance.
Source§

impl PrimarySelectionHandler for Compositor

Source§

impl SeatHandler for Compositor

Source§

type KeyboardFocus = WlSurface

Type used to represent the target currently holding the keyboard focus
Source§

type PointerFocus = WlSurface

Type used to represent the target currently holding the pointer focus
Source§

type TouchFocus = WlSurface

Type used to represent the target currently holding the touch focus
Source§

fn seat_state(&mut self) -> &mut SeatState<Self>

SeatState getter
Source§

fn cursor_image(&mut self, _seat: &Seat<Self>, _image: CursorImageStatus)

Callback that will be notified whenever a client requests to set a custom cursor image.
Source§

fn focus_changed(&mut self, seat: &Seat<Self>, focused: Option<&WlSurface>)

Callback that will be notified whenever the focus of the seat changes.
Source§

fn led_state_changed(&mut self, _seat: &Seat<Self>, _led_state: LedState)

Callback that will be notified whenever the keyboard led state changes.
Source§

impl SelectionHandler for Compositor

Source§

type SelectionUserData = Arc<Vec<u8>>

UserData attached to server-side selections.
Source§

fn new_selection( &mut self, ty: SelectionTarget, source: Option<SelectionSource>, seat: Seat<Self>, )

A client has set the selection
Source§

fn send_selection( &mut self, _ty: SelectionTarget, _mime_type: String, fd: OwnedFd, _seat: Seat<Self>, user_data: &Self::SelectionUserData, )

A client requested to read the server-set selection. Read more
Source§

impl ServerDndGrabHandler for Compositor

Source§

fn accept(&mut self, mime_type: Option<String>, seat: Seat<Self>)

The client can accept the given mime type. Read more
Source§

fn action(&mut self, action: DndAction, seat: Seat<Self>)

The client chose an action Read more
Source§

fn dropped(&mut self, seat: Seat<Self>)

The DnD resource was dropped by the user Read more
Source§

fn cancelled(&mut self, seat: Seat<Self>)

The Dnd was cancelled Read more
Source§

fn send(&mut self, mime_type: String, fd: OwnedFd, seat: Seat<Self>)

The client requested for data to be sent Read more
Source§

fn finished(&mut self, seat: Seat<Self>)

The client has finished interacting with the resource Read more
Source§

impl ShmHandler for Compositor

Source§

fn shm_state(&self) -> &ShmState

Return the Shm global state
Source§

impl TabletSeatHandler for Compositor

Source§

fn tablet_tool_image( &mut self, tool: &TabletToolDescriptor, image: CursorImageStatus, )

Callback that will be notified whenever a client requests to set a custom tool image.
Source§

impl XdgActivationHandler for Compositor

Source§

fn activation_state(&mut self) -> &mut XdgActivationState

Returns the activation state.
Source§

fn request_activation( &mut self, _token: XdgActivationToken, _token_data: XdgActivationTokenData, _surface: WlSurface, )

A client has requested surface activation. Read more
Source§

fn token_created( &mut self, token: XdgActivationToken, data: XdgActivationTokenData, ) -> bool

A client has created a new token. Read more
Source§

impl XdgDecorationHandler for Compositor

Source§

fn new_decoration(&mut self, toplevel: ToplevelSurface)

Notification the client supports server side decoration on the toplevel.
Source§

fn request_mode(&mut self, toplevel: ToplevelSurface, _mode: DecorationMode)

Notification the client prefers the provided decoration decoration mode on the toplevel.
Source§

fn unset_mode(&mut self, toplevel: ToplevelSurface)

Notification the client does not prefer a particular decoration mode on the toplevel.
Source§

impl XdgShellHandler for Compositor

Source§

fn xdg_shell_state(&mut self) -> &mut XdgShellState

Source§

fn new_toplevel(&mut self, surface: ToplevelSurface)

A new toplevel surface was created Read more
Source§

fn toplevel_destroyed(&mut self, surface: ToplevelSurface)

A toplevel surface was destroyed.
Source§

fn new_popup(&mut self, _surface: PopupSurface, _positioner: PositionerState)

A new popup surface was created Read more
Source§

fn grab(&mut self, _surface: PopupSurface, _seat: WlSeat, _serial: Serial)

This popup requests a grab of the pointer Read more
Source§

fn reposition_request( &mut self, _surface: PopupSurface, _positioner: PositionerState, _token: u32, )

A client requested a reposition, providing a new positioner for a popup. Read more
Source§

fn new_client(&mut self, client: ShellClient)

A new shell client was instantiated
Source§

fn client_pong(&mut self, client: ShellClient)

The pong for a pending ping of this shell client was received Read more
Source§

fn move_request( &mut self, surface: ToplevelSurface, seat: WlSeat, serial: Serial, )

The client requested the start of an interactive move for this surface
Source§

fn resize_request( &mut self, surface: ToplevelSurface, seat: WlSeat, serial: Serial, edges: ResizeEdge, )

The client requested the start of an interactive resize for this surface
Source§

fn maximize_request(&mut self, surface: ToplevelSurface)

A toplevel surface requested to be maximized
Source§

fn unmaximize_request(&mut self, surface: ToplevelSurface)

A toplevel surface requested to stop being maximized
Source§

fn fullscreen_request( &mut self, surface: ToplevelSurface, output: Option<WlOutput>, )

A toplevel surface requested to be set fullscreen
Source§

fn unfullscreen_request(&mut self, surface: ToplevelSurface)

A toplevel surface request to stop being fullscreen
Source§

fn minimize_request(&mut self, surface: ToplevelSurface)

A toplevel surface requested to be minimized
Source§

fn show_window_menu( &mut self, surface: ToplevelSurface, seat: WlSeat, serial: Serial, location: Point<i32, Logical>, )

The client requests the window menu to be displayed on this surface at this location Read more
Source§

fn ack_configure(&mut self, surface: WlSurface, configure: Configure)

A surface has acknowledged a configure serial.
Source§

fn client_destroyed(&mut self, client: ShellClient)

A shell client was destroyed.
Source§

fn popup_destroyed(&mut self, surface: PopupSurface)

A popup surface was destroyed.
Source§

fn app_id_changed(&mut self, surface: ToplevelSurface)

The toplevel surface set a different app id.
Source§

fn title_changed(&mut self, surface: ToplevelSurface)

The toplevel surface set a different title.
Source§

fn parent_changed(&mut self, surface: ToplevelSurface)

The parent of a toplevel surface has changed.
Source§

impl XdgToplevelIconHandler for Compositor

Source§

fn set_icon(&mut self, toplevel: XdgToplevel, wl_surface: WlSurface)

Called when icon becomes pending, and awaits surface commit. Icon is stored in wl_surface ToplevelIconCachedState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more