Mir
include
miral
miral
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
22
#include <
mir_toolkit/client_types.h
>
23
24
#include <
mir/geometry/rectangles.h
>
25
#include <
mir_toolkit/mir_version_number.h
>
26
27
namespace
miral
28
{
29
using namespace
mir::geometry
;
30
struct
WindowInfo;
31
41
class
WindowManagementPolicyAddendum3
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
;
60
WindowManagementPolicyAddendum3
() =
default
;
61
WindowManagementPolicyAddendum3
(
WindowManagementPolicyAddendum3
const
&) =
delete
;
62
WindowManagementPolicyAddendum3
& operator=(
WindowManagementPolicyAddendum3
const
&) =
delete
;
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
rectangles.h
miral::WindowManagementPolicyAddendum3
Handle additional client requests.
Definition:
window_management_policy_addendum3.h:41
miral::WindowInfo
Definition:
window_info.h:32
client_types.h
mir::geometry::Rectangle
Definition:
rectangle.h:33
mir_version_number.h
mir::geometry
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support...
Definition:
dimensions.h:30
MirWindowState
MirWindowState
Definition:
common.h:139
miral
Mir Abstraction Layer.
Definition:
floating_window_manager.h:32
Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:05:11 UTC 2018