LibreOffice Module vcl (master) 1
GestureEventPan.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#pragma once
12
13#include <vcl/dllapi.h>
14
16{
17 Begin,
18 Update,
19 End
20};
21
23{
26};
27
29{
30public:
31 sal_Int32 mnX;
32 sal_Int32 mnY;
34
35 sal_Int32 mnOffset;
37
39 : mnX(0)
40 , mnY(0)
41 , meEventType(GestureEventPanType::Begin)
42 , mnOffset(0)
43 , meOrientation(PanningOrientation::Horizontal)
44 {
45 }
46
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)
54 {
55 }
56};
57
58/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
GestureEventPanType
PanningOrientation
GestureEventPan(sal_Int32 nX, sal_Int32 nY, GestureEventPanType eEventType, sal_Int32 nOffset, PanningOrientation eOrientation)
PanningOrientation meOrientation
GestureEventPanType meEventType
#define VCL_DLLPUBLIC
Definition: dllapi.h:29