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;
16struct ScreenEvent;
17// clang-format on
18
19class ToggleComponent : public ::UIComponent {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedStateControl;
24 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedStateControl;
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedHoverStateControl;
26 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedHoverStateControl;
27 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedStateControl;
28 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedHoverStateControl;
29 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedStateControl;
30 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedHoverStateControl;
31 bool mChecked : 1;
32 bool mHover : 1;
33 bool mRadioToggleGroup : 1;
34 bool mDefaultState : 1;
35 bool mEnableDirectionalToggling : 1;
36 ::ll::TypedStorage<8, 32, ::std::string> mGridCollectionName;
37 ::ll::TypedStorage<4, 4, uint> mToggleNameId;
38 ::ll::TypedStorage<4, 4, uint> mToggleOnButtonId;
39 ::ll::TypedStorage<4, 4, uint> mToggleOffButtonId;
40 ::ll::TypedStorage<4, 4, int> mForcedIndex;
41 ::ll::TypedStorage<4, 4, int> mDefaultGroupSelectedIndex;
42 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOn;
43 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOff;
44 ::ll::TypedStorage<8, 32, ::std::string> mDescriptiveText;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 ToggleComponent();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~ToggleComponent() /*override*/;
55
56 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
57
58 virtual void reset() /*override*/;
59
60 virtual ::ComponentReceiveActionType receive(::ScreenEvent const& screenEvent) /*override*/;
61
62 virtual ::ComponentReceiveActionType receive(
63 ::VisualTree& visualTree,
64 ::ScreenInputContext& context,
65 ::UIAnimationController& animationController,
66 ::ScreenEvent const& screenEvent
67 ) /*override*/;
68
69 virtual ::std::string const& getTextToSpeechComponentValue() const /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI explicit ToggleComponent(::UIControl& owner);
76
77 MCAPI void
78 _handleHoverEvent(::VisualTree& visualTree, ::ScreenInputContext& context, ::HoverScreenEventData const& hoverData);
79
80 MCAPI void _setChecked(::ScreenInputContext& context, bool checked, bool toggledByButtonClick);
81
82 MCAPI void _toggleOff(::VisualTree& visualTree, ::ScreenInputContext& context, bool toggledByButtonClick);
83
84 MCAPI void _toggleOn(::VisualTree& visualTree, ::ScreenInputContext& context, bool toggledByButtonClick);
85
86 MCAPI void _updateControlVisibility();
87
88 MCAPI void _updateToggleGroupState(::VisualTree& visualTree, bool toggleState);
89
90 MCAPI void setChecked(bool checked);
91
92 MCAPI void setForcedGroupIndex(int forcedIndex);
93 // NOLINTEND
94
95public:
96 // constructor thunks
97 // NOLINTBEGIN
98 MCAPI void* $ctor(::UIControl& owner);
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
111
112 MCAPI void $reset();
113
114 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
115
116 MCAPI ::ComponentReceiveActionType $receive(
117 ::VisualTree& visualTree,
118 ::ScreenInputContext& context,
119 ::UIAnimationController& animationController,
120 ::ScreenEvent const& screenEvent
121 );
122
123 MCAPI ::std::string const& $getTextToSpeechComponentValue() const;
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
Definition ScreenInputContext.h:5
Definition ToggleComponent.h:5
static MCAPI void ** $vftable()
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UIControl.h:5
Definition VisualTree.h:5
Definition HoverScreenEventData.h:5
Definition ScreenEvent.h:5