LEAP Documentation 40220
Documentation for the LEAP project
AutoPanner.h
Go to the documentation of this file.
1// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UMG.h"
6
7#include "AutoPanner.generated.h"
8
9class SAutoPanner;
10
11UCLASS()
12class UAutoPanner : public UContentWidget
13{
14 GENERATED_UCLASS_BODY()
15
16public:
18 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Auto Panner")
19 FVector2D PaddingScale;
20
21public:
22 UFUNCTION(BlueprintCallable, Category = "Auto Panner")
23 FVector2D GetNormalizedCursorPosition() const;
24
25
26public:
27
28 // UWidget interface
29 virtual void SynchronizeProperties() override;
30 // End of UWidget interface
31
32 // UVisual interface
33 virtual void ReleaseSlateResources(bool bReleaseChildren) override;
34 // End of UVisual interface
35
36 // Begin UObject interface
37 virtual void PostLoad() override;
38 // End of UObject interface
39
40protected:
41 // UPanelWidget
42 virtual UClass* GetSlotClass() const override;
43 virtual void OnSlotAdded(UPanelSlot* InSlot) override;
44 virtual void OnSlotRemoved(UPanelSlot* InSlot) override;
45 // End UPanelWidget
46
47protected:
48 // UWidget interface
49 virtual TSharedRef<SWidget> RebuildWidget() override;
50 // End of UWidget interface
51
52private:
53 TSharedPtr<SAutoPanner> MyAutoPanner;
54
55};
Definition: SAutoPanner.h:8
FVector2D GetNormalizedCursorPosition() const
Definition: SAutoPanner.cpp:53
Definition: AutoPanner.h:13