Mir
window_management_policy_addendum3.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2017 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 2 or 3 as
6  * 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_WINDOW_MANAGEMENT_POLICY_ADDENDUM3_H
20 #define MIRAL_WINDOW_MANAGEMENT_POLICY_ADDENDUM3_H
21 
23 
26 
27 namespace miral
28 {
29 using namespace mir::geometry;
30 struct WindowInfo;
31 
42 {
43 public:
54  virtual auto confirm_placement_on_display(
55  WindowInfo const& window_info,
56  MirWindowState new_state,
57  Rectangle const& new_placement) -> Rectangle = 0;
58 
59  virtual ~WindowManagementPolicyAddendum3() = default;
63 };
64 #if MIRAL_VERSION >= MIR_VERSION_NUMBER(2, 0, 0)
65 #error "We've presumably broken ABI - please roll this interface into WindowManagementPolicy"
66 #endif
67 }
68 
69 #endif //MIRAL_WINDOW_MANAGEMENT_POLICY_ADDENDUM3_H
Handle additional client requests.
Definition: window_management_policy_addendum3.h:41
Definition: window_info.h:32
Definition: rectangle.h:33
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support...
Definition: dimensions.h:30
MirWindowState
Definition: common.h:139
Mir Abstraction Layer.
Definition: floating_window_manager.h:32

Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:06:43 UTC 2018