Mir
window_management_policy_addendum2.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_ADDENDUM2_H
20 #define MIRAL_WINDOW_MANAGEMENT_ADDENDUM2_H
21 
24 
25 namespace miral
26 {
27 struct WindowInfo;
28 
39 {
40 public:
49  virtual void handle_request_drag_and_drop(WindowInfo& window_info) = 0;
50 
57  virtual void handle_request_move(WindowInfo& window_info, MirInputEvent const* input_event) = 0;
60  virtual ~WindowManagementPolicyAddendum2() = default;
64 };
65 #if MIRAL_VERSION >= MIR_VERSION_NUMBER(2, 0, 0)
66 #error "We've presumably broken ABI - please roll this interface into WindowManagementPolicy"
67 #endif
68 }
69 
70 #endif //MIRAL_WINDOW_MANAGEMENT_ADDENDUM2_H
virtual ~WindowManagementPolicyAddendum2()=default
virtual void handle_request_move(WindowInfo &window_info, MirInputEvent const *input_event)=0
request from client to initiate move
Definition: window_info.h:32
Handle additional client requests.
Definition: window_management_policy_addendum2.h:38
virtual void handle_request_drag_and_drop(WindowInfo &window_info)=0
request from client to initiate drag and drop
WindowManagementPolicyAddendum2 & operator=(WindowManagementPolicyAddendum2 const &)=delete
struct MirInputEvent MirInputEvent
Definition: event.h:70
Mir Abstraction Layer.
Definition: floating_window_manager.h:32

Copyright © 2012-2017 Canonical Ltd.
Generated on Mon Oct 30 19:44:55 UTC 2017