Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Settings::GuiScaleDataProvider Class Reference
Inheritance diagram for Settings::GuiScaleDataProvider:

Public Types

using ChangeCallback = ::std::function<void()>

Public Member Functions

GuiScaleDataProvider & operator= (GuiScaleDataProvider const &)
 GuiScaleDataProvider (GuiScaleDataProvider const &)
virtual bool canModify () const
virtual ::gsl::span<::Settings::OptionData const > getOptions () const
virtual int getValue () const
virtual void setValue (int value)
virtual ::std::optional< ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData > > const & getInfo () const
MCAPI GuiScaleDataProvider (::Settings::RegistryBuilder::IBuilderContext &context, ::std::function< float()> getOptimalGuiScale, ::std::function< float()> getMaxGuiScale)
MCAPI void _updateInfo ()
MCAPI void _updateOptions ()
MCAPI void * $ctor (::Settings::RegistryBuilder::IBuilderContext &context, ::std::function< float()> getOptimalGuiScale, ::std::function< float()> getMaxGuiScale)
MCAPI bool $canModify () const
MCAPI ::gsl::span<::Settings::OptionData const > $getOptions () const
MCAPI int $getValue () const
MCAPI void $setValue (int value)
MCAPI ::std::optional< ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData > > const & $getInfo () const
virtual bool flush ()
MCAPI bool $flush ()
virtual void setChangeListener (::std::function< void()> callback)
MCAPI void $dtor ()
MCAPI void $setChangeListener (::std::function< void()> callback)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::IOptionRegistry & > mOptions
::ll::TypedStorage< 8, 64, ::std::function< int()> > mGetOptimalGuiScale
::ll::TypedStorage< 8, 64, ::std::function< int()> > mGetMaxGuiScale
::ll::TypedStorage< 8, 64, ::std::function< int()> > mGetClampedGuiScaleOffset
::ll::TypedStorage< 8, 80, ::std::optional<::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData > > > mInfo
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mGuiScaleSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mGuiAccessibilityScalingSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mSceneSizeChangedSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mLanguageChangedSubscription
::ll::TypedStorage< 8, 24, ::std::vector<::Settings::OptionData > > mDropdownOptions
::ll::TypedStorage< 8, 64, ::std::function< void()> > mListener
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mSubscription

Constructor & Destructor Documentation

◆ GuiScaleDataProvider()

MCAPI Settings::GuiScaleDataProvider::GuiScaleDataProvider ( ::Settings::RegistryBuilder::IBuilderContext & context,
::std::function< float()> getOptimalGuiScale,
::std::function< float()> getMaxGuiScale )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ canModify()

virtual bool Settings::GuiScaleDataProvider::canModify ( ) const
virtual

◆ getOptions()

virtual ::gsl::span<::Settings::OptionData const > Settings::GuiScaleDataProvider::getOptions ( ) const
virtual

◆ getValue()

virtual int Settings::GuiScaleDataProvider::getValue ( ) const
virtual

◆ setValue()

virtual void Settings::GuiScaleDataProvider::setValue ( int value)
virtual

◆ getInfo()

virtual ::std::optional< ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData > > const & Settings::GuiScaleDataProvider::getInfo ( ) const
virtual

◆ _updateInfo()

MCAPI void Settings::GuiScaleDataProvider::_updateInfo ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateOptions()

MCAPI void Settings::GuiScaleDataProvider::_updateOptions ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Settings::GuiScaleDataProvider::$ctor ( ::Settings::RegistryBuilder::IBuilderContext & context,
::std::function< float()> getOptimalGuiScale,
::std::function< float()> getMaxGuiScale )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canModify()

MCAPI bool Settings::GuiScaleDataProvider::$canModify ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getOptions()

MCAPI ::gsl::span<::Settings::OptionData const > Settings::GuiScaleDataProvider::$getOptions ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getValue()

MCAPI int Settings::GuiScaleDataProvider::$getValue ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setValue()

MCAPI void Settings::GuiScaleDataProvider::$setValue ( int value)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getInfo()

MCAPI ::std::optional< ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData > > const & Settings::GuiScaleDataProvider::$getInfo ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $flush()

MCAPI bool Settings::IOptionsDataProvider::$flush ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void Settings::IDataProvider::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setChangeListener()

MCAPI void Settings::IDataProvider::$setChangeListener ( ::std::function< void()> callback)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Settings::IDataProvider::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: