15 : _TouchInterface(nullptr)
16 , _VirtualInput(nullptr)
18 , _AutoPositioning(true)
19 , _UseInputAction(false)
20 , _ParentOffset(ForceInitToZero)
23 SLATE_ARGUMENT(TSharedPtr<SDeprecatedTouchInterface>,
TouchInterface)
26 SLATE_ARGUMENT(SConstraintCanvas::FSlot*, Slot)
27 SLATE_ARGUMENT(
bool, AutoPositioning)
28 SLATE_ARGUMENT(
bool, UseInputAction)
29 SLATE_ARGUMENT(FVector2D, ParentOffset)
30 SLATE_ARGUMENT(ULocalPlayer*, LocalPlayer)
32 SLATE_ATTRIBUTE(
float, Opacity)
33 SLATE_ATTRIBUTE(
float, ScaleFactor)
34 SLATE_ATTRIBUTE(
bool, DrawDebug)
41 void Construct(const FArguments& InArgs);
44 virtual
bool OnPress(const FGeometry& MyGeometry, const FPointerEvent& Event) override;
45 virtual
void OnMove(const FGeometry& MyGeometry, const FPointerEvent& Event) override;
46 virtual
void OnRelease(const FGeometry& MyGeometry, const FPointerEvent& Event) override;
47 virtual
void OnTick(const FGeometry& MyGeometry, const
float InScaleFactor, const
double InCurrentTime, const
float InDeltaTime, const
bool InForceUpdate, const
bool OrientToLandscape) override;
49 virtual
void CalculateCorrectedValues(const FVector2D&
Center, const FVector2D Offset, const FGeometry& AllottedGeometry, const
float InScaleFactor) override;
50 virtual
void Recenter(const FVector2D DesiredPosition) override;
55 virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle,
bool bParentEnabled) const override;
56 virtual FVector2D ComputeDesiredSize(
float LayoutScaleMultiplier) const override;
65 bool LockThumbAtDesiredPosition(const FVector2D LockPosition, const
bool Clamp = true);
69 void UnlockThumb(const
bool bRecenter);
71 FVector2D GetThumbPosition(const
bool bNormalized) const;
79 FVector2D GetRawValue(
const bool bApplyModifiers =
false);
84 uint8 bSendOneMoreEvent:1;
85 uint8 bThumbIsLocked:1;
89 FVector2D LockedPosition;
90 FVector2D LastNormalizedOffset;
91 FVector2D LastNormalizedOffsetScaled;
92 FVector2D CorrectedThumbSize;
95 FVector2D ThumbPosition;
98 FVector2D ThumbOffset;