LeviLamina
Loading...
Searching...
No Matches
ContextKeyBinding.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Editor::Input { class KeyBinding; }
8namespace Editor::Input { struct BindingInfo; }
9// clang-format on
10
11namespace Editor::Input {
12
13class ContextKeyBinding {
14public:
15 // member variables
16 // NOLINTBEGIN
22 // NOLINTEND
23
24#ifdef LL_PLAT_S
25public:
26 // prevent constructor by default
27 ContextKeyBinding& operator=(ContextKeyBinding const&);
28 ContextKeyBinding(ContextKeyBinding const&);
29 ContextKeyBinding();
30
31#else // LL_PLAT_C
32public:
33 // prevent constructor by default
34 ContextKeyBinding& operator=(ContextKeyBinding const&);
35 ContextKeyBinding();
36
37#endif
38public:
39 // member functions
40 // NOLINTBEGIN
41#ifdef LL_PLAT_C
42 MCNAPI ContextKeyBinding(::Editor::Input::ContextKeyBinding const&);
43
44 MCNAPI ContextKeyBinding(
45 ::Editor::Input::KeyBinding const& binding,
46 ::std::function<void(::Editor::Input::KeyBinding const&, ::Editor::Input::KeyBinding const&, bool)> modifiedFn
47 );
48
49 MCNAPI ContextKeyBinding(
50 ::Editor::Input::KeyBinding const& binding,
52 ::std::function<void(::Editor::Input::KeyBinding const&, ::Editor::Input::KeyBinding const&, bool)> modifiedFn
53 );
54
55 MCNAPI bool canRebind() const;
56
57 MCNAPI ::std::optional<::std::string> getActionId() const;
58
59 MCNAPI ::Editor::Input::KeyBinding const& getActiveBinding() const;
60
61 MCNAPI ::Editor::Input::KeyBinding const& getDefaultBinding() const;
62
63 MCNAPI ::std::optional<::std::string> getLabel() const;
64
65 MCNAPI ::std::optional<int> const& getProcessingState() const;
66
67 MCNAPI ::std::optional<::std::string> getTooltip() const;
68
69 MCNAPI bool isModified() const;
70
71 MCNAPI bool modifyBinding(::Editor::Input::KeyBinding const& newBinding, bool notifyChange);
72
73 MCNAPI bool resetBinding(bool notifyChange);
74
75 MCNAPI bool setProcessingState(::std::optional<int> newState);
76
77 MCNAPI ~ContextKeyBinding();
78#endif
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84#ifdef LL_PLAT_C
85 MCNAPI void* $ctor(::Editor::Input::ContextKeyBinding const&);
86
87 MCNAPI void* $ctor(
88 ::Editor::Input::KeyBinding const& binding,
89 ::std::function<void(::Editor::Input::KeyBinding const&, ::Editor::Input::KeyBinding const&, bool)> modifiedFn
90 );
91
92 MCNAPI void* $ctor(
93 ::Editor::Input::KeyBinding const& binding,
95 ::std::function<void(::Editor::Input::KeyBinding const&, ::Editor::Input::KeyBinding const&, bool)> modifiedFn
96 );
97#endif
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103#ifdef LL_PLAT_C
104 MCNAPI void $dtor();
105#endif
106 // NOLINTEND
107};
108
109} // namespace Editor::Input
Definition ContextKeyBinding.h:13
Definition KeyBinding.h:16
Definition BindingInfo.h:12
Definition Alias.h:14