Trait wayland_commons::Interface[][src]

pub trait Interface: 'static {
    type Request: MessageGroup + 'static;
    type Event: MessageGroup + 'static;

    const NAME: &'static str;
    const VERSION: u32;

    fn c_interface() -> *const wl_interface;
}
[]

The description of a wayland interface

Implementations of this trait are supposed to be generated using the wayland-scanner crate.

Associated Types

type Request: MessageGroup + 'static[src][]

Set of requests associated to this interface

Requests are messages from the client to the server

type Event: MessageGroup + 'static[src][]

Set of events associated to this interface

Events are messages from the server to the client

Associated Constants

const NAME: &'static str[src][]

Name of this interface

const VERSION: u32[src][]

Maximum supported version of this interface

This is the maximum version supported by the protocol specification currently used by this library, and should not be used as-is in your code, as a version change can subtly change the behavior of some objects.

Server are supposed to be able to handle all versions from 1 to the one they advertise through the registry, and clients can choose any version among the ones the server supports.

Required methods

fn c_interface() -> *const wl_interface[src][]

Pointer to the C representation of this interface

Implementors

impl Interface for ZwpFullscreenShellV1

impl Interface for ZwpFullscreenShellModeFeedbackV1

impl Interface for ZwpIdleInhibitManagerV1

impl Interface for ZwpIdleInhibitorV1

impl Interface for ZwpInputMethodContextV1

impl Interface for ZwpInputMethodV1

impl Interface for ZwpInputPanelV1

impl Interface for ZwpInputPanelSurfaceV1

impl Interface for ZwpInputTimestampsManagerV1

impl Interface for ZwpInputTimestampsV1

impl Interface for ZwpKeyboardShortcutsInhibitManagerV1

impl Interface for ZwpKeyboardShortcutsInhibitorV1

impl Interface for ZwpLinuxDmabufV1

impl Interface for ZwpLinuxBufferParamsV1

impl Interface for ZwpLinuxExplicitSynchronizationV1

impl Interface for ZwpLinuxSurfaceSynchronizationV1

impl Interface for ZwpLinuxBufferReleaseV1

impl Interface for ZwpPointerConstraintsV1

impl Interface for ZwpLockedPointerV1

impl Interface for ZwpConfinedPointerV1

impl Interface for ZwpPointerGesturesV1

impl Interface for ZwpPointerGestureSwipeV1

impl Interface for ZwpPointerGesturePinchV1

impl Interface for ZwpPrimarySelectionDeviceManagerV1

impl Interface for ZwpPrimarySelectionDeviceV1

impl Interface for ZwpPrimarySelectionOfferV1

impl Interface for ZwpPrimarySelectionSourceV1

impl Interface for ZwpRelativePointerManagerV1

impl Interface for ZwpRelativePointerV1

impl Interface for ZwpTabletManagerV1

impl Interface for ZwpTabletSeatV1

impl Interface for ZwpTabletToolV1

impl Interface for ZwpTabletV1

impl Interface for ZwpTabletManagerV2

impl Interface for ZwpTabletSeatV2

impl Interface for ZwpTabletToolV2

impl Interface for ZwpTabletV2

impl Interface for ZwpTabletPadRingV2

impl Interface for ZwpTabletPadStripV2

impl Interface for ZwpTabletPadGroupV2

impl Interface for ZwpTabletPadV2

impl Interface for ZwpTextInputV1

impl Interface for ZwpTextInputManagerV1

impl Interface for ZwpTextInputV3

impl Interface for ZwpTextInputManagerV3

impl Interface for ZxdgDecorationManagerV1

impl Interface for ZxdgToplevelDecorationV1

impl Interface for ZxdgExporterV1

impl Interface for ZxdgImporterV1

impl Interface for ZxdgExportedV1

impl Interface for ZxdgImportedV1

impl Interface for ZxdgExporterV2

impl Interface for ZxdgImporterV2

impl Interface for ZxdgExportedV2

impl Interface for ZxdgImportedV2

impl Interface for ZxdgOutputManagerV1

impl Interface for ZxdgOutputV1

impl Interface for XdgShell

impl Interface for XdgSurface

impl Interface for XdgPopup

impl Interface for ZxdgShellV6

impl Interface for ZxdgPositionerV6

impl Interface for ZxdgSurfaceV6

impl Interface for ZxdgToplevelV6

impl Interface for ZxdgPopupV6

impl Interface for ZwpXwaylandKeyboardGrabManagerV1

impl Interface for ZwpXwaylandKeyboardGrabV1

impl Interface for GtkPrimarySelectionDeviceManager

impl Interface for GtkPrimarySelectionDevice

impl Interface for GtkPrimarySelectionOffer

impl Interface for GtkPrimarySelectionSource

impl Interface for ZwlrDataControlManagerV1

impl Interface for ZwlrDataControlDeviceV1

impl Interface for ZwlrDataControlSourceV1

impl Interface for ZwlrDataControlOfferV1

impl Interface for ZwlrExportDmabufManagerV1

impl Interface for ZwlrExportDmabufFrameV1

impl Interface for ZwlrForeignToplevelManagerV1

impl Interface for ZwlrForeignToplevelHandleV1

impl Interface for ZwlrGammaControlManagerV1

impl Interface for ZwlrGammaControlV1

impl Interface for ZwlrInputInhibitManagerV1

impl Interface for ZwlrInputInhibitorV1

impl Interface for ZwlrLayerShellV1

impl Interface for ZwlrLayerSurfaceV1

impl Interface for ZwlrOutputManagerV1

impl Interface for ZwlrOutputHeadV1

impl Interface for ZwlrOutputModeV1

impl Interface for ZwlrOutputConfigurationV1

impl Interface for ZwlrOutputConfigurationHeadV1

impl Interface for ZwlrOutputPowerManagerV1

impl Interface for ZwlrOutputPowerV1

impl Interface for ZwlrScreencopyManagerV1

impl Interface for ZwlrScreencopyFrameV1

impl Interface for ZwlrVirtualPointerV1

impl Interface for ZwlrVirtualPointerManagerV1

impl Interface for WpPresentation

impl Interface for WpPresentationFeedback

impl Interface for XdgWmBase

impl Interface for XdgPositioner

impl Interface for XdgSurface

impl Interface for XdgToplevel

impl Interface for XdgPopup

impl Interface for WpViewporter

impl Interface for WpViewport