Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
Loading...
Searching...
No Matches
TouchInterfaceLayoutWidget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/CanvasPanel.h"
7#include "TouchInterfaceLayoutWidget.generated.h"
8
9class SCanvasPanel;
14UCLASS()
15class TOUCHINTERFACE_API UTouchInterfaceLayoutWidget : public UUserWidget
16{
17 GENERATED_BODY()
18
19 UTouchInterfaceLayoutWidget(const FObjectInitializer& ObjectInitializer);
20
21 //Begin UWidget
22 virtual void SynchronizeProperties() override;
23
24 //UFUNCTION(Category="Touch Interface Layout", BlueprintCallable)
25 //UCanvasPanelSlot* AddChildToLayout(UWidget* Content);
26
27 virtual void ReleaseSlateResources(bool bReleaseChildren) override;
28
29 void RegisterNewInput();
30 void UnregisterInput();
31
32 virtual FReply NativeOnTouchStarted(const FGeometry& InGeometry, const FPointerEvent& InGestureEvent) override;
33 virtual FReply NativeOnTouchMoved(const FGeometry& InGeometry, const FPointerEvent& InGestureEvent) override;
34 virtual FReply NativeOnTouchEnded(const FGeometry& InGeometry, const FPointerEvent& InGestureEvent) override;
35
36#if WITH_EDITOR
37 virtual const FText GetPaletteCategory() override;
38#endif
39
40protected:
41 //virtual TSharedRef<SWidget> RebuildWidget() override;
42
43 TSharedPtr<STouchInterfaceRuntime> MyLayout;
44
45 UPROPERTY(Category="Touch Interface Layout", BlueprintReadOnly, meta=(BindWidget))
46 TObjectPtr<UCanvasPanel> CanvasRef;
47};
Definition STouchInterfaceRuntime.h:30
BlueprintReadOnly
Definition TouchInterfaceLayoutWidget.h:45
TSharedPtr< STouchInterfaceRuntime > MyLayout
Definition TouchInterfaceLayoutWidget.h:43
Category
Definition TouchInterfaceLayoutWidget.h:45
meta
Definition TouchInterfaceLayoutWidget.h:45