LeviLamina
Loading...
Searching...
No Matches
GesturePolicy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/input/gestures/GestureManager.h"
7#include "mc/client/gui/oreui/input/gestures/GestureMode.h"
8#include "mc/client/gui/oreui/interface/IGestureListener.h"
9#include "mc/deps/core/math/Vec2.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace OreUI { class ITouchSystem; }
14namespace OreUI { struct GestureParameters; }
15namespace OreUI { struct TouchEventData; }
16// clang-format on
17
18namespace OreUI {
19
20class GesturePolicy : public ::OreUI::IGestureListener {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::OreUI::ITouchSystem&> mTouchSystem;
25 ::ll::TypedStorage<8, 24, ::OreUI::GestureManager> mGestureManager;
26 ::ll::TypedStorage<4, 4, ::OreUI::GestureMode> mMode;
27 ::ll::TypedStorage<8, 64, ::std::function<::std::chrono::milliseconds()>> mGetTime;
28 ::ll::TypedStorage<8, 8, ::std::chrono::milliseconds> mLastTapTime;
29 ::ll::TypedStorage<4, 8, ::Vec2> mLastTapPos;
30 ::ll::TypedStorage<4, 4, float const> mTapDistanceTolerancePixels;
31 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mTtsDownTouchesIds;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 GesturePolicy& operator=(GesturePolicy const&);
37 GesturePolicy(GesturePolicy const&);
38 GesturePolicy();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void
44 onPanRecognized(::Vec2 const& gestureBeginPos, ::Vec2 const& currentPos, ::Vec2 const& delta) /*override*/;
45
46 virtual void onPanCompleted(::Vec2 const& endPos) /*override*/;
47
48 virtual void onFlingCompleted(
49 ::Vec2 const& endPos,
50 ::Vec2 const& flingStart,
51 ::std::chrono::milliseconds flingDuration
52 ) /*override*/;
53
54 virtual void onTapRecognized(::Vec2 const& position) /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI GesturePolicy(
61 ::OreUI::ITouchSystem& touchSystem,
62 ::OreUI::GestureParameters const& gestureParameters,
63 float pixelsPerCm,
64 ::std::function<::std::chrono::milliseconds()> const& getTime,
65 bool isTTSEnabled
66 );
67
68 MCAPI void onTouchesUpdate(::std::vector<::OreUI::TouchEventData> const& events);
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(
75 ::OreUI::ITouchSystem& touchSystem,
76 ::OreUI::GestureParameters const& gestureParameters,
77 float pixelsPerCm,
78 ::std::function<::std::chrono::milliseconds()> const& getTime,
79 bool isTTSEnabled
80 );
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI void $onPanRecognized(::Vec2 const& gestureBeginPos, ::Vec2 const& currentPos, ::Vec2 const& delta);
87
88 MCAPI void $onPanCompleted(::Vec2 const& endPos);
89
90 MCAPI void
91 $onFlingCompleted(::Vec2 const& endPos, ::Vec2 const& flingStart, ::std::chrono::milliseconds flingDuration);
92
93 MCAPI void $onTapRecognized(::Vec2 const& position);
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
102
103} // namespace OreUI
Definition GesturePolicy.h:7
static MCAPI void ** $vftable()
Definition ITouchSystem.h:7
Definition GestureParameters.h:7
Definition TouchEventData.h:7