LeviLamina
Loading...
Searching...
No Matches
StringComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/Component.h"
7#include "mc/client/settings/ComponentState.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Settings { class IStringDataProvider; }
12// clang-format on
13
14namespace Settings {
15
16class StringComponent : public ::Settings::Component<::Settings::StringComponent> {
17public:
18 // StringComponent inner types define
19 using DataProvider = ::Settings::IStringDataProvider;
20
21 using FormatValidationCallback = ::std::function<::std::optional<::std::string>(::std::string)>;
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Settings::IStringDataProvider>> mDataProvider;
27 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mPlaceholder;
28 ::ll::TypedStorage<4, 8, ::std::optional<int>> mMaxLength;
29 ::ll::TypedStorage<8, 72, ::std::optional<::std::function<::std::optional<::std::string>(::std::string)>>>
30 mFormatValidation;
31 ::ll::TypedStorage<1, 1, bool> mIsFormatValid;
32 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFallbackValue;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~StringComponent() /*override*/ = default;
39
40 virtual ::Settings::ComponentState getDefaultState() const /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ::std::optional<::std::string> getPlaceholder() const;
47
48 MCAPI bool updateValue(::std::string const& value);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCFOLD ::Settings::ComponentState $getDefaultState() const;
55 // NOLINTEND
56};
57
58} // namespace Settings
Definition IStringDataProvider.h:7
Definition StringComponent.h:7