AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIInputEvent.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIInputEvent_H_
4 #define _APIInputEvent_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
18  {
20  public:
24  void SetLButtonDown () ;
29  bool IsLButtonDown () const;
33  void SetRButtonDown () ;
38  bool IsRButtonDown () const;
42  void SetMButtonDown () ;
47  bool IsMButtonDown () const;
52  int GetDelta () const;
57  void SetDelta (int zDelta) ;
61  void SetShiftKeyDown () ;
66  bool IsShiftKeyDown () const;
70  void SetCtrlKeyDown () ;
75  bool IsCtrlKeyDown () const;
79  void SetAltKeyDown () ;
84  bool IsAltKeyDown () const;
89  bool IsTableKeyDown () const;
94  bool IsKeyESC () const;
99  Vector2 GetMousePosition () const;
104  void SetMousePosition (const Vector2& pos) ;
109  int GetKey () const;
114  void SetKey (int nChar) ;
119  int GetFlag () const;
124  void SetFlag (int nFlag) ;
125  };//InputEvent;
126 }}//API
127 
128 #endif //_APIInputEvent_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
鼠标和键盘输入信息
Definition: APIInputEvent.h:17
Point or vector.
Definition: APIMath.h:16
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10