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