Panda3D

touchInfo.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file touchInfo.h
10 * @author Walt Destler
11 * @date 2010-05-25
12 */
13
14 #ifndef TOUCHINFO_H
15 #define TOUCHINFO_H
16
17 #include "pandabase.h"
18
19 /**
20 * Stores information for a single touch event.
21 */
22 class EXPCL_PANDA_DISPLAY TouchInfo {
23
24 PUBLISHED:
25 enum TouchInfoFlags
26 {
27 TIF_move = 0x0001,
28 TIF_down = 0x0002,
29 TIF_up = 0x0004,
30 };
31
32 public:
33
34 TouchInfo();
35
36 void set_x(int x);
37 void set_y(int y);
38 void set_id(int id);
39 void set_flags(int flags);
40
41 PUBLISHED:
42
43 int get_x();
44 int get_y();
45 int get_id();
46 int get_flags();
47
48 private:
49
50 int _x;
51 int _y;
52 int _id;
53 int _flags;
54 };
55
56 #endif
TouchInfo
Stores information for a single touch event.
Definition: touchInfo.h:22
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.