3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/CardinalDirection.h"
7#include "mc/client/gui/OrientationType.h"
8#include "mc/client/gui/controls/ComponentReceiveActionType.h"
9#include "mc/client/gui/controls/UIComponent.h"
24 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mSliderBoxControl;
25 ::ll::TypedStorage<4, 4, uint> mTrackScrollButtonId;
26 ::ll::TypedStorage<4, 4, uint> mSmallDecreaseButtonId;
27 ::ll::TypedStorage<4, 4, uint> mSmallIncreaseButtonId;
28 ::ll::TypedStorage<4, 4, uint> mSelectedButtonId;
29 ::ll::TypedStorage<4, 4, uint> mDeselectedButtonId;
30 ::ll::TypedStorage<1, 1, bool> mTrackActive;
31 ::ll::TypedStorage<1, 1, bool> mDragActive;
32 ::ll::TypedStorage<1, 1, ::ui::OrientationType> mSliderDirection;
33 ::ll::TypedStorage<1, 1, bool> mInverted;
34 ::ll::TypedStorage<4, 4, float> mPercentage;
35 ::ll::TypedStorage<4, 4, int> mCurrentStep;
36 ::ll::TypedStorage<4, 4, int> mNumberSteps;
37 ::ll::TypedStorage<4, 4, float> mSliderSpeed;
38 ::ll::TypedStorage<4, 8, ::std::optional<float>> mSliderTimeout;
39 ::ll::TypedStorage<8, 8, double> mLastRefreshTime;
42 bool mSelectOnHover : 1;
43 ::ll::TypedStorage<4, 4, uint> mSliderNameId;
44 ::ll::TypedStorage<8, 32, ::std::string> mSliderCollectionName;
45 ::ll::TypedStorage<1, 1, ::ui::CardinalDirection> mLastDirection;
46 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mBackground;
47 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mBackgroundHover;
48 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mProgress;
49 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mProgressHover;
50 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mDefaultControl;
51 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mHoverControl;
52 ::ll::TypedStorage<8, 32, ::std::string> mTTSSliderValue;
58 virtual ~SliderComponent() =
default;
60 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
62 virtual void reset() ;
64 virtual ::ComponentReceiveActionType receive(
65 ::VisualTree& visualTree,
66 ::ScreenInputContext& context,
67 ::UIAnimationController& animationController,
68 ::ScreenEvent
const& screenEvent
71 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
73 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
79 MCAPI
void _createSteps();
81 MCAPI
void _finalizeSliderBox();
83 MCAPI
void _sendSliderChangeEvent(::ScreenInputContext& context,
bool finalized);
85 MCAPI
void _setSelected(
bool selected);
87 MCAPI
void _setSliderValue(
float value);
89 MCAPI
void _updateSliderFromPosition(::glm::vec2 const& pointerPosition,
bool finalize);
91 MCAPI
void _updateSliderFromStepSize(
int stepSize);
93 MCAPI
bool getSliderSelected() const;
95 MCAPI
void setNumberSteps(
int steps);
97 MCAPI
void setSliderValue(
float value);
103 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
107 MCAPI ::ComponentReceiveActionType $receive(
108 ::VisualTree& visualTree,
109 ::ScreenInputContext& context,
110 ::UIAnimationController& animationController,
111 ::ScreenEvent const& screenEvent
114 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
116 MCFOLD ::std::
string const& $getTextToSpeechComponentValue() const;
Definition ScreenInputContext.h:5
Definition SliderComponent.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5