Mir
mir_pointer_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_POINTER_CONFIGURATION_H_
21 #define MIR_INPUT_POINTER_CONFIGURATION_H_
22 
23 #include "mir_toolkit/common.h"
25 
26 #include <memory>
27 #include <iosfwd>
28 
30 {
44 
50 
57  double cursor_acceleration_bias() const;
58  void cursor_acceleration_bias(double);
59 
63  double horizontal_scroll_scale() const;
64  void horizontal_scroll_scale(double);
65 
69  double vertical_scroll_scale() const;
70  void vertical_scroll_scale(double);
71 
72  bool operator==(MirPointerConfig const& rhs) const;
73  bool operator!=(MirPointerConfig const& rhs) const;
74 private:
75  struct Implementation;
76  std::unique_ptr<Implementation> impl;
77 };
78 
79 std::ostream& operator<<(std::ostream& out, MirPointerConfig const& rhs);
80 
81 
82 #endif
bool operator!=(MirPointerConfig const &rhs) const
bool operator==(MirPointerConfig const &rhs) const
MirPointerHandedness
Definition: mir_input_device_types.h:33
double cursor_acceleration_bias() const
MirPointerAcceleration
MirPointerAcceleration describes the way pointer movement is filtered:
Definition: mir_input_device_types.h:48
MirPointerHandedness handedness() const
Definition: mir_pointer_config.h:29
MirPointerAcceleration acceleration() const
double vertical_scroll_scale() const
MirPointerConfig & operator=(MirPointerConfig const &cp)
std::ostream & operator<<(std::ostream &out, MirPointerConfig const &rhs)
double horizontal_scroll_scale() const

Copyright © 2012-2017 Canonical Ltd.
Generated on Wed Oct 11 15:14:10 UTC 2017