LeviLamina
Loading...
Searching...
No Matches
TextInputProxy.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/input/TextBoxCaretMovement.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
struct
TextBoxSelection
;
11
namespace
OreUI {
class
TextInputHandler
; }
12
namespace
cohtml {
class
View
; }
13
// clang-format on
14
15
namespace
OreUI::InputUtils {
16
17
class
TextInputProxy
{
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
::ll::TypedStorage<8, 8, ::cohtml::View&> mView;
22
::ll::TypedStorage<8, 8, ::OreUI::TextInputHandler&> mTextInputHandler;
23
// NOLINTEND
24
25
public
:
26
// prevent constructor by default
27
TextInputProxy& operator=(TextInputProxy
const
&);
28
TextInputProxy(TextInputProxy
const
&);
29
TextInputProxy();
30
31
public
:
32
// member functions
33
// NOLINTBEGIN
34
MCAPI
int
calculateCaretPositionAfterMovement(::TextBoxCaretMovement movement);
35
36
MCAPI
void
clearSelection();
37
38
MCAPI
void
clearText();
39
40
MCAPI
void
insertTextAtCaret(::std::string_view text);
41
42
MCAPI
void
setCaretPosition(
int
targetPos);
43
44
MCAPI
void
setSelection(::TextBoxSelection targetSelection);
45
// NOLINTEND
46
};
47
48
}
// namespace OreUI::InputUtils
OreUI::InputUtils::TextInputProxy
Definition
TextInputProxy.h:7
OreUI::TextInputHandler
Definition
TextInputHandler.h:7
cohtml::View
Definition
View.h:7
TextBoxSelection
Definition
TextBoxSelection.h:5
src-client
mc
client
gui
oreui
TextInputProxy.h
Generated on
for LeviLamina by
1.16.1