0028934: Coding - Eliminate compiler warnings in OCCT samples
[occt.git] / samples / qt / AndroidQt / src / AndroidQt_TouchParameters.h
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 <Standard_WarningsDisable.hxx>
18 #include <QPair>
19 #include <Standard_WarningsRestore.hxx>
20
21 //! Class holding touch event state.
22 class AndroidQt_TouchParameters
23 {
24
25 public:
26
27   //! Empty constructor.
28   AndroidQt_TouchParameters();
29
30   //! Default constructor.
31   AndroidQt_TouchParameters (const double theX,
32                              const double theY);
33
34   //! x coord
35   QPair<double, double> X() const;
36   double DevX() const;
37
38   //! y coord
39   QPair<double, double> Y() const;
40   double DevY() const;
41
42   //! Start coords
43   void SetStarts (const double theXStart,
44                   const double theYStart);
45
46   //! End coords
47   void SetEnds (const double theXEnd,
48                 const double theYEnd);
49
50   void ClearDev();
51
52 private:
53
54   double myXStart;
55   double myXEnd;
56
57   double myYStart;
58   double myYEnd;
59
60 };
61
62 #endif // ANDROIDQT_TOUCHPARAMETERS_H