LeviLamina
Loading...
Searching...
No Matches
TouchTapOrHoldGlyphButtonControl.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;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCondition;
22 ::ll::TypedStorage<4, 4, uint> mTapButtonId;
23 ::ll::TypedStorage<4, 4, uint> mHoldButtonId;
24 ::ll::TypedStorage<1, 1, ::ButtonState> mButtonState;
25 ::ll::TypedStorage<4, 16, ::mce::Color> mPressedColor;
26 ::ll::TypedStorage<4, 16, ::mce::Color> mReleasedColor;
27 ::ll::TypedStorage<4, 4, int> mUx;
28 ::ll::TypedStorage<4, 4, int> mUv;
29 ::ll::TypedStorage<4, 4, int> mUvWidth;
30 ::ll::TypedStorage<4, 4, int> mUvHeight;
31 ::ll::TypedStorage<4, 4, int> mActivePointerId;
32 ::ll::TypedStorage<8, 8, double> mStartTime;
33 ::ll::TypedStorage<1, 1, bool> mIsHolding;
34 ::ll::TypedStorage<4, 4, float> mGlyphScale;
35 ::ll::TypedStorage<8, 32, ::std::string> mIconPath;
36 ::ll::TypedStorage<8, 32, ::std::string> mPressedIconPath;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~TouchTapOrHoldGlyphButtonControl() /*override*/ = default;
43
44 virtual void render(::InputRenderContext& context) const /*override*/;
45
46 virtual void
47 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
48
49 virtual void release(::InputEventQueue& eventQueue) /*override*/;
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCAPI void $render(::InputRenderContext& context) const;
56
57 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
58
59 MCAPI void $release(::InputEventQueue& eventQueue);
60 // NOLINTEND
61};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControl.h:5
Definition TouchPointResults.h:5
Definition TouchTapOrHoldGlyphButtonControl.h:5