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 MCNAPI explicit ToggleComponent(::
UIControl& owner);
Definition ScreenInputContext.h:5
Definition ToggleComponent.h:5
MCAPI::ComponentReceiveActionType $receive(::ScreenEvent const &screenEvent)
MCAPI void setChecked(bool checked)
MCAPI void _setChecked(::ScreenInputContext &context, bool checked, bool toggledByButtonClick)
MCAPI void _updateToggleGroupState(::VisualTree &visualTree, bool toggleState)
MCAPI void _updateControlVisibility()
MCAPI void * $ctor(::UIControl &owner)
MCAPI::std::string const & $getTextToSpeechComponentValue() const
MCAPI void setForcedGroupIndex(int forcedIndex)
MCAPI void resetDefaultState()
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5