LeviLamina
Loading...
Searching...
No Matches
MinecraftKeyboardManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/input/KeyboardManager.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8
9// auto generated forward declare list
10// clang-format off
11class GuiData;
12class IClientInstance;
13class RectangleArea;
14class Vec2;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mDelayedInputResume;
22 bool mIsKeyboardActive : 1;
23 bool mIsKeyboardEnabled : 1;
24 bool mKeyboardClosedEvent : 1;
25 ::ll::TypedStorage<4, 4, float> mKeyboardForcedHeight;
26 ::ll::TypedStorage<8, 64, ::std::function<void()>> mResumeInputCallback;
27 ::ll::TypedStorage<8, 64, ::std::function<void(int)>> mDisableInputToOtherClientsCallback;
28 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClientInstance;
29 ::ll::TypedStorage<1, 1, bool> mWasEnabledWithMultiline;
30 ::ll::TypedStorage<1, 1, bool> mIsNumbersOnly;
31 ::ll::TypedStorage<4, 4, int> mMaxLength;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 MinecraftKeyboardManager& operator=(MinecraftKeyboardManager const&);
37 MinecraftKeyboardManager(MinecraftKeyboardManager const&);
38 MinecraftKeyboardManager();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~MinecraftKeyboardManager() /*override*/;
44
45 virtual bool tryEnableKeyboard(
46 ::std::string const& currentText,
47 int maxLength,
48 bool limitInput,
49 bool numbersOnly,
50 bool isMultiline,
51 ::Vec2 const& position,
52 float controlHeight
53 ) /*override*/;
54
55 virtual bool isFullScreenKeyboard() const /*override*/;
56
57 virtual void disableKeyboard() /*override*/;
58
59 virtual bool canActivateKeyboard() /*override*/;
60
61 virtual bool isKeyboardEnabled() const /*override*/;
62
63 virtual bool isKeyboardActive() const /*override*/;
64
65 virtual bool wasEnabledWithMultiline() const /*override*/;
66
67 virtual bool isNumbersOnly() const /*override*/;
68
69 virtual int getMaxLength() const /*override*/;
70
71 virtual void setResumeInputCallback(::std::function<void()> callback);
72
73 virtual void setDisableInputToOtherClientsCallback(::std::function<void(int)> callback);
74
75 virtual bool tryClaimKeyboardOwnership() /*override*/;
76
77 virtual void releaseKeyboardOwnership() /*override*/;
78
79 virtual void setForcedHeight(float height) /*override*/;
80
81 virtual float getKeyboardHeight() const /*override*/;
82
83 virtual bool getKeyboardClosedEvent() /*override*/;
84
85 virtual void clearKeyboardClosedEvent() /*override*/;
86
87 virtual void updateTextEditBoxPosition(
88 ::RectangleArea const& controlPosition,
89 ::Vec2 const& caretPosition,
90 ::Vec2 const& caretSize
91 ) /*override*/;
92 // NOLINTEND
93
94public:
95 // member functions
96 // NOLINTBEGIN
97 MCAPI ::Bedrock::NotNullNonOwnerPtr<::GuiData const> _getGuiData() const;
98
99 MCAPI float _getGuiScale() const;
100
101 MCAPI float _getInvGuiScale() const;
102 // NOLINTEND
103
104public:
105 // static variables
106 // NOLINTBEGIN
107 MCAPI static int& mGlobalKeyboardOwnerId();
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCAPI void $dtor();
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCAPI bool $tryEnableKeyboard(
120 ::std::string const& currentText,
121 int maxLength,
122 bool limitInput,
123 bool numbersOnly,
124 bool isMultiline,
125 ::Vec2 const& position,
126 float controlHeight
127 );
128
129 MCAPI bool $isFullScreenKeyboard() const;
130
131 MCAPI void $disableKeyboard();
132
133 MCAPI bool $canActivateKeyboard();
134
135 MCFOLD bool $isKeyboardEnabled() const;
136
137 MCFOLD bool $isKeyboardActive() const;
138
139 MCFOLD bool $wasEnabledWithMultiline() const;
140
141 MCFOLD bool $isNumbersOnly() const;
142
143 MCFOLD int $getMaxLength() const;
144
145 MCAPI void $setResumeInputCallback(::std::function<void()> callback);
146
147 MCAPI void $setDisableInputToOtherClientsCallback(::std::function<void(int)> callback);
148
149 MCAPI bool $tryClaimKeyboardOwnership();
150
151 MCAPI void $releaseKeyboardOwnership();
152
153 MCAPI void $setForcedHeight(float height);
154
155 MCAPI float $getKeyboardHeight() const;
156
157 MCFOLD bool $getKeyboardClosedEvent();
158
159 MCAPI void $clearKeyboardClosedEvent();
160
161 MCAPI void $updateTextEditBoxPosition(
162 ::RectangleArea const& controlPosition,
163 ::Vec2 const& caretPosition,
164 ::Vec2 const& caretSize
165 );
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
171 MCNAPI static void** $vftable();
172 // NOLINTEND
173};
Definition GuiData.h:5
Definition IClientInstance.h:5
Definition KeyboardManager.h:5
Definition MinecraftKeyboardManager.h:5
static MCAPI void ** $vftable()
Definition RectangleArea.h:5
Definition Vec2.h:5