LeviLamina
Loading...
Searching...
No Matches
DropdownScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/ScreenController.h"
8
10public:
11 // DropdownScreenController inner types declare
12 // clang-format off
14 // clang-format on
15
16 // DropdownScreenController inner types define
18 public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::std::string const> mCollectionName;
22 ::ll::TypedStorage<8, 32, ::std::string const> mDropdownName;
23 ::ll::TypedStorage<8, 32, ::std::string const> mDropdownToggleLabelBindingName;
24 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int> const> mNameValuePairs;
25 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string> const> mValueLabelPairs;
26 ::ll::TypedStorage<8, 32, ::std::string const> mEnabledBindingName;
27 ::ll::TypedStorage<8, 64, ::std::function<bool(int)>> mIsEnabled;
28 ::ll::TypedStorage<8, 64, ::std::function<int(int)>> mGetValue;
29 ::ll::TypedStorage<8, 64, ::std::function<void(int, int)>> mSetValue;
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 SetUpCallbacksForCollectionDropdownOptionsParameters();
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI SetUpCallbacksForCollectionDropdownOptionsParameters(
40 ::std::string const& collectionName,
41 ::std::string const& dropdownName,
42 ::std::string const& dropdownToggleLabelBindingName,
43 ::std::unordered_map<::std::string, int> const& nameValuePairs,
44 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
45 ::std::string const& enabledBindingName,
46 ::std::function<bool(int)> isEnabled,
47 ::std::function<int(int)> getValue,
48 ::std::function<void(int, int)> setValue
49 );
50
51 MCAPI ~SetUpCallbacksForCollectionDropdownOptionsParameters();
52 // NOLINTEND
53
54 public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(
58 ::std::string const& collectionName,
59 ::std::string const& dropdownName,
60 ::std::string const& dropdownToggleLabelBindingName,
61 ::std::unordered_map<::std::string, int> const& nameValuePairs,
62 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
63 ::std::string const& enabledBindingName,
64 ::std::function<bool(int)> isEnabled,
65 ::std::function<int(int)> getValue,
66 ::std::function<void(int, int)> setValue
67 );
68 // NOLINTEND
69
70 public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCAPI void $dtor();
74 // NOLINTEND
75 };
76
77 using BooleanOptionGetter = ::std::function<bool()>;
78
79 using IntegerOptionGetter = ::std::function<int()>;
80
81 using IntegerOptionSetter = ::std::function<void(int)>;
82
83 using CollectionBooleanOptionGetter = ::std::function<bool(int)>;
84
85 using CollectionIntegerOptionGetter = ::std::function<int(int)>;
86
87 using CollectionIntegerOptionSetter = ::std::function<void(int, int)>;
88
89public:
90 // member variables
91 // NOLINTBEGIN
92 ::ll::TypedStorage<4, 4, int> mOffset;
93 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mActiveDropdown;
94 ::ll::TypedStorage<1, 1, bool> mUpdateBindings;
95 ::ll::TypedStorage<
96 8,
97 8,
98 ::std::unique_ptr<::DropdownScreenController::SetUpCallbacksForCollectionDropdownOptionsParameters>>
99 mDelayedParams;
100 // NOLINTEND
101
102public:
103 // virtual functions
104 // NOLINTBEGIN
105 virtual ~DropdownScreenController() /*override*/;
106
107 virtual ::ui::DirtyFlag tick() /*override*/;
108 // NOLINTEND
109
110public:
111 // member functions
112 // NOLINTBEGIN
113 MCAPI DropdownScreenController();
114
115 MCAPI void setOffset(int offset);
116
117 MCAPI void setUpCallbacksForCollectionDropdownOption(
118 ::std::string const& collectionName,
119 int const& collectionSize,
120 ::std::string const& dropdownName,
121 ::std::string const& dropdownToggleLabelBindingName,
122 ::std::unordered_map<::std::string, int> const& nameValuePairs,
123 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
124 ::std::string const& enabledBindingName,
125 ::std::function<bool(int)> isEnabled,
126 ::std::function<int(int)> getValue,
127 ::std::function<void(int, int)> setValue
128 );
129
130 MCAPI void setUpCallbacksForDropdownOption(
131 ::std::string const& dropdownName,
132 ::std::string const& dropdownToggleLabelBindingName,
133 ::std::unordered_map<::std::string, int> const& nameValuePairs,
134 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
135 ::std::string const& enabledBindingName,
136 ::std::function<bool()> isEnabled,
137 ::std::function<int()> getValue,
138 ::std::function<void(int)> setValue
139 );
140
141 MCAPI void updateDropdownCollectionSize(int const& collectionSize);
142 // NOLINTEND
143
144public:
145 // constructor thunks
146 // NOLINTBEGIN
147 MCAPI void* $ctor();
148 // NOLINTEND
149
150public:
151 // destructor thunk
152 // NOLINTBEGIN
153 MCAPI void $dtor();
154 // NOLINTEND
155
156public:
157 // virtual function thunks
158 // NOLINTBEGIN
159 MCAPI ::ui::DirtyFlag $tick();
160 // NOLINTEND
161
162public:
163 // vftables
164 // NOLINTBEGIN
165 MCNAPI static void** $vftable();
166 // NOLINTEND
167};
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5