Panda3D
 All Classes Functions Variables Enumerations
touchInfo.h
00001 // Filename: touchInfo.h
00002 // Created by:  Walt Destler (May 25, 2010)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef TOUCHINFO_H
00016 #define TOUCHINFO_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : TouchInfo
00022 // Description : Stores information for a single touch event.
00023 ////////////////////////////////////////////////////////////////////
00024 class EXPCL_PANDA_DISPLAY TouchInfo {
00025 
00026 PUBLISHED:
00027   enum TouchInfoFlags
00028   {
00029     TIF_move = 0x0001,
00030     TIF_down = 0x0002,
00031     TIF_up = 0x0004,
00032   };
00033 
00034 public:
00035 
00036   TouchInfo();
00037 
00038   void set_x(int x);
00039   void set_y(int y);
00040   void set_id(int id);
00041   void set_flags(int flags);
00042 
00043 PUBLISHED:
00044 
00045   int get_x();
00046   int get_y();
00047   int get_id();
00048   int get_flags();
00049 
00050 private:
00051   
00052   int _x;
00053   int _y;
00054   int _id;
00055   int _flags;
00056 };
00057 
00058 #endif
 All Classes Functions Variables Enumerations