MirAL
canonical_window_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015-2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored By: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIRAL_CANONICAL_WINDOW_MANAGER_H_
20 #define MIRAL_CANONICAL_WINDOW_MANAGER_H_
21 
24 
25 namespace miral
26 {
29 {
30 public:
31 
33 
35  auto place_new_surface(
36  ApplicationInfo const& app_info,
37  WindowSpecification const& request_parameters)
38  -> WindowSpecification override;
39 
41  void handle_window_ready(WindowInfo& window_info) override;
42 
44  void handle_modify_window(WindowInfo& window_info, WindowSpecification const& modifications) override;
45 
47  void handle_raise_window(WindowInfo& window_info) override;
48 
50  void advise_focus_gained(WindowInfo const& info) override;
51 
52 protected:
54 };
55 }
56 
57 #endif /* MIRAL_CANONICAL_WINDOW_MANAGER_H_ */
void advise_focus_gained(WindowInfo const &info) override
Raises the window (and any children)
CanonicalWindowManagerPolicy(WindowManagerTools const &tools)
Definition: application_info.h:31
auto place_new_surface(ApplicationInfo const &app_info, WindowSpecification const &request_parameters) -> WindowSpecification override
places the surfaces as requested
Widely accepted defaults for window management.
Definition: canonical_window_manager.h:28
Definition: window_info.h:30
Definition: window_specification.h:45
The interface through which the window management policy is determined.
Definition: window_management_policy.h:35
Window management functions for querying and updating MirAL&#39;s model.
Definition: window_manager_tools.h:45
void handle_raise_window(WindowInfo &window_info) override
Tries to focus on the newly ready window.
WindowManagerTools tools
Definition: canonical_window_manager.h:53
void handle_window_ready(WindowInfo &window_info) override
Tries to focus on the newly ready window.
void handle_modify_window(WindowInfo &window_info, WindowSpecification const &modifications) override
Applies the requested modifications.
Mir Abstraction Layer.
Definition: active_outputs.h:27

Copyright © 2016 Canonical Ltd.
Generated on Fri Sep 30 13:21:55 UTC 2016