Coverage Report

Created: 2026-11-06 11:29

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/vcl/GestureEventPan.hxx
Line
Count
Source
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
15
enum class GestureEventPanType
16
{
17
    Begin,
18
    Update,
19
    End
20
};
21
22
enum class PanningOrientation
23
{
24
    Horizontal,
25
    Vertical
26
};
27
28
class VCL_DLLPUBLIC GestureEventPan
29
{
30
public:
31
    sal_Int32 mnX;
32
    sal_Int32 mnY;
33
    GestureEventPanType meEventType;
34
35
    sal_Int32 mnOffset;
36
    PanningOrientation meOrientation;
37
38
    GestureEventPan()
39
0
        : mnX(0)
40
0
        , mnY(0)
41
0
        , meEventType(GestureEventPanType::Begin)
42
0
        , mnOffset(0)
43
0
        , meOrientation(PanningOrientation::Horizontal)
44
0
    {
45
0
    }
46
47
    GestureEventPan(sal_Int32 nX, sal_Int32 nY, GestureEventPanType eEventType, sal_Int32 nOffset,
48
                    PanningOrientation eOrientation)
49
0
        : mnX(nX)
50
0
        , mnY(nY)
51
0
        , meEventType(eEventType)
52
0
        , mnOffset(nOffset)
53
0
        , meOrientation(eOrientation)
54
0
    {
55
0
    }
56
};
57
58
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */