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