19 #ifndef MIRAL_WAYLAND_EXTENSIONS_H 20 #define MIRAL_WAYLAND_EXTENSIONS_H 33 namespace mir {
class Server; }
62 void operator()(mir::Server& server)
const;
69 auto supported_extensions()
const -> std::string;
75 static auto recommended_extensions() -> std::string;
86 virtual auto display()
const -> wl_display* = 0;
87 virtual void run_on_wayland_mainloop(std::function<
void()>&& work)
const = 0;
108 std::function<std::shared_ptr<void>(
Context const* context)> build;
112 using Filter = std::function<bool(Application const& app, char const* protocol)>;
116 void set_filter(
Filter const& extension_filter);
123 static char const*
const zwlr_layer_shell_v1;
135 void add_extension(
Builder const& builder);
141 void add_extension_disabled_by_default(
Builder const& builder);
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 Definition: splash_session.h:24
A Builder creates and registers an extension protocol.
Definition: wayland_extensions.h:98
std::string name
Name of the protocol extension.
Definition: wayland_extensions.h:101
std::function< bool(Application const &app, char const *protocol)> Filter
Definition: wayland_extensions.h:112
Context information useful for implementing Wayland extensions.
Definition: wayland_extensions.h:83
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...
Enable configuration of the Wayland extensions enabled at runtime.
Definition: wayland_extensions.h:48
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:37
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:34
char const * name
Definition: client_types.h:177
static char const *const zxdg_output_manager_v1
Allows clients to retrieve additional information about outputs.
Definition: wayland_extensions.h:132
auto application_for(wl_resource *resource) -> Application
Get the MirAL application for a wl_resource.
Mir Abstraction Layer.
Definition: floating_window_manager.h:29