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


Public Member Functions | |
| SLATE_BEGIN_ARGS (SLayoutComponent) | |
| SLayoutComponent () | |
| virtual | ~SLayoutComponent () |
| void | Construct (const FArguments &InArgs) |
| void | Destruct () |
| EActiveTimerReturnType | PostGeometryInitialization (double InCurrentTime, float InDeltaTime) |
| void | ConstructWidget () const |
| FVector2D | GetTopLeftPosition () const |
| FVector2D | GetSize () const |
| TSharedPtr< STouchInterfaceRuntime > | GetRuntimeTouchInterfaceWidget () const |
| int32 | GetInputPriority () const |
| void | SetDecorators (TArray< FDecorator > NewDecorators) |
| void | AddDecorator (TSharedPtr< SWidget > Decorator) |
| void | InsertDecorator (TSharedPtr< SWidget > Decorator, int32 Index) |
| void | RemoveDecorator (TSharedPtr< SWidget > DecoratorToRemove) |
| void | ShowDecorator (TSharedPtr< SWidget > DecoratorWidget) |
| void | HideDecorator (TSharedPtr< SWidget > DecoratorWidget) |
| virtual bool | ProcessPressEvent (const FGeometry &LayoutGeometry, const FPointerEvent &PointerEvent) |
| virtual void | ProcessMoveEvent (const FGeometry &LayoutGeometry, const FPointerEvent &PointerEvent) |
| virtual void | ProcessReleaseEvent (const FGeometry &LayoutGeometry, const FPointerEvent &PointerEvent) |
| virtual FVector2D | ComputeDesiredSize (float LayoutScaleMultiplier) const 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 |
| virtual void | PaintDebug (const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle) const |
| virtual void | UpdateScaleFactor (const FGeometry &LayoutGeometry, const float &ScaleFactor) |
| virtual FVector2D | Recenter (const FVector2D AbsoluteLocation) |
| virtual void | ResetPosition () |
| void | Animate () |
| void | FullRebuildWidgetDecorator () |
| virtual void | SetAnchor (const FAnchors NewAnchors) |
| virtual void | SetSize (const FVector2D NewSize) |
| virtual void | SetAnchorOffset (const FVector4f Offset) |
| virtual void | SetAlignment (const FVector2D NewAlignment) |
| virtual void | SetInteractionType (const EInteractionType NewType) |
| virtual void | SetInteractionSize (const float Value) |
| virtual void | SetInputPriority (const int32 Value) |
| virtual void | SetPositionFromTopLeft (const FVector2D NewPosition) |
| void | SetDrawDebugEnabled (const bool bEnable) |
| void | SetDebugType (const int32 InDebugType) |
| virtual bool | IsUnderLocation (const FVector2D AbsoluteLocation) |
| virtual bool | CanInteract () const |
| virtual bool | IsPressed () const |
| virtual void | BlockInput (const bool bBlock) |
| FVector2D | ScreenSpaceToLayoutSpace (const FVector2D Location) |
| FVector2D | LocalSpaceToNormalized (const FVector2D Location) const |
| SConstraintCanvas::FSlot * | CreateSlot (const FAnchors Anchor, const FVector2D Alignment) |
| void | AddChild (TSharedPtr< SLayoutComponent > Component) |
| void | AddChild (TSharedPtr< SLayoutComponent > Component, const FAnchors Anchor, const FVector2D Alignment) |
| void | RemoveChild (TSharedPtr< SLayoutComponent > Component) |
Public Attributes | |
| FOnTouchDelegate | OnPress |
| FOnTouchDelegate | OnMove |
| FOnTouchDelegate | OnRelease |
| FOnTickDelegate | OnTick |
Protected Member Functions | |
| void | SetSlotPosition (const FVector2D &SlotPosition) const |
| void | SetSlotSize (const FVector2D SlotSize) const |
Protected Attributes | |
| FVector2D | ComponentLocation |
| FVector2D | LayoutTopLeftPosition |
| FVector2D | PivotOffset |
| FVector2D | RecenterOffset |
| FVector2D | Size |
| FVector2D | ScaledSize |
| int32 | InputPriority |
Base class for component in layout. It only used for hit detection (geometry) and layer drawing It also used as container for UUserWidget
| BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION SLayoutComponent::SLayoutComponent | ( | ) |
|
virtual |
| void SLayoutComponent::AddChild | ( | TSharedPtr< SLayoutComponent > | Component | ) |
| void SLayoutComponent::AddChild | ( | TSharedPtr< SLayoutComponent > | Component, |
| const FAnchors | Anchor, | ||
| const FVector2D | Alignment ) |
| void SLayoutComponent::AddDecorator | ( | TSharedPtr< SWidget > | Decorator | ) |
| void SLayoutComponent::Animate | ( | ) |
|
inlinevirtual |
|
virtual |
|
inlineoverridevirtual |
| void SLayoutComponent::Construct | ( | const FArguments & | InArgs | ) |
| void SLayoutComponent::ConstructWidget | ( | ) | const |
| SConstraintCanvas::FSlot * SLayoutComponent::CreateSlot | ( | const FAnchors | Anchor, |
| const FVector2D | Alignment ) |
| void SLayoutComponent::Destruct | ( | ) |
| void SLayoutComponent::FullRebuildWidgetDecorator | ( | ) |
|
inline |
| TSharedPtr< STouchInterfaceRuntime > SLayoutComponent::GetRuntimeTouchInterfaceWidget | ( | ) | const |
|
inline |
|
inline |
| void SLayoutComponent::HideDecorator | ( | TSharedPtr< SWidget > | DecoratorWidget | ) |
| void SLayoutComponent::InsertDecorator | ( | TSharedPtr< SWidget > | Decorator, |
| int32 | Index ) |
|
inlinevirtual |
|
virtual |
| FVector2D SLayoutComponent::LocalSpaceToNormalized | ( | const FVector2D | Location | ) | const |
|
overridevirtual |
|
virtual |
| EActiveTimerReturnType SLayoutComponent::PostGeometryInitialization | ( | double | InCurrentTime, |
| float | InDeltaTime ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void SLayoutComponent::RemoveChild | ( | TSharedPtr< SLayoutComponent > | Component | ) |
| void SLayoutComponent::RemoveDecorator | ( | TSharedPtr< SWidget > | DecoratorToRemove | ) |
|
virtual |
| FVector2D SLayoutComponent::ScreenSpaceToLayoutSpace | ( | const FVector2D | Location | ) |
|
virtual |
|
virtual |
|
virtual |
|
inline |
| void SLayoutComponent::SetDecorators | ( | TArray< FDecorator > | NewDecorators | ) |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
virtual |
Set position of widget in layout space (calculate position from top left corner). UpdateCenter = object position has changed, otherwise, new layout position is temporary
|
virtual |
|
protected |
|
protected |
| void SLayoutComponent::ShowDecorator | ( | TSharedPtr< SWidget > | DecoratorWidget | ) |
|
inline |
|
overridevirtual |
|
virtual |
|
protected |
Position of component in local space (take into account anchor and alignment) DO NOT CHANGE MANUALLY
|
protected |
|
protected |
| FOnTouchDelegate SLayoutComponent::OnMove |
| FOnTouchDelegate SLayoutComponent::OnPress |
| FOnTouchDelegate SLayoutComponent::OnRelease |
| FOnTickDelegate SLayoutComponent::OnTick |
|
protected |
|
protected |
|
protected |
|
protected |