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 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 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
26namespace mir
27{
28
29std::ostream& operator<<(std::ostream& out, MirInputEventModifier modifier);
30std::ostream& operator<<(std::ostream& out, MirKeyboardAction action);
31std::ostream& operator<<(std::ostream& out, MirTouchAction action);
32std::ostream& operator<<(std::ostream& out, MirTouchTooltype tool);
33std::ostream& operator<<(std::ostream& out, MirPointerAction action);
34std::ostream& operator<<(std::ostream& out, MirPromptSessionState state);
35std::ostream& operator<<(std::ostream& out, MirOrientation orientation);
36
37std::ostream& operator<<(std::ostream& out, MirSurfaceAttrib attribute)
38MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowAttrib instead");
39std::ostream& operator<<(std::ostream& out, MirWindowAttrib attribute);
40std::ostream& operator<<(std::ostream& out, MirSurfaceFocusState state)
41MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowFocusState instead");
42std::ostream& operator<<(std::ostream& out, MirWindowFocusState state);
43std::ostream& operator<<(std::ostream& out, MirSurfaceVisibility state)
44MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowVisibility instead");
45std::ostream& operator<<(std::ostream& out, MirWindowVisibility state);
46std::ostream& operator<<(std::ostream& out, MirSurfaceType type)
47MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowType instead");
48std::ostream& operator<<(std::ostream& out, MirWindowType type);
49std::ostream& operator<<(std::ostream& out, MirSurfaceState state)
50MIR_FOR_REMOVAL_IN_VERSION_1("use << with MirWindowState instead");
51std::ostream& operator<<(std::ostream& out, MirWindowState state);
52
53std::ostream& operator<<(std::ostream& out, MirPromptSessionEvent const& event);
54std::ostream& operator<<(std::ostream& out, MirResizeEvent const& event);
55std::ostream& operator<<(std::ostream& out, MirOrientationEvent const& event);
56std::ostream& operator<<(std::ostream& out, MirInputEvent const& event);
57std::ostream& operator<<(std::ostream& out, MirCloseWindowEvent const& event);
58std::ostream& operator<<(std::ostream& out, MirKeymapEvent const& event);
59std::ostream& operator<<(std::ostream& out, MirWindowEvent const& event);
60std::ostream& operator<<(std::ostream& out, MirInputDeviceStateEvent const& event);
61std::ostream& operator<<(std::ostream& out, MirWindowPlacementEvent const& event);
62std::ostream& operator<<(std::ostream& out, MirWindowOutputEvent const& event);
63std::ostream& operator<<(std::ostream& out, MirEvent const& event);
64
65}
66
67#endif
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
struct MirKeymapEvent MirKeymapEvent
Definition: event.h:71
MirPointerAction
Possible pointer actions.
Definition: pointer_event.h:40
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:275
struct MirSurfaceOutputEvent MirWindowOutputEvent
Definition: event.h:76
MirSurfaceVisibility
Definition: common.h:171
struct MirOrientationEvent MirOrientationEvent
Definition: event.h:66
struct MirCloseSurfaceEvent MirCloseWindowEvent
Definition: event.h:69
struct MirPromptSessionEvent MirPromptSessionEvent
Definition: event.h:65
MirWindowType
Definition: common.h:110
struct MirInputDeviceStateEvent MirInputDeviceStateEvent
Definition: event.h:77
MirWindowFocusState
Definition: common.h:165
MirWindowState
Definition: common.h:142
MirSurfaceState
Definition: common.h:125
struct MirSurfacePlacementEvent MirWindowPlacementEvent
Definition: event.h:80
MirSurfaceType
Definition: common.h:94
struct MirResizeEvent MirResizeEvent
Definition: event.h:64
MirKeyboardAction
Possible actions for changing key state.
Definition: keyboard_event.h:46
struct MirSurfaceEvent MirWindowEvent
Definition: event.h:63
struct MirInputEvent MirInputEvent
Definition: event.h:70
MirSurfaceFocusState
Definition: common.h:159
MirWindowVisibility
Definition: common.h:177
MirWindowAttrib
Attributes of a window that the client and server/shell may wish to get or set over the wire.
Definition: common.h:77
struct MirEvent MirEvent
Definition: event.h:84
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire.
Definition: common.h:56
MirPromptSessionState
Definition: common.h:220
MirTouchTooltype
Identifiers for per-touch tool types.
Definition: touch_event.h:82
MirTouchAction
Possible per touch actions for state changing.
Definition: touch_event.h:45
MirInputEventModifier
Description of key modifier state.
Definition: input_event.h:47
Definition: splash_session.h:24
std::ostream & operator<<(std::ostream &out, IntWrapper< Tag, ValueType > const &value)
Definition: int_wrapper.h:40

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.