Mir
mir_touchscreen_config.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 2 or 3,
6  * as 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:
17  * Andreas Pokorny <andreas.pokorny@canonical.com>
18  */
19 
20 #ifndef MIR_INPUT_TOUCH_SCREEN_CONFIGURATION_H_
21 #define MIR_INPUT_TOUCH_SCREEN_CONFIGURATION_H_
22 
23 #include "mir_toolkit/common.h"
25 #include <memory>
26 #include <iosfwd>
27 
29 {
36 
43  uint32_t output_id() const;
44  void output_id(uint32_t);
45 
52 
53  bool operator==(MirTouchscreenConfig const& other) const;
54  bool operator!=(MirTouchscreenConfig const& other) const;
55 private:
56  struct Implementation;
57  std::unique_ptr<Implementation> impl;
58 };
59 
60 std::ostream& operator<<(std::ostream& out, MirTouchscreenConfig const& conf);
61 
62 #endif
Definition: mir_touchscreen_config.h:28
MirTouchscreenMappingMode mapping_mode() const
Configure the type of coordinate mapping to be used for this input device.
bool operator==(MirTouchscreenConfig const &other) const
MirTouchscreenMappingMode
Mapping modes for touchscreen devices.
Definition: mir_input_device_types.h:116
bool operator!=(MirTouchscreenConfig const &other) const
uint32_t output_id() const
Configures the output the device coordinates should be aligned to.
MirTouchscreenConfig & operator=(MirTouchscreenConfig const &)
std::ostream & operator<<(std::ostream &out, MirTouchscreenConfig const &conf)

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu Mar 15 13:06:27 UTC 2018