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

#include <STouchInterface.h>

Inheritance diagram for STouchInterface:
Collaboration diagram for STouchInterface:

Public Member Functions

 SLATE_BEGIN_ARGS (STouchInterface)
 STouchInterface ()
void Construct (const FArguments &InArgs)
virtual void Clean ()
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 Rebuild (const TObjectPtr< UTouchInterfaceLayout > Layout)
virtual void SortByPriority ()
virtual bool GetAllTouchInputUnderLocation (TArray< TSharedPtr< SLayoutComponent > > &OutComponents, const FVector2D AbsoluteLocation)

Protected Member Functions

virtual void GenerateLayout (const TObjectPtr< UTouchInterfaceLayout > Layout)=0
template<typename T>
TSharedRef< T > AddComponentOfType ()
FMargin GenerateOffsetMargin (const FVector2D &Size, const FVector2D &Position)
virtual void HandleDisplayMetricsChanged (const FDisplayMetrics &NewDisplayMetric)
virtual float CalculateScaleFactor (const FGeometry &Geometry) const

Protected Attributes

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

◆ STouchInterface()

BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION STouchInterface::STouchInterface ( )

Member Function Documentation

◆ AbsoluteToLocal()

FVector2D STouchInterface::AbsoluteToLocal ( const FVector2D AbsolutePosition) const

◆ AddComponentOfType()

template<typename T>
TSharedRef< T > STouchInterface::AddComponentOfType ( )
protected

◆ CalculateScaleFactor()

float STouchInterface::CalculateScaleFactor ( const FGeometry & Geometry) const
protectedvirtual

◆ Clean()

void STouchInterface::Clean ( )
virtual

Reimplemented in STouchInterfaceRuntime.

◆ Construct()

void STouchInterface::Construct ( const FArguments & InArgs)

Constructs this widget with InArgs

◆ DisableDebug()

void STouchInterface::DisableDebug ( )

◆ EnableDebug()

void STouchInterface::EnableDebug ( )

◆ GenerateLayout()

virtual void STouchInterface::GenerateLayout ( const TObjectPtr< UTouchInterfaceLayout > Layout)
protectedpure virtual

Implemented in STouchInterfaceRuntime.

◆ GenerateOffsetMargin()

FMargin STouchInterface::GenerateOffsetMargin ( const FVector2D & Size,
const FVector2D & Position )
protected

◆ GetAllTouchInputUnderLocation()

bool STouchInterface::GetAllTouchInputUnderLocation ( TArray< TSharedPtr< SLayoutComponent > > & OutComponents,
const FVector2D AbsoluteLocation )
virtual

◆ GetComponents()

TArray< TSharedPtr< SLayoutComponent > > STouchInterface::GetComponents ( )
inline

◆ GetGeometrySize()

FVector2D STouchInterface::GetGeometrySize ( ) const

◆ GetLayoutOpacity()

float STouchInterface::GetLayoutOpacity ( ) const

◆ HandleDisplayMetricsChanged()

void STouchInterface::HandleDisplayMetricsChanged ( const FDisplayMetrics & NewDisplayMetric)
protectedvirtual

Callback for handling display metrics changes.

◆ IsLayoutVisible()

bool STouchInterface::IsLayoutVisible ( ) const

◆ Rebuild()

void STouchInterface::Rebuild ( const TObjectPtr< UTouchInterfaceLayout > Layout)
virtual

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

Reimplemented in STouchInterfaceRuntime.

◆ SetCanvasRenderOpacity()

void STouchInterface::SetCanvasRenderOpacity ( const float Value)

◆ SetLayoutVisibility()

void STouchInterface::SetLayoutVisibility ( const bool bIsVisible) const

◆ SetRenderOnInvalidation()

void STouchInterface::SetRenderOnInvalidation ( const bool bValue)

◆ SetRenderOnPhase()

void STouchInterface::SetRenderOnPhase ( const bool bValue)

◆ SetRenderPhase()

void STouchInterface::SetRenderPhase ( const int32 Phase,
const int32 PhaseCount )

◆ SetRetainerMaterial()

void STouchInterface::SetRetainerMaterial ( TObjectPtr< UMaterialInterface > Value)

◆ SetRetainRender()

void STouchInterface::SetRetainRender ( const bool bValue)

◆ SetTextureParameterName()

void STouchInterface::SetTextureParameterName ( const FName Name)

◆ SLATE_BEGIN_ARGS()

STouchInterface::SLATE_BEGIN_ARGS ( STouchInterface )
inline

◆ SortByPriority()

void STouchInterface::SortByPriority ( )
virtual

Member Data Documentation

◆ ActiveFingerCount

int32 STouchInterface::ActiveFingerCount
protected

◆ bBlockInput

uint8 STouchInterface::bBlockInput
protected

◆ bBlockTouchEvent

uint8 STouchInterface::bBlockTouchEvent
protected

◆ bCaptureMouse

uint8 STouchInterface::bCaptureMouse
protected

◆ bDrawDebug

bool STouchInterface::bDrawDebug
protected

◆ bMoveEventAllowed

uint8 STouchInterface::bMoveEventAllowed
protected

◆ Children

TArray<TSharedPtr<SLayoutComponent> > STouchInterface::Children
protected

◆ CurrentGeometrySize

FVector2D STouchInterface::CurrentGeometrySize
protected

◆ DebugType

int32 STouchInterface::DebugType
protected

◆ MainCanvas

TSharedPtr<SConstraintCanvas> STouchInterface::MainCanvas
protected

◆ OnActiveStateChanged

FOnTouchInterfaceNotification STouchInterface::OnActiveStateChanged
protected

◆ OnLayoutGenerated

FOnTouchInterfaceEvent STouchInterface::OnLayoutGenerated
protected

◆ OnVisibilityChanged

FOnTouchInterfaceNotification STouchInterface::OnVisibilityChanged
protected

◆ PreviousGeometrySize

FVector2D STouchInterface::PreviousGeometrySize
protected

◆ PreviousScalingFactor

float STouchInterface::PreviousScalingFactor
protected

◆ RetainerWidget

TSharedPtr<SRetainerWidget> STouchInterface::RetainerWidget
protected

◆ TouchInputWidgets

TArray<TSharedPtr<SLayoutComponent> > STouchInterface::TouchInputWidgets
protected

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