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
56 virtual ~GesturePolicy() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI GesturePolicy(
63 ::OreUI::ITouchSystem& touchSystem,
64 ::OreUI::GestureParameters const& gestureParameters,
65 float pixelsPerCm,
66 ::std::function<::std::chrono::milliseconds()> const& getTime,
67 bool isTTSEnabled
68 );
69
70 MCAPI void onTouchesUpdate(::std::vector<::OreUI::TouchEventData> const& events);
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(
77 ::OreUI::ITouchSystem& touchSystem,
78 ::OreUI::GestureParameters const& gestureParameters,
79 float pixelsPerCm,
80 ::std::function<::std::chrono::milliseconds()> const& getTime,
81 bool isTTSEnabled
82 );
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCAPI void $dtor();
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCAPI void $onPanRecognized(::Vec2 const& gestureBeginPos, ::Vec2 const& currentPos, ::Vec2 const& delta);
95
96 MCAPI void $onPanCompleted(::Vec2 const& endPos);
97
98 MCAPI void
99 $onFlingCompleted(::Vec2 const& endPos, ::Vec2 const& flingStart, ::std::chrono::milliseconds flingDuration);
100
101 MCAPI void $onTapRecognized(::Vec2 const& position);
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
110
111} // namespace OreUI
Definition GesturePolicy.h:7
static MCAPI void ** $vftable()
Definition ITouchSystem.h:7
Definition GestureParameters.h:7
Definition TouchEventData.h:7