2
* Copyright © 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
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 General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Chase Douglas <chase.douglas@canonical.com>
18
* Thomas Voss <thomas.voss@canonical.com>
21
#include "mir/input/axis.h"
23
#include <boost/format.hpp>
28
namespace mi = mir::input;
35
std::ostream& operator<<(std::ostream& out, const mi::Mode& m)
39
case mi::Mode::none: out << "none";
41
case mi::Mode::relative: out << "relative";
43
case mi::Mode::absolute: out << "absolute";
49
std::ostream& operator<<(std::ostream& out, const mi::Axis& /*a*/)
51
// FIXME(Reenable once Axis is under test)
52
/*static const std::string print_format("Axis[mode: %1, min: %2, max: %3, resolution: %4]");
54
(boost::format(print_format) % a.mode % a.min % a.max %a.resolution).str();