workaround segfault in compiler on macos-clang-intel
[LibreOffice.git] / include / vcl / GestureEventPan.hxx
blob4ce0866a91f3d20c28dd774b8ed1c3cce87180b2
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 #pragma once
13 #include <vcl/dllapi.h>
15 enum class GestureEventPanType
17 Begin,
18 Update,
19 End
22 enum class PanningOrientation
24 Horizontal,
25 Vertical
28 class VCL_DLLPUBLIC GestureEventPan
30 public:
31 sal_Int32 mnX;
32 sal_Int32 mnY;
33 GestureEventPanType meEventType;
35 sal_Int32 mnOffset;
36 PanningOrientation meOrientation;
38 GestureEventPan()
39 : mnX(0)
40 , mnY(0)
41 , meEventType(GestureEventPanType::Begin)
42 , mnOffset(0)
43 , meOrientation(PanningOrientation::Horizontal)
47 GestureEventPan(sal_Int32 nX, sal_Int32 nY, GestureEventPanType eEventType, sal_Int32 nOffset,
48 PanningOrientation eOrientation)
49 : mnX(nX)
50 , mnY(nY)
51 , meEventType(eEventType)
52 , mnOffset(nOffset)
53 , meOrientation(eOrientation)
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */