LeviLamina
Loading...
Searching...
No Matches
InputCaptureDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/input/KeyboardType.h"
7#include "mc/client/settings/IBooleanDataProvider.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Settings::RegistryBuilder { class IBuilderContext; }
12// clang-format on
13
14namespace Settings::InputControlsSettingsHelper {
15
16class InputCaptureDataProvider : public ::Settings::IBooleanDataProvider {
17public:
18 // InputCaptureDataProvider inner types define
19 using GetterCallback = ::std::function<
20 bool(::Settings::RegistryBuilder::IBuilderContext const&, ::std::string_view, ::std::optional<::KeyboardType>)>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 32, ::std::string> mAction;
26 ::ll::TypedStorage<4, 8, ::std::optional<::KeyboardType>> mType;
27 ::ll::TypedStorage<8, 8, ::Settings::RegistryBuilder::IBuilderContext&> mContext;
28 ::ll::TypedStorage<
29 8,
30 64,
31 ::std::function<bool(
32 ::Settings::RegistryBuilder::IBuilderContext const&,
33 ::std::string_view,
34 ::std::optional<::KeyboardType>
35 )>>
36 mCallback;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 InputCaptureDataProvider& operator=(InputCaptureDataProvider const&);
42 InputCaptureDataProvider(InputCaptureDataProvider const&);
43 InputCaptureDataProvider();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual bool canModify() const /*override*/;
49
50 virtual bool getValue() const /*override*/;
51
52 virtual void setValue(bool) /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI InputCaptureDataProvider(
59 ::std::string_view actionName,
60 ::std::optional<::KeyboardType> type,
61 ::Settings::RegistryBuilder::IBuilderContext& context,
62 ::std::function<bool(
63 ::Settings::RegistryBuilder::IBuilderContext const&,
64 ::std::string_view,
65 ::std::optional<::KeyboardType>
66 )> callback
67 );
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(
74 ::std::string_view actionName,
75 ::std::optional<::KeyboardType> type,
76 ::Settings::RegistryBuilder::IBuilderContext& context,
77 ::std::function<bool(
78 ::Settings::RegistryBuilder::IBuilderContext const&,
79 ::std::string_view,
80 ::std::optional<::KeyboardType>
81 )> callback
82 );
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCFOLD bool $canModify() const;
89
90 MCAPI bool $getValue() const;
91
92 MCFOLD void $setValue(bool);
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
101
102} // namespace Settings::InputControlsSettingsHelper
Definition IBuilderContext.h:7