Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
Loading...
Searching...
No Matches
STouchInterfaceRuntime Class Reference

#include <STouchInterfaceRuntime.h>

Inheritance diagram for STouchInterfaceRuntime:
Collaboration diagram for STouchInterfaceRuntime:

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
UVirtualShapeDrawerGetShapeDrawerInstance () const
UVirtualShapeDrawerAddShapeDrawer (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< UTouchInterfaceLayoutCurrentLayout
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

Constructor & Destructor Documentation

◆ STouchInterfaceRuntime()

BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION STouchInterfaceRuntime::STouchInterfaceRuntime ( )

Member Function Documentation

◆ ActivateTouchInterface()

EActiveTimerReturnType STouchInterfaceRuntime::ActivateTouchInterface ( double InCurrentTime,
float InDeltaTime )
protected

◆ AddOrRemoveComponent()

void STouchInterfaceRuntime::AddOrRemoveComponent ( )
virtual

◆ AddShapeDrawer()

UVirtualShapeDrawer * STouchInterfaceRuntime::AddShapeDrawer ( TSubclassOf< UVirtualShapeDrawer > ShapeDrawerClass)

◆ BeginGenerateLayout()

EActiveTimerReturnType STouchInterfaceRuntime::BeginGenerateLayout ( double InCurrentTime,
float InDeltaTime )
protectedvirtual

◆ BlockInput()

void STouchInterfaceRuntime::BlockInput ( const bool bBlock)
inline

◆ Clean()

void STouchInterfaceRuntime::Clean ( )
overridevirtual

Reimplemented from STouchInterface.

◆ ComputeDesiredSize()

virtual FVector2D STouchInterfaceRuntime::ComputeDesiredSize ( float ) const
inlineoverridevirtual

◆ Construct()

void STouchInterfaceRuntime::Construct ( const FArguments & InArgs,
TObjectPtr< UTouchInterfaceLayout > Layout )

Constructs this widget with InArgs

◆ GenerateLayout()

void STouchInterfaceRuntime::GenerateLayout ( TObjectPtr< UTouchInterfaceLayout > Layout)
overrideprotectedvirtual

Implements STouchInterface.

◆ GetListeners()

TArray< UTouchInterfaceListener * > & STouchInterfaceRuntime::GetListeners ( )
inline

◆ GetLocalPlayer()

ULocalPlayer * STouchInterfaceRuntime::GetLocalPlayer ( ) const
inline

◆ GetShapeDrawerInstance()

UVirtualShapeDrawer * STouchInterfaceRuntime::GetShapeDrawerInstance ( ) const
inline

◆ GetWorldContext()

UWorld * STouchInterfaceRuntime::GetWorldContext ( ) const

Get world context object

◆ HideShapeDrawer()

void STouchInterfaceRuntime::HideShapeDrawer ( ) const

◆ IsActive()

bool STouchInterfaceRuntime::IsActive ( ) const
inline

◆ OnKeyDown()

FReply STouchInterfaceRuntime::OnKeyDown ( const FGeometry & MyGeometry,
const FKeyEvent & InKeyEvent )
overridevirtual

◆ OnMouseButtonDoubleClick()

FReply STouchInterfaceRuntime::OnMouseButtonDoubleClick ( const FGeometry & InMyGeometry,
const FPointerEvent & InMouseEvent )
overridevirtual

◆ OnMouseButtonDown()

FReply STouchInterfaceRuntime::OnMouseButtonDown ( const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent )
overridevirtual

◆ OnMouseButtonUp()

FReply STouchInterfaceRuntime::OnMouseButtonUp ( const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent )
overridevirtual

◆ OnMouseMove()

FReply STouchInterfaceRuntime::OnMouseMove ( const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent )
overridevirtual

◆ OnPaint()

int32 STouchInterfaceRuntime::OnPaint ( const FPaintArgs & Args,
const FGeometry & AllottedGeometry,
const FSlateRect & MyCullingRect,
FSlateWindowElementList & OutDrawElements,
int32 LayerId,
const FWidgetStyle & InWidgetStyle,
bool bParentEnabled ) const
overridevirtual

◆ OnTouchEnded()

FReply STouchInterfaceRuntime::OnTouchEnded ( const FGeometry & MyGeometry,
const FPointerEvent & InTouchEvent )
overridevirtual

◆ OnTouchFirstMove()

FReply STouchInterfaceRuntime::OnTouchFirstMove ( const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent )
overridevirtual

◆ OnTouchForceChanged()

FReply STouchInterfaceRuntime::OnTouchForceChanged ( const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent )
overridevirtual

◆ OnTouchMoved()

FReply STouchInterfaceRuntime::OnTouchMoved ( const FGeometry & MyGeometry,
const FPointerEvent & InTouchEvent )
overridevirtual

◆ OnTouchStarted()

FReply STouchInterfaceRuntime::OnTouchStarted ( const FGeometry & MyGeometry,
const FPointerEvent & InTouchEvent )
overridevirtual

◆ Rebuild()

void STouchInterfaceRuntime::Rebuild ( const TObjectPtr< UTouchInterfaceLayout > Layout)
overridevirtual

Force the reconstruction of layout Do not call this every frame!

Reimplemented from STouchInterface.

◆ RemoveShapeDrawer()

void STouchInterfaceRuntime::RemoveShapeDrawer ( )

◆ ResetComponentLocation()

void STouchInterfaceRuntime::ResetComponentLocation ( )

◆ SetListenerList()

void STouchInterfaceRuntime::SetListenerList ( TArray< UTouchInterfaceListener * > NewListenerList)

◆ ShowShapeDrawer()

void STouchInterfaceRuntime::ShowShapeDrawer ( ) const

◆ SLATE_BEGIN_ARGS()

STouchInterfaceRuntime::SLATE_BEGIN_ARGS ( STouchInterfaceRuntime )
inline

◆ SupportsKeyboardFocus()

virtual bool STouchInterfaceRuntime::SupportsKeyboardFocus ( ) const
inlineoverridevirtual

◆ Tick()

void STouchInterfaceRuntime::Tick ( const FGeometry & AllottedGeometry,
const double InCurrentTime,
const float InDeltaTime )
overridevirtual

Member Data Documentation

◆ CurrentLayout

TObjectPtr<UTouchInterfaceLayout> STouchInterfaceRuntime::CurrentLayout
protected

◆ OnTouchBegan

FOnLayoutTouch STouchInterfaceRuntime::OnTouchBegan
protected

◆ OnTouchEnd

FOnLayoutTouch STouchInterfaceRuntime::OnTouchEnd
protected

◆ OnTouchMove

FOnLayoutTouch STouchInterfaceRuntime::OnTouchMove
protected

◆ Settings

const UTouchInterfaceSettings* STouchInterfaceRuntime::Settings
protected

The documentation for this class was generated from the following files:
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Public/TouchInterface/Slate/STouchInterfaceRuntime.h
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Private/TouchInterface/Slate/STouchInterfaceRuntime.cpp