Mir
event_printer.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
5  * it under the terms of the GNU Lesser General Public License version 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 #ifndef MIR_EVENT_PRINTER_H_
20 #define MIR_EVENT_PRINTER_H_
21 
22 #include "mir_toolkit/event.h"
23 
24 #include <iostream>
25 
26 namespace mir
27 {
28 
29 std::ostream& operator<<(std::ostream& out, MirInputEventModifier modifier);
30 std::ostream& operator<<(std::ostream& out, MirKeyboardAction action);
31 std::ostream& operator<<(std::ostream& out, MirTouchAction action);
32 std::ostream& operator<<(std::ostream& out, MirTouchTooltype tool);
33 std::ostream& operator<<(std::ostream& out, MirPointerAction action);
34 std::ostream& operator<<(std::ostream& out, MirPromptSessionState state);
35 std::ostream& operator<<(std::ostream& out, MirOrientation orientation);
36 
37 std::ostream& operator<<(std::ostream& out, MirSurfaceAttrib attribute)
38 __attribute__ ((deprecated("use << with MirWindowAttrib instead")));
39 std::ostream& operator<<(std::ostream& out, MirWindowAttrib attribute);
40 std::ostream& operator<<(std::ostream& out, MirSurfaceFocusState state)
41 __attribute__ ((deprecated("use << with MirWindowFocusState instead")));
42 std::ostream& operator<<(std::ostream& out, MirWindowFocusState state);
43 std::ostream& operator<<(std::ostream& out, MirSurfaceVisibility state)
44 __attribute__ ((deprecated("use << with MirWindowVisibility instead")));
45 std::ostream& operator<<(std::ostream& out, MirWindowVisibility state);
46 std::ostream& operator<<(std::ostream& out, MirSurfaceType type)
47 __attribute__ ((deprecated("use << with MirWindowType instead")));
48 std::ostream& operator<<(std::ostream& out, MirWindowType type);
49 std::ostream& operator<<(std::ostream& out, MirSurfaceState state)
50 __attribute__ ((deprecated("use << with MirWindowState instead")));
51 std::ostream& operator<<(std::ostream& out, MirWindowState state);
52 
53 std::ostream& operator<<(std::ostream& out, MirPromptSessionEvent const& event);
54 std::ostream& operator<<(std::ostream& out, MirResizeEvent const& event);
55 std::ostream& operator<<(std::ostream& out, MirOrientationEvent const& event);
56 std::ostream& operator<<(std::ostream& out, MirInputEvent const& event);
57 std::ostream& operator<<(std::ostream& out, MirCloseWindowEvent const& event);
58 std::ostream& operator<<(std::ostream& out, MirKeymapEvent const& event);
59 std::ostream& operator<<(std::ostream& out, MirWindowEvent const& event);
60 std::ostream& operator<<(std::ostream& out, MirInputDeviceStateEvent const& event);
61 std::ostream& operator<<(std::ostream& out, MirWindowPlacementEvent const& event);
62 std::ostream& operator<<(std::ostream& out, MirEvent const& event);
63 
64 }
65 
66 #endif
Definition: as_render_target.h:27
std::ostream & operator<<(std::ostream &out, MirInputEventModifier modifier)
MirPromptSessionState
Definition: common.h:214
MirWindowAttrib
Attributes of a window that the client and server/shell may wish to get or set over the wire...
Definition: common.h:74
struct MirInputDeviceStateEvent MirInputDeviceStateEvent
Definition: event.h:76
MirWindowFocusState
Definition: common.h:159
MirWindowVisibility
Definition: common.h:171
MirPointerAction
Possible pointer actions.
Definition: pointer_event.h:40
struct MirSurfacePlacementEvent MirWindowPlacementEvent
Definition: event.h:79
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:269
MirKeyboardAction
Possible actions for changing key state.
Definition: keyboard_event.h:46
MirSurfaceState
Definition: common.h:121
MirInputEventModifier
Description of key modifier state.
Definition: input_event.h:47
struct MirCloseSurfaceEvent MirCloseWindowEvent
Definition: event.h:68
MirWindowType
Definition: common.h:107
struct MirOrientationEvent MirOrientationEvent
Definition: event.h:65
struct MirEvent MirEvent
Definition: event.h:83
struct MirResizeEvent MirResizeEvent
Definition: event.h:63
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:53
MirSurfaceType
Definition: common.h:91
MirTouchTooltype
Identifiers for per-touch tool types.
Definition: touch_event.h:82
struct MirKeymapEvent MirKeymapEvent
Definition: event.h:70
MirSurfaceFocusState
Definition: common.h:153
MirSurfaceVisibility
Definition: common.h:165
struct MirPromptSessionEvent MirPromptSessionEvent
Definition: event.h:64
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
struct MirInputEvent MirInputEvent
Definition: event.h:69
MirTouchAction
Possible per touch actions for state changing.
Definition: touch_event.h:45
MirWindowState
Definition: common.h:137
struct MirSurfaceEvent MirWindowEvent
Definition: event.h:62

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017