Mir
mir_touchpad_config.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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_PAD_CONFIGURATION_H_
21 #define MIR_INPUT_TOUCH_PAD_CONFIGURATION_H_
22 
23 #include "mir_toolkit/common.h"
25 
26 #include <memory>
27 #include <iosfwd>
28 
30 {
39  bool tap_to_click,
41  bool disable_with_mouse,
43 
54 
58  int button_down_scroll_button() const;
59  void button_down_scroll_button(int);
60 
64  bool tap_to_click() const;
65  void tap_to_click(bool);
66 
70  bool middle_mouse_button_emulation() const;
72 
76  bool disable_with_mouse() const;
77  void disable_with_mouse(bool);
78 
82  bool disable_while_typing() const;
83  void disable_while_typing(bool);
84 
85  bool operator==(MirTouchpadConfig const& rhs) const;
86  bool operator!=(MirTouchpadConfig const& rhs) const;
87 private:
88  struct Implementation;
89  std::unique_ptr<Implementation> impl;
90 };
91 
92 std::ostream& operator<<(std::ostream& out, MirTouchpadConfig const& conf);
93 
94 #endif
MirTouchpadClickModes click_mode() const
bool disable_with_mouse() const
bool operator!=(MirTouchpadConfig const &rhs) const
unsigned int MirTouchpadClickModes
Definition: mir_input_device_types.h:70
bool disable_while_typing() const
bool operator==(MirTouchpadConfig const &rhs) const
MirTouchpadConfig & operator=(MirTouchpadConfig const &other)
bool middle_mouse_button_emulation() const
bool tap_to_click() const
unsigned int MirTouchpadScrollModes
Definition: mir_input_device_types.h:90
int button_down_scroll_button() const
MirTouchpadScrollModes scroll_mode() const
Definition: mir_touchpad_config.h:29
std::ostream & operator<<(std::ostream &out, MirTouchpadConfig const &conf)

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu Apr 5 15:26:05 UTC 2018