LeviLamina
Loading...
Searching...
No Matches
GuiScaleDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IOptionsDataProvider.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8
9// auto generated forward declare list
10// clang-format off
11class IOptions;
12namespace Settings { struct OptionData; }
13namespace Settings::RegistryBuilder { class IBuilderContext; }
14// clang-format on
15
16namespace Settings {
17
18class GuiScaleDataProvider : public ::Settings::IOptionsDataProvider {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::IOptions&> mOptions;
23 ::ll::TypedStorage<8, 64, ::std::function<int()>> mGetOptimalGuiScale;
24 ::ll::TypedStorage<8, 64, ::std::function<int()>> mGetMaxGuiScale;
25 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mInfo;
26 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mGuiScaleSubscription;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mGuiAccessibilityScalingSubscription;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSceneSizeChangedSubscription;
29 ::ll::TypedStorage<8, 24, ::std::vector<::Settings::OptionData>> mDropdownOptions;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 GuiScaleDataProvider& operator=(GuiScaleDataProvider const&);
35 GuiScaleDataProvider(GuiScaleDataProvider const&);
36 GuiScaleDataProvider();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual bool canModify() const /*override*/;
42
43 virtual ::gsl::span<::Settings::OptionData const> getOptions() const /*override*/;
44
45 virtual int getValue() const /*override*/;
46
47 virtual void setValue(int value) /*override*/;
48
49 virtual ::std::optional<::std::string> const& getInfo() const /*override*/;
50
51 virtual ~GuiScaleDataProvider() /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI GuiScaleDataProvider(
58 ::Settings::RegistryBuilder::IBuilderContext& context,
59 ::std::function<float()> getOptimalGuiScale,
60 ::std::function<float()> getMaxGuiScale
61 );
62
63 MCAPI void _updateInfo();
64
65 MCAPI void _updateOptions();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(
72 ::Settings::RegistryBuilder::IBuilderContext& context,
73 ::std::function<float()> getOptimalGuiScale,
74 ::std::function<float()> getMaxGuiScale
75 );
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI bool $canModify() const;
88
89 MCAPI ::gsl::span<::Settings::OptionData const> $getOptions() const;
90
91 MCAPI int $getValue() const;
92
93 MCAPI void $setValue(int value);
94
95 MCFOLD ::std::optional<::std::string> const& $getInfo() const;
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
104
105} // namespace Settings
Definition IOptions.h:5
Definition GuiScaleDataProvider.h:7
static MCAPI void ** $vftable()
Definition IBuilderContext.h:7
Definition OptionData.h:7