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's Wayland global. 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's Wayland global.


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

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.