Mir
mir_keyboard_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_KEYBOARD_CONFIGURATION_H_
21 #define MIR_INPUT_KEYBOARD_CONFIGURATION_H_
22 
23 #include "mir_toolkit/common.h"
25 #include "mir/input/keymap.h"
26 
27 #include <iosfwd>
28 #include <memory>
29 
30 /*
31  * Keyboard device configuration.
32  */
34 {
41 
42  mir::input::Keymap const& device_keymap() const;
44  void device_keymap(mir::input::Keymap const& );
45 
46  bool operator==(MirKeyboardConfig const& rhs) const;
47  bool operator!=(MirKeyboardConfig const& rhs) const;
48 private:
49  struct Implementation;
50  std::unique_ptr<Implementation> impl;
51 };
52 
53 std::ostream& operator<<(std::ostream& out, MirKeyboardConfig const& keyboard);
54 
55 #endif
Definition: mir_keyboard_config.h:33
std::ostream & operator<<(std::ostream &out, MirKeyboardConfig const &keyboard)
bool operator!=(MirKeyboardConfig const &rhs) const
Definition: keymap.h:31
MirKeyboardConfig & operator=(MirKeyboardConfig const &other)
bool operator==(MirKeyboardConfig const &rhs) const
mir::input::Keymap const & device_keymap() const

Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:06:43 UTC 2018