LeviLamina
Loading...
Searching...
No Matches
KeyboardManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class RectangleArea;
8class Vec2;
9// clang-format on
10
11class KeyboardManager {
12public:
13 // virtual functions
14 // NOLINTBEGIN
15 virtual ~KeyboardManager() = default;
16
17 virtual bool tryEnableKeyboard(
18 ::std::string const& currentText,
19 int maxLength,
20 bool limitInput,
21 bool numbersOnly,
22 bool isMultiline,
23 ::Vec2 const& position,
24 float controlHeight
25 ) = 0;
26
27 virtual bool isFullScreenKeyboard() const = 0;
28
29 virtual void disableKeyboard() = 0;
30
31 virtual bool canActivateKeyboard() = 0;
32
33 virtual bool isKeyboardEnabled() const = 0;
34
35 virtual bool isKeyboardActive() const = 0;
36
37 virtual bool wasEnabledWithMultiline() const = 0;
38
39 virtual bool isNumbersOnly() const = 0;
40
41 virtual int getMaxLength() const = 0;
42
43 virtual float getKeyboardHeight() const = 0;
44
45 virtual void setForcedHeight(float height) = 0;
46
47 virtual bool tryClaimKeyboardOwnership() = 0;
48
49 virtual void releaseKeyboardOwnership() = 0;
50
51 virtual bool getKeyboardClosedEvent() = 0;
52
53 virtual void clearKeyboardClosedEvent() = 0;
54
55 virtual void updateTextEditBoxPosition(
56 ::RectangleArea const& controlPosition,
57 ::Vec2 const& caretPosition,
58 ::Vec2 const& caretSize
59 ) = 0;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition KeyboardManager.h:5
static MCAPI void ** $vftable()
Definition RectangleArea.h:5
Definition Vec2.h:5