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

Public Types

using DataProvider = ::Settings::IStringDataProvider
using FormatValidationCallback = ::std::function<::std::optional<::std::string>(::std::string)>

Public Member Functions

virtual::Settings::ComponentState getDefaultState () const
MCAPI ::std::optional<::std::string > getPlaceholder () const
MCAPI bool updateValue (::std::string const &value)
MCAPI::Settings::ComponentState $getDefaultState () const

Public Attributes

::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Settings::IStringDataProvider > > mDataProvider
::ll::TypedStorage< 8, 40, ::std::optional<::std::string > > mPlaceholder
::ll::TypedStorage< 4, 8, ::std::optional< int > > mMaxLength
::ll::TypedStorage< 8, 72, ::std::optional<::std::function<::std::optional<::std::string >(::std::string)> > > mFormatValidation
::ll::TypedStorage< 1, 1, bool > mIsFormatValid
::ll::TypedStorage< 8, 40, ::std::optional<::std::string > > mFallbackValue

Member Function Documentation

◆ getPlaceholder()

MCAPI ::std::optional<::std::string > Settings::StringComponent::getPlaceholder ( ) 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.

◆ updateValue()

MCAPI bool Settings::StringComponent::updateValue ( ::std::string const & 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.

◆ $getDefaultState()

MCAPI::Settings::ComponentState Settings::StringComponent::$getDefaultState ( ) 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.

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