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
10struct TextBoxSelection;
11namespace OreUI { class TextInputHandler; }
12namespace cohtml { class View; }
13// clang-format on
14
15namespace OreUI::InputUtils {
16
17class TextInputProxy {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::cohtml::View&> mView;
22 ::ll::TypedStorage<8, 8, ::OreUI::TextInputHandler&> mTextInputHandler;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 TextInputProxy& operator=(TextInputProxy const&);
28 TextInputProxy(TextInputProxy const&);
29 TextInputProxy();
30
31public:
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
Definition TextInputProxy.h:7
Definition TextInputHandler.h:7
Definition View.h:7
Definition TextBoxSelection.h:5