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;
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<4, 4, uint> mTapButtonId;
25 ::ll::TypedStorage<4, 4, uint> mHoldButtonId;
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, int> mActivePointerId;
34 ::ll::TypedStorage<8, 8, double> mStartTime;
35 ::ll::TypedStorage<1, 1, bool> mIsHolding;
36 ::ll::TypedStorage<4, 4, float> mGlyphScale;
37 ::ll::TypedStorage<8, 32, ::std::string> mIconPath;
38 ::ll::TypedStorage<8, 32, ::std::string> mPressedIconPath;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~TouchTapOrHoldGlyphButtonControl() /*override*/;
49
50 virtual void render(::InputRenderContext& context) const /*override*/;
51
52 virtual void
53 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
54
55 virtual void release(::InputEventQueue& eventQueue) /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
62 ::std::function<::RectangleArea()> area,
63 ::std::function<bool()> condition,
64 uint tapButtonId,
65 uint holdButtonId,
66 ::std::string const& iconPath,
67 ::std::string const& pressedIconPath,
68 ::ButtonColors const& buttonColors,
69 int uvWidth,
70 int uvHeight,
71 float glyphScale
72 );
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(
79 ::std::function<::RectangleArea()> area,
80 ::std::function<bool()> condition,
81 uint tapButtonId,
82 uint holdButtonId,
83 ::std::string const& iconPath,
84 ::std::string const& pressedIconPath,
85 ::ButtonColors const& buttonColors,
86 int uvWidth,
87 int uvHeight,
88 float glyphScale
89 );
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCAPI void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI void $render(::InputRenderContext& context) const;
102
103 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
104
105 MCAPI void $release(::InputEventQueue& eventQueue);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControl.h:5
Definition TouchPointResults.h:5
Definition TouchTapOrHoldGlyphButtonControl.h:5
static MCAPI void ** $vftable()
Definition ButtonColors.h:5