Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
server
mir
input
input_dispatcher.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2014 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 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 General Public License for more details.
12
*
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/>.
15
*
16
* Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
17
*/
18
19
#ifndef MIR_INPUT_INPUT_DISPATCHER_H
20
#define MIR_INPUT_INPUT_DISPATCHER_H
21
22
#include <chrono>
23
24
#include "
mir_toolkit/event.h
"
25
26
namespace
mir
27
{
28
namespace
input
29
{
30
38
class
InputDispatcher
39
{
40
public
:
41
virtual
bool
dispatch
(
MirEvent
const
& event) = 0;
42
43
virtual
void
start
() = 0;
44
virtual
void
stop
() = 0;
45
46
virtual
~InputDispatcher
() =
default
;
47
};
48
49
}
50
}
51
52
#endif
53
mir::input::InputDispatcher::start
virtual void start()=0
mir
Definition:
as_render_target.h:27
mir::input::InputDispatcher
The InputDispatchers role is to decide what should happen with user input events. ...
Definition:
input_dispatcher.h:38
mir::input::InputDispatcher::dispatch
virtual bool dispatch(MirEvent const &event)=0
MirEvent
struct MirEvent MirEvent
Definition:
event.h:84
mir::input::InputDispatcher::~InputDispatcher
virtual ~InputDispatcher()=default
mir::input::InputDispatcher::stop
virtual void stop()=0
event.h
Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017