Rumba C++ SDK
InteractionContext.h
Go to the documentation of this file.
1 /*
2 
3  *
4  ***
5  *****
6  ********************* Mercenaries Engineering SARL
7  ***************** Copyright (C) 2018
8  *************
9  ********* http://www.mercenaries-engineering.com
10  ***********
11  **** ****
12  ** **
13 
14 */
15 #pragma once
16 
17 #include "Value.h"
18 
19  namespace maquina
20  {
23  {
24  public:
27  {
28  shift = 0x02000000,
29  ctrl = 0x04000000,
30  alt = 0x08000000,
31  };
32 
35  {
36  left = 0x01,
37  right = 0x02,
38  middle = 0x04,
39  };
40 
42  Imath::V2i pos() const;
43 
45  Imath::V2i global_pos() const;
46 
48  int buttons() const;
49 
51  int modifiers() const;
52 
54  const std::string& tool_name() const;
55 
57  float depth() const;
58 
60  float frame() const;
61 
63  bool tablet() const;
64 
66  void* _impl;
67 
69  InteractionContext(void *impl) : _impl(impl) {}
70  };
71  }
ButtonMask
The mouse button masks, same than in the Qt event.
Definition: InteractionContext.h:34
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
ModifierMask
The keyboard modifiers masks, same than in the Qt event.
Definition: InteractionContext.h:26
#define MAQUINA_EXPORT
Definition: Export.h:31
Definition: ImathVec.h:61
This interface is passed to the events and is implemented by the application. */. ...
Definition: InteractionContext.h:22