Go to the documentation of this file.
19 #ifndef MIRAL_SET_WINDOW_MANAGEMENT_POLICY_H
20 #define MIRAL_SET_WINDOW_MANAGEMENT_POLICY_H
32 class WindowManagerTools;
33 class WindowManagementPolicy;
44 std::function<std::unique_ptr<WindowManagementPolicy>(
WindowManagerTools const& tools)> builder;
47 template<
typename Policy,
typename ...Args>
51 {
return std::make_unique<Policy>(tools, args...); }};
55 #endif //MIRAL_SET_WINDOW_MANAGEMENT_POLICY_H
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
SetWindowManagementPolicy(std::function< std::unique_ptr< WindowManagementPolicy >(WindowManagerTools const &tools)> const &builder)
Definition: set_window_management_policy.h:35
auto set_window_management_policy(Args &... args) -> SetWindowManagementPolicy
Definition: set_window_management_policy.h:48
Definition: splash_session.h:24
void operator()(mir::Server &server) const
~SetWindowManagementPolicy()
Copyright © 2012-2021
Canonical Ltd.
Generated on Wed Nov 24 08:21:43 UTC 2021
This documentation is licensed under the GPL version 2 or 3.