LeviLamina
Loading...
Searching...
No Matches
TouchGlyphButtonControl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Color.h"
7#include "mc/deps/input/TouchControl.h"
8#include "mc/deps/input/enums/ButtonState.h"
9
10// auto generated forward declare list
11// clang-format off
12class InputEventQueue;
14class RectangleArea;
16struct ButtonColors;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCondition;
24 ::ll::TypedStorage<8, 64, ::std::function<float()>> mOpacity;
25 ::ll::TypedStorage<4, 4, uint> mButtonId;
26 ::ll::TypedStorage<1, 1, ::ButtonState> mButtonState;
27 ::ll::TypedStorage<4, 16, ::mce::Color> mPressedColor;
28 ::ll::TypedStorage<4, 16, ::mce::Color> mReleasedColor;
29 ::ll::TypedStorage<4, 4, int> mUx;
30 ::ll::TypedStorage<4, 4, int> mUv;
31 ::ll::TypedStorage<4, 4, int> mUvWidth;
32 ::ll::TypedStorage<4, 4, int> mUvHeight;
33 ::ll::TypedStorage<4, 4, float> mInnerPaddingX;
34 ::ll::TypedStorage<4, 4, float> mInnerPaddingY;
35 ::ll::TypedStorage<4, 4, int> mActivePointerId;
36 ::ll::TypedStorage<1, 1, bool> mPassThrough;
37 ::ll::TypedStorage<1, 1, bool> mPromiscuous;
38 ::ll::TypedStorage<4, 4, int> mTouchStateRequirement;
39 ::ll::TypedStorage<8, 8, int64> mTimeSinceFirstPress;
40 ::ll::TypedStorage<1, 1, bool> mWaitingForSecondPress;
41 ::ll::TypedStorage<1, 1, bool> mExtendButtonPressOutsideAreaUntilReleased;
42 ::ll::TypedStorage<8, 32, ::std::string> mIconPath;
43 ::ll::TypedStorage<8, 32, ::std::string> mPressedIconPath;
44 ::ll::TypedStorage<4, 4, float> mGlyphScale;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~TouchGlyphButtonControl() /*override*/;
55
56 virtual uint getHoldButtonId() const /*override*/;
57
58 virtual int getActivePointerId() const /*override*/;
59
60 virtual bool releaseOnClear() const /*override*/;
61
62 virtual void render(::InputRenderContext& context) const /*override*/;
63
64 virtual void
65 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
66
67 virtual void release(::InputEventQueue& eventQueue) /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
74 ::std::function<::RectangleArea()> area,
75 ::std::function<bool()> condition,
76 ::std::function<float()> opacity,
77 uint buttonId,
78 ::ButtonColors const& buttonColors,
79 int ux,
80 int uv,
81 int uvWidth,
82 int uvHeight,
83 int activePointerId,
84 bool passThrough,
85 int touchStateRequirement,
86 float glyphScale,
87 bool promiscuous,
88 bool extendButtonPressOutsideUntilReleased,
89 float innerPaddingX,
90 float innerPaddingY
91 );
92
94 ::std::function<::RectangleArea()> area,
95 ::std::function<bool()> condition,
96 ::std::function<float()> opacity,
97 uint buttonId,
98 ::std::string const& iconPath,
99 ::std::string const& pressedIconPath,
100 ::ButtonColors const& buttonColors,
101 int uvWidth,
102 int uvHeight,
103 int activePointerId,
104 bool passThrough,
105 int touchStateRequirement,
106 float glyphScale,
107 bool promiscuous,
108 bool extendButtonPressOutsideUntilReleased,
109 float innerPaddingX,
110 float innerPaddingY
111 );
112 // NOLINTEND
113
114public:
115 // constructor thunks
116 // NOLINTBEGIN
117 MCAPI void* $ctor(
118 ::std::function<::RectangleArea()> area,
119 ::std::function<bool()> condition,
120 ::std::function<float()> opacity,
121 uint buttonId,
122 ::ButtonColors const& buttonColors,
123 int ux,
124 int uv,
125 int uvWidth,
126 int uvHeight,
127 int activePointerId,
128 bool passThrough,
129 int touchStateRequirement,
130 float glyphScale,
131 bool promiscuous,
132 bool extendButtonPressOutsideUntilReleased,
133 float innerPaddingX,
134 float innerPaddingY
135 );
136
137 MCAPI void* $ctor(
138 ::std::function<::RectangleArea()> area,
139 ::std::function<bool()> condition,
140 ::std::function<float()> opacity,
141 uint buttonId,
142 ::std::string const& iconPath,
143 ::std::string const& pressedIconPath,
144 ::ButtonColors const& buttonColors,
145 int uvWidth,
146 int uvHeight,
147 int activePointerId,
148 bool passThrough,
149 int touchStateRequirement,
150 float glyphScale,
151 bool promiscuous,
152 bool extendButtonPressOutsideUntilReleased,
153 float innerPaddingX,
154 float innerPaddingY
155 );
156 // NOLINTEND
157
158public:
159 // destructor thunk
160 // NOLINTBEGIN
161 MCAPI void $dtor();
162 // NOLINTEND
163
164public:
165 // virtual function thunks
166 // NOLINTBEGIN
167 MCFOLD uint $getHoldButtonId() const;
168
169 MCAPI int $getActivePointerId() const;
170
171 MCAPI bool $releaseOnClear() const;
172
173 MCAPI void $render(::InputRenderContext& context) const;
174
175 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
176
177 MCAPI void $release(::InputEventQueue& eventQueue);
178 // NOLINTEND
179
180public:
181 // vftables
182 // NOLINTBEGIN
183 MCNAPI static void** $vftable();
184 // NOLINTEND
185};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControl.h:5
Definition TouchGlyphButtonControl.h:5
static MCAPI void ** $vftable()
Definition TouchPointResults.h:5
STL namespace.
Definition ButtonColors.h:5