LibreOffice Module vcl (master)  1
GestureEvent.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  */
10 
11 #ifndef INCLUDED_VCL_GESTUREEVENT_HXX
12 #define INCLUDED_VCL_GESTUREEVENT_HXX
13 
14 #include <vcl/dllapi.h>
15 
16 enum class GestureEventType
17 {
21 };
22 
24 {
25  Horizontal,
26  Vertical
27 };
28 
30 {
31 public:
32  sal_Int32 mnX;
33  sal_Int32 mnY;
35 
36  sal_Int32 mnOffset;
38 
40  : mnX(0)
41  , mnY(0)
42  , meEventType(GestureEventType::PanningBegin)
43  , mnOffset(0)
44  , meOrientation(PanningOrientation::Horizontal)
45  {
46  }
47 
48  GestureEvent(sal_Int32 nX, sal_Int32 nY, GestureEventType eEventType, sal_Int32 nOffset,
49  PanningOrientation eOrientation)
50  : mnX(nX)
51  , mnY(nY)
52  , meEventType(eEventType)
53  , mnOffset(nOffset)
54  , meOrientation(eOrientation)
55  {
56  }
57 };
58 
59 #endif // INCLUDED_VCL_GESTUREEVENT_HXX
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 mnX
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
GestureEventType meEventType
GestureEventType
GestureEvent(sal_Int32 nX, sal_Int32 nY, GestureEventType eEventType, sal_Int32 nOffset, PanningOrientation eOrientation)
sal_Int32 mnOffset
sal_Int32 mnY
PanningOrientation
PanningOrientation meOrientation