Mir
Public Attributes | List of all members
miral::WaylandExtensions::Builder Struct Reference

A Builder creates and registers an extension protocol. More...

#include <wayland_extensions.h>

Public Attributes

std::string name
 Name of the protocol extension. More...
 
std::function< std::shared_ptr< void >Context const *context)> build
 Functor that creates and registers an extension protocol. More...
 

Detailed Description

A Builder creates and registers an extension protocol.

Remarks
Since MirAL 2.5

Member Data Documentation

◆ build

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

Functor that creates and registers an extension protocol.

Parameters
contextgiving 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.
Returns
a shared pointer to the implementation. (Mir will manage the lifetime)

◆ name

std::string miral::WaylandExtensions::Builder::name

Name of the protocol extension.


The documentation for this struct was generated from the following file:

Copyright © 2012-2019 Canonical Ltd.
Generated on Fri May 24 15:24:26 UTC 2019
This documentation is licensed under the GPL version 2 or 3.