![]() |
Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
|
#include <STouchInterfaceRuntime.h>


Public Member Functions | |
| SLATE_BEGIN_ARGS (STouchInterfaceRuntime) | |
| STouchInterfaceRuntime () | |
| void | Construct (const FArguments &InArgs, TObjectPtr< UTouchInterfaceLayout > Layout) |
| virtual void | Clean () override |
| virtual bool | SupportsKeyboardFocus () const override |
| virtual FVector2D | ComputeDesiredSize (float) const override |
| virtual FReply | OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent) override |
| virtual FReply | OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
| virtual FReply | OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent) override |
| virtual FReply | OnMouseMove (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
| virtual FReply | OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
| virtual FReply | OnTouchStarted (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent) override |
| virtual FReply | OnTouchMoved (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent) override |
| virtual FReply | OnTouchEnded (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent) override |
| virtual FReply | OnTouchFirstMove (const FGeometry &MyGeometry, const FPointerEvent &TouchEvent) override |
| virtual FReply | OnTouchForceChanged (const FGeometry &MyGeometry, const FPointerEvent &TouchEvent) override |
| virtual void | Tick (const FGeometry &AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override |
| virtual int32 | OnPaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override |
| UWorld * | GetWorldContext () const |
| TArray< UTouchInterfaceListener * > & | GetListeners () |
| ULocalPlayer * | GetLocalPlayer () const |
| void | SetListenerList (TArray< UTouchInterfaceListener * > NewListenerList) |
| bool | IsActive () const |
| UVirtualShapeDrawer * | GetShapeDrawerInstance () const |
| UVirtualShapeDrawer * | AddShapeDrawer (TSubclassOf< UVirtualShapeDrawer > ShapeDrawerClass) |
| void | RemoveShapeDrawer () |
| void | ShowShapeDrawer () const |
| void | HideShapeDrawer () const |
| void | ResetComponentLocation () |
| void | BlockInput (const bool bBlock) |
| virtual void | AddOrRemoveComponent () |
| virtual void | Rebuild (const TObjectPtr< UTouchInterfaceLayout > Layout) override |
| Public Member Functions inherited from STouchInterface | |
| SLATE_BEGIN_ARGS (STouchInterface) | |
| STouchInterface () | |
| void | Construct (const FArguments &InArgs) |
| TArray< TSharedPtr< SLayoutComponent > > | GetComponents () |
| float | GetLayoutOpacity () const |
| FVector2D | GetGeometrySize () const |
| void | SetLayoutVisibility (const bool bIsVisible) const |
| void | SetRetainRender (const bool bValue) |
| void | SetRenderOnPhase (const bool bValue) |
| void | SetRenderOnInvalidation (const bool bValue) |
| void | SetRenderPhase (const int32 Phase, const int32 PhaseCount) |
| void | SetRetainerMaterial (TObjectPtr< UMaterialInterface > Value) |
| void | SetTextureParameterName (const FName Name) |
| void | SetCanvasRenderOpacity (const float Value) |
| void | EnableDebug () |
| void | DisableDebug () |
| bool | IsLayoutVisible () const |
| FVector2D | AbsoluteToLocal (const FVector2D AbsolutePosition) const |
| virtual void | SortByPriority () |
| virtual bool | GetAllTouchInputUnderLocation (TArray< TSharedPtr< SLayoutComponent > > &OutComponents, const FVector2D AbsoluteLocation) |
Protected Member Functions | |
| EActiveTimerReturnType | ActivateTouchInterface (double InCurrentTime, float InDeltaTime) |
| virtual EActiveTimerReturnType | BeginGenerateLayout (double InCurrentTime, float InDeltaTime) |
| virtual void | GenerateLayout (TObjectPtr< UTouchInterfaceLayout > Layout) override |
| Protected Member Functions inherited from STouchInterface | |
| template<typename T> | |
| TSharedRef< T > | AddComponentOfType () |
| FMargin | GenerateOffsetMargin (const FVector2D &Size, const FVector2D &Position) |
| virtual void | HandleDisplayMetricsChanged (const FDisplayMetrics &NewDisplayMetric) |
Protected Attributes | |
| TObjectPtr< UTouchInterfaceLayout > | CurrentLayout |
| const UTouchInterfaceSettings * | Settings |
| FOnLayoutTouch | OnTouchBegan |
| FOnLayoutTouch | OnTouchMove |
| FOnLayoutTouch | OnTouchEnd |
| Protected Attributes inherited from STouchInterface | |
| TSharedPtr< SRetainerWidget > | RetainerWidget |
| TSharedPtr< SConstraintCanvas > | MainCanvas |
| TArray< TSharedPtr< SLayoutComponent > > | Children |
| FOnTouchInterfaceNotification | OnActiveStateChanged |
| FOnTouchInterfaceNotification | OnVisibilityChanged |
| FOnTouchInterfaceEvent | OnLayoutGenerated |
| TArray< TSharedPtr< SLayoutComponent > > | TouchInputWidgets |
| float | PreviousScalingFactor |
| FVector2D | PreviousGeometrySize |
| FVector2D | CurrentGeometrySize |
| uint8 | bBlockTouchEvent:1 |
| uint8 | bCaptureMouse:1 |
| uint8 | bBlockInput:1 |
| uint8 | bMoveEventAllowed:1 |
| int32 | ActiveFingerCount |
| bool | bDrawDebug |
| int32 | DebugType |
| BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION STouchInterfaceRuntime::STouchInterfaceRuntime | ( | ) |
|
protected |
|
virtual |
| UVirtualShapeDrawer * STouchInterfaceRuntime::AddShapeDrawer | ( | TSubclassOf< UVirtualShapeDrawer > | ShapeDrawerClass | ) |
|
protectedvirtual |
|
inline |
|
overridevirtual |
Reimplemented from STouchInterface.
|
inlineoverridevirtual |
| void STouchInterfaceRuntime::Construct | ( | const FArguments & | InArgs, |
| TObjectPtr< UTouchInterfaceLayout > | Layout ) |
Constructs this widget with InArgs
|
overrideprotectedvirtual |
Implements STouchInterface.
|
inline |
|
inline |
|
inline |
| UWorld * STouchInterfaceRuntime::GetWorldContext | ( | ) | const |
Get world context object
| void STouchInterfaceRuntime::HideShapeDrawer | ( | ) | const |
|
inline |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Force the reconstruction of layout Do not call this every frame!
Reimplemented from STouchInterface.
| void STouchInterfaceRuntime::RemoveShapeDrawer | ( | ) |
| void STouchInterfaceRuntime::ResetComponentLocation | ( | ) |
| void STouchInterfaceRuntime::SetListenerList | ( | TArray< UTouchInterfaceListener * > | NewListenerList | ) |
| void STouchInterfaceRuntime::ShowShapeDrawer | ( | ) | const |
|
inline |
|
inlineoverridevirtual |
|
overridevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |