Struct WaylandExtensions::Builder

Nested Relationships

This struct is a nested type of Class WaylandExtensions.

Struct Documentation

struct Builder

A Builder creates and registers an extension protocol.

Remark

Since MirAL 2.5

Public Members

std::string name

Name of the protocol extension’s Wayland global.

std::function< std::shared_ptr< void >Context const  *context)> build

Functor that creates and registers an extension protocol.

Param context:

giving access to:

  • the wl_display (so that, for example, the extension can be registered); and,

  • allowing server initiated code to be executed on the Wayland mainloop.

Return:

a shared pointer to the implementation. (Mir will manage the lifetime)