3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/UIComponent.h"
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;
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;
54 virtual ~ToggleComponent() ;
56 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
58 virtual void reset() ;
60 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
62 virtual ::ComponentReceiveActionType receive(
63 ::VisualTree& visualTree,
64 ::ScreenInputContext& context,
65 ::UIAnimationController& animationController,
66 ::ScreenEvent
const& screenEvent
69 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
75 MCAPI explicit ToggleComponent(::UIControl& owner);
78 _handleHoverEvent(::VisualTree& visualTree, ::ScreenInputContext& context, ::HoverScreenEventData const& hoverData);
80 MCAPI
void _setChecked(::ScreenInputContext& context,
bool checked,
bool toggledByButtonClick);
82 MCAPI
void _toggleOff(::VisualTree& visualTree, ::ScreenInputContext& context,
bool toggledByButtonClick);
84 MCAPI
void _toggleOn(::VisualTree& visualTree, ::ScreenInputContext& context,
bool toggledByButtonClick);
86 MCAPI
void _updateControlVisibility();
88 MCAPI
void _updateToggleGroupState(::VisualTree& visualTree,
bool toggleState);
90 MCAPI
void setChecked(
bool checked);
92 MCAPI
void setForcedGroupIndex(
int forcedIndex);
98 MCAPI
void* $ctor(::UIControl& owner);
110 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
114 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
116 MCAPI ::ComponentReceiveActionType $receive(
117 ::VisualTree& visualTree,
118 ::ScreenInputContext& context,
119 ::UIAnimationController& animationController,
120 ::ScreenEvent const& screenEvent
123 MCAPI ::std::
string const& $getTextToSpeechComponentValue() const;
Definition ScreenInputContext.h:5
Definition ToggleComponent.h:5
static MCAPI void ** $vftable()
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition HoverScreenEventData.h:5
Definition ScreenEvent.h:5