cool#6580 sw: fix infinite loop when changing document language
[LibreOffice.git] / include / vcl / GestureEvent.hxx
blob7b6f25719c7afe617f83893dc98b0d323efdd950
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 */
11 #ifndef INCLUDED_VCL_GESTUREEVENT_HXX
12 #define INCLUDED_VCL_GESTUREEVENT_HXX
14 #include <vcl/dllapi.h>
16 enum class GestureEventType
18 PanningBegin,
19 PanningUpdate,
20 PanningEnd
23 enum class PanningOrientation
25 Horizontal,
26 Vertical
29 class VCL_DLLPUBLIC GestureEvent
31 public:
32 sal_Int32 mnX;
33 sal_Int32 mnY;
34 GestureEventType meEventType;
36 sal_Int32 mnOffset;
37 PanningOrientation meOrientation;
39 GestureEvent()
40 : mnX(0)
41 , mnY(0)
42 , meEventType(GestureEventType::PanningBegin)
43 , mnOffset(0)
44 , meOrientation(PanningOrientation::Horizontal)
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)
59 #endif // INCLUDED_VCL_GESTUREEVENT_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */