g4tools
5.4.0
g4tools
tools
sg
device_interactor
Go to the documentation of this file.
1
// Copyright (C) 2010, Guy Barrand. All rights reserved.
2
// See the file tools.license for terms.
3
4
#ifndef tools_sg_device_interactor
5
#define tools_sg_device_interactor
6
7
#include "
event
"
8
9
namespace
tools
{
10
namespace
sg {
11
12
class
device_interactor
{
13
public
:
14
virtual
~device_interactor
(){}
15
public
:
16
virtual
void
key_press
(
const
key_down_event
&) = 0;
17
virtual
void
key_release
(
const
key_up_event
&) = 0;
18
virtual
void
mouse_press
(
const
mouse_down_event
&) = 0;
19
virtual
void
mouse_release
(
const
mouse_up_event
&) = 0;
20
virtual
void
mouse_move
(
const
mouse_move_event
&) = 0;
21
//virtual void mouse_double_click (const mouse_double_click_event&) = 0;
22
virtual
void
wheel_rotate
(
const
wheel_rotate_event
&) = 0;
23
};
24
25
}}
26
27
#endif
tools::sg::key_up_event
Definition:
event:350
tools::sg::device_interactor::wheel_rotate
virtual void wheel_rotate(const wheel_rotate_event &)=0
tools::sg::device_interactor::key_press
virtual void key_press(const key_down_event &)=0
tools::sg::key_down_event
Definition:
event:312
tools::sg::mouse_up_event
Definition:
event:150
tools::sg::device_interactor::mouse_press
virtual void mouse_press(const mouse_down_event &)=0
tools
inlined C code : ///////////////////////////////////
Definition:
aida_ntuple:26
tools::sg::mouse_down_event
Definition:
event:107
tools::sg::mouse_move_event
Definition:
event:193
tools::sg::device_interactor::mouse_release
virtual void mouse_release(const mouse_up_event &)=0
event
tools::sg::wheel_rotate_event
Definition:
event:388
tools::sg::device_interactor::mouse_move
virtual void mouse_move(const mouse_move_event &)=0
tools::sg::device_interactor::~device_interactor
virtual ~device_interactor()
Definition:
device_interactor:14
tools::sg::device_interactor
Definition:
device_interactor:12
tools::sg::device_interactor::key_release
virtual void key_release(const key_up_event &)=0
Generated by
1.8.20