Go to the documentation of this file.
19 #ifndef MIRAL_WAYLAND_EXTENSIONS_H
20 #define MIRAL_WAYLAND_EXTENSIONS_H
33 namespace mir {
class Server; }
86 virtual auto display()
const -> wl_display* = 0;
146 static auto recommended() -> std::set<std::string>;
152 static auto supported() -> std::set<std::string>;
166 std::shared_ptr<Self>
self;
189 #endif //MIRAL_WAYLAND_EXTENSIONS_H
auto supported_extensions() const -> std::string
All Wayland extensions currently supported (colon separated list). This includes both the recommended...
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
auto application_for(wl_client *client) -> Application
Get the MirAL application for a wl_client.
auto operator=(WaylandExtensions const &) -> WaylandExtensions &
std::string name
Name of the protocol extension.
Definition: wayland_extensions.h:101
virtual void run_on_wayland_mainloop(std::function< void()> &&work) const =0
virtual auto display() const -> wl_display *=0
void add_extension(Builder const &builder)
Add a bespoke Wayland extension both to "supported" and "enabled by default".
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:34
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:37
Context & operator=(Context const &)=delete
static auto recommended_extensions() -> std::string
Default for extensions to enabled recommended by Mir (colon separated list)
WaylandExtensions()
Default to enabling the extensions recommended by Mir.
void operator()(mir::Server &server) const
Definition: splash_session.h:24
auto window_for(wl_resource *surface) -> Window
Get the MirAL Window for a Wayland Surface, XdgSurface, etc. Note that there may not be a correspondi...
auto enable(std::string name) -> WaylandExtensions &
Enable a Wayland extension Throws a std::runtime_error if the extension is not supported.
void add_extension_disabled_by_default(Builder const &builder)
Add a bespoke Wayland extension both to "supported" but not "enabled by default".
auto disable(std::string name) -> WaylandExtensions &
Disable a Wayand extension Throws a std::runtime_error if the extension is not supported.
static auto recommended() -> std::set< std::string >
The set of Wayland extensions that Mir recommends. Also the set that is enabled by default upon const...
Context information useful for implementing Wayland extensions.
Definition: wayland_extensions.h:83
const char * name
Definition: client_types.h:177
static char const *const zwlr_layer_shell_v1
Supported wayland extensions that are not enabled by default.
Definition: wayland_extensions.h:128
static char const *const zxdg_output_manager_v1
Allows clients to retrieve additional information about outputs.
Definition: wayland_extensions.h:132
static auto supported() -> std::set< std::string >
The set of Wayland extensions that core Mir supports. Does not include bespoke extensions A superset ...
A Builder creates and registers an extension protocol.
Definition: wayland_extensions.h:98
std::function< std::shared_ptr< void >Context const *context)> build
Functor that creates and registers an extension protocol.
Definition: wayland_extensions.h:108
virtual ~Context()=default
std::function< bool(Application const &app, char const *protocol)> Filter
Definition: wayland_extensions.h:112
Enable configuration of the Wayland extensions enabled at runtime.
Definition: wayland_extensions.h:48
void set_filter(Filter const &extension_filter)
Set an extension filter callback to control the extensions available to specific clients.
Copyright © 2012-2019
Canonical Ltd.
Generated on Fri Dec 6 02:23:43 UTC 2019
This documentation is licensed under the GPL version 2 or 3.