LibreOffice Module vcl (master)
1
include
vcl
GestureEventRotate.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
15
enum class
GestureEventRotateType
16
{
17
Begin
,
18
Update
,
19
End
20
};
21
22
class
VCL_DLLPUBLIC
GestureEventRotate
23
{
24
public
:
25
sal_Int32 mnX = 0;
26
sal_Int32 mnY = 0;
27
28
GestureEventRotateType
meEventType =
GestureEventRotateType::Begin
;
29
30
// The difference of between the current gesture scale and the scale at the beginning of the
31
// gesture.
32
double
mfAngleDelta = 0;
33
34
GestureEventRotate
() =
default
;
35
36
GestureEventRotate
(sal_Int32 nInitialX, sal_Int32 nInitialY,
GestureEventRotateType
eEventType,
37
double
fAngleDelta)
38
: mnX(nInitialX)
39
, mnY(nInitialY)
40
, meEventType(eEventType)
41
, mfAngleDelta(fAngleDelta)
42
{
43
}
44
};
45
46
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
GestureEventRotateType
GestureEventRotateType
Definition:
GestureEventRotate.hxx:16
GestureEventRotateType::Begin
@ Begin
GestureEventRotate
Definition:
GestureEventRotate.hxx:23
GestureEventRotate::GestureEventRotate
GestureEventRotate(sal_Int32 nInitialX, sal_Int32 nInitialY, GestureEventRotateType eEventType, double fAngleDelta)
Definition:
GestureEventRotate.hxx:36
GestureEventRotate::GestureEventRotate
GestureEventRotate()=default
SwDocPositions::End
@ End
dllapi.h
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
SwFieldTypesEnum::Begin
@ Begin
LinkCreateType::Update
@ Update
Generated on Sun Jul 30 2023 04:34:48 for LibreOffice Module vcl (master) by
1.9.3