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 ;
Definition ScreenInputContext.h:5
Definition SliderComponent.h:5
MCAPI::std::string const & $getTextToSpeechComponentValue() const
MCAPI void setSliderValue(float value)
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
MCAPI void _setSelected(bool selected)
MCAPI void _updateSliderFromPosition(::glm::vec2 const &pointerPosition, bool finalize)
MCAPI::ComponentReceiveActionType $receive(::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCAPI void _createSteps()
MCAPI void _updateSliderFromStepSize(int stepSize)
MCAPI void setNumberSteps(int steps)
MCAPI bool getSliderSelected() const
MCAPI void _finalizeSliderBox()
MCAPI void _sendSliderChangeEvent(::ScreenInputContext &context, bool finalized)
MCAPI void _setSliderValue(float value)
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5