3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/UIComponent.h"
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;
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;
53 virtual ~ToggleComponent() =
default;
55 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
57 virtual void reset() ;
59 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
61 virtual ::ComponentReceiveActionType receive(
62 ::VisualTree& visualTree,
63 ::ScreenInputContext& context,
64 ::UIAnimationController& animationController,
65 ::ScreenEvent
const& screenEvent
68 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
74 MCAPI explicit ToggleComponent(::UIControl& owner);
76 MCAPI
void _setChecked(::ScreenInputContext& context,
bool checked,
bool toggledByButtonClick);
78 MCAPI
void _updateControlVisibility();
80 MCAPI
void _updateToggleGroupState(::VisualTree& visualTree,
bool toggleState);
82 MCAPI
void resetDefaultState();
84 MCAPI
void setChecked(
bool checked);
86 MCAPI
void setForcedGroupIndex(
int forcedIndex);
92 MCAPI
void* $ctor(::UIControl& owner);
98 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
102 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
104 MCAPI ::ComponentReceiveActionType $receive(
105 ::VisualTree& visualTree,
106 ::ScreenInputContext& context,
107 ::UIAnimationController& animationController,
108 ::ScreenEvent const& screenEvent
111 MCAPI ::std::
string const& $getTextToSpeechComponentValue() const;
Definition ScreenInputContext.h:5
Definition ToggleComponent.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5