80eb9670 |
1 | // Copyright (c) 2014 OPEN CASCADE SAS |
2 | // |
3 | // This file is part of Open CASCADE Technology software library. |
4 | // |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
10 | // |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
13 | |
14 | #ifndef ANDROIDQT_TOUCHPARAMETERS_H |
15 | #define ANDROIDQT_TOUCHPARAMETERS_H |
16 | |
17 | #include <QPair> |
18 | |
19 | //! Class holding touch event state. |
20 | class AndroidQt_TouchParameters |
21 | { |
22 | |
23 | public: |
24 | |
25 | //! Empty constructor. |
26 | AndroidQt_TouchParameters(); |
27 | |
28 | //! Default constructor. |
29 | AndroidQt_TouchParameters (const double theX, |
30 | const double theY); |
31 | |
32 | //! x coord |
33 | QPair<double, double> X() const; |
34 | double DevX() const; |
35 | |
36 | //! y coord |
37 | QPair<double, double> Y() const; |
38 | double DevY() const; |
39 | |
40 | //! Start coords |
41 | void SetStarts (const double theXStart, |
42 | const double theYStart); |
43 | |
44 | //! End coords |
45 | void SetEnds (const double theXEnd, |
46 | const double theYEnd); |
47 | |
48 | void ClearDev(); |
49 | |
50 | private: |
51 | |
52 | double myXStart; |
53 | double myXEnd; |
54 | |
55 | double myYStart; |
56 | double myYEnd; |
57 | |
58 | }; |
59 | |
60 | #endif // ANDROIDQT_TOUCHPARAMETERS_H |