LeviLamina
Loading...
Searching...
No Matches
ToggleComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/UIComponent.h"
8
9// auto generated forward declare list
10// clang-format off
13class UIControl;
14class VisualTree;
15struct ScreenEvent;
16// clang-format on
17
18class ToggleComponent : public ::UIComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedStateControl;
23 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedStateControl;
24 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedHoverStateControl;
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedHoverStateControl;
26 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedStateControl;
27 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedHoverStateControl;
28 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedStateControl;
29 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedHoverStateControl;
30 bool mChecked : 1;
31 bool mHover : 1;
32 bool mRadioToggleGroup : 1;
33 bool mDefaultState : 1;
34 bool mEnableDirectionalToggling : 1;
35 ::ll::TypedStorage<8, 32, ::std::string> mGridCollectionName;
36 ::ll::TypedStorage<4, 4, uint> mToggleNameId;
37 ::ll::TypedStorage<4, 4, uint> mToggleOnButtonId;
38 ::ll::TypedStorage<4, 4, uint> mToggleOffButtonId;
39 ::ll::TypedStorage<4, 4, int> mForcedIndex;
40 ::ll::TypedStorage<4, 4, int> mDefaultGroupSelectedIndex;
41 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOn;
42 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOff;
43 ::ll::TypedStorage<8, 32, ::std::string> mDescriptiveText;
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 ToggleComponent();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual ~ToggleComponent() /*override*/ = default;
54
55 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
56
57 virtual void reset() /*override*/;
58
59 virtual ::ComponentReceiveActionType receive(::ScreenEvent const& screenEvent) /*override*/;
60
61 virtual ::ComponentReceiveActionType receive(
62 ::VisualTree& visualTree,
63 ::ScreenInputContext& context,
64 ::UIAnimationController& animationController,
65 ::ScreenEvent const& screenEvent
66 ) /*override*/;
67
68 virtual ::std::string const& getTextToSpeechComponentValue() const /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI explicit ToggleComponent(::UIControl& owner);
75
76 MCAPI void _setChecked(::ScreenInputContext& context, bool checked, bool toggledByButtonClick);
77
78 MCAPI void _updateControlVisibility();
79
80 MCAPI void _updateToggleGroupState(::VisualTree& visualTree, bool toggleState);
81
82 MCAPI void resetDefaultState();
83
84 MCAPI void setChecked(bool checked);
85
86 MCAPI void setForcedGroupIndex(int forcedIndex);
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(::UIControl& owner);
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
99
100 MCAPI void $reset();
101
102 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
103
104 MCAPI ::ComponentReceiveActionType $receive(
105 ::VisualTree& visualTree,
106 ::ScreenInputContext& context,
107 ::UIAnimationController& animationController,
108 ::ScreenEvent const& screenEvent
109 );
110
111 MCAPI ::std::string const& $getTextToSpeechComponentValue() const;
112 // NOLINTEND
113};
Definition ScreenInputContext.h:5
Definition ToggleComponent.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UIControl.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5