3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/UIComponent.h"
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedStateControl;
26 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedStateControl;
27 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedHoverStateControl;
28 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedHoverStateControl;
29 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedStateControl;
30 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mCheckedLockedHoverStateControl;
31 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedStateControl;
32 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mUncheckedLockedHoverStateControl;
35 bool mRadioToggleGroup : 1;
36 bool mDefaultState : 1;
37 bool mEnableDirectionalToggling : 1;
38 ::ll::TypedStorage<8, 32, ::std::string> mGridCollectionName;
39 ::ll::TypedStorage<4, 4, uint> mToggleNameId;
40 ::ll::TypedStorage<4, 4, uint> mToggleOnButtonId;
41 ::ll::TypedStorage<4, 4, uint> mToggleOffButtonId;
42 ::ll::TypedStorage<4, 4, int> mForcedIndex;
43 ::ll::TypedStorage<4, 4, int> mDefaultGroupSelectedIndex;
44 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOn;
45 ::ll::TypedStorage<8, 32, ::std::string> mTTSValueOff;
46 ::ll::TypedStorage<8, 32, ::std::string> mDescriptiveText;
56 virtual ~ToggleComponent() ;
58 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
60 virtual void reset() ;
62 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
64 virtual ::ComponentReceiveActionType receive(
65 ::VisualTree& visualTree,
66 ::ScreenInputContext& context,
67 ::UIAnimationController& screenEvent,
71 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
77 MCAPI explicit ToggleComponent(::UIControl& owner);
79 MCAPI
void _handleButtonEvent(
80 ::VisualTree& visualTree,
81 ::ScreenInputContext& context,
82 ::ButtonScreenEventData const& buttonData
85 MCAPI
void _handleControllerDirectionEvent(
86 ::VisualTree& visualTree,
87 ::ScreenInputContext& context,
88 ::ControllerDirectionEventData const& controllerData
92 _handleHoverEvent(::VisualTree& visualTree, ::ScreenInputContext& context, ::HoverScreenEventData const& hoverData);
94 MCAPI
void _setChecked(::ScreenInputContext& context,
bool checked,
bool toggledByButtonClick);
96 MCFOLD
void _setVisible(::std::weak_ptr<::UIControl>& control,
bool visible);
98 MCAPI
void _updateControlVisibility();
100 MCAPI
void _updateToggleGroupState(::VisualTree& visualTree,
bool toggleState);
102 MCFOLD ::std::weak_ptr<::UIControl> getCheckedHoverStateControl() const;
104 MCAPI ::std::weak_ptr<::UIControl> getCheckedLockedHoverStateControl() const;
106 MCAPI ::std::weak_ptr<::UIControl> getCheckedLockedStateControl() const;
108 MCFOLD ::std::weak_ptr<::UIControl> getCheckedStateControl() const;
110 MCAPI
bool getEnableDirectionalToggling() const;
112 MCAPI
int getGroupIndex() const;
114 MCFOLD uint const& getToggleGroup() const;
116 MCFOLD ::std::weak_ptr<::UIControl> getUncheckedHoverStateControl() const;
118 MCAPI ::std::weak_ptr<::UIControl> getUncheckedLockedHoverStateControl() const;
120 MCAPI ::std::weak_ptr<::UIControl> getUncheckedLockedStateControl() const;
122 MCFOLD ::std::weak_ptr<::UIControl> getUncheckedStateControl() const;
124 MCAPI
bool isChecked() const;
126 MCAPI
bool isRadioToggleGroup() const;
128 MCAPI
void resetDefaultState();
130 MCAPI
void resetHoverState();
132 MCAPI
void setChecked(
bool checked);
134 MCAPI
void setForcedGroupIndex(
int forcedIndex);
140 MCAPI
void* $ctor(::UIControl& owner);
152 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
156 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
158 MCAPI ::ComponentReceiveActionType $receive(
159 ::VisualTree& visualTree,
160 ::ScreenInputContext& context,
161 ::UIAnimationController& screenEvent,
165 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 ControllerDirectionEventData.h:5
Definition HoverScreenEventData.h:5
Definition ScreenEvent.h:5