VR-Vantage API Documentation
DtMouseEvent.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 2006 MaK Technologies, Inc.
3  ** All rights reserved.
4  *********************************************************************/
5 /*********************************************************************
6  ** $RCSfile: DtMouseEvent.h,v $ $Revision: 1.6 $ $State: Exp $
7  *********************************************************************/
8 
9 #ifndef DtMouseEvent_H_
10 #define DtMouseEvent_H_
11 
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtMouseState.h>
18 
19 namespace makVrv
20 {
24  {
25  public:
27  enum EventType
28  {
29  NoEvent = 0,
41  MouseLost
42  };
43 
44  public:
45 
47  DtMouseEvent();
48 
50  DtMouseEvent( EventType eventType);
51 
53  DtMouseEvent( EventType eventType, const DtMouseState& mouseState );
54 
56  virtual ~DtMouseEvent();
57 
59  DtMouseEvent(const DtMouseEvent& );
60 
62  DtMouseEvent &operator=( const DtMouseEvent& );
63 
65  virtual int x() const;
66 
68  virtual int y() const;
69 
71  virtual DtMouseState::MouseButton button() const;
72 
74  virtual DtMouseState::MouseModifier mod() const;
75 
77  virtual void setX(int x);
78 
80  virtual void setY(int y);
81 
83  virtual DtMouseState mouseState() const;
84 
86  virtual DtMouseState& mouseState();
87 
89  virtual void setMouseState( const DtMouseState& mouseState );
90 
92  virtual EventType eventType() const;
93 
95  virtual void setEventType( EventType eventType );
96 
97  protected:
100  };
101 
102 } //end namespace
103 
104 #endif


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)