Files
UnrealEngineUWP/Engine/Source/Editor/EnvironmentQueryEditor/Private/STestFunctionWidget.h
Lukasz Furman c52e6ca0e2 moved EQS test scoring preview data to test class, so it doesn't depend on property changed notify for updates
#ue4 UE-11398

[CL 2472561 by Lukasz Furman in Main branch]
2015-03-09 12:24:47 -04:00

29 lines
789 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class UEnvQueryTest;
/**
* Debug console widget, designed to be summoned on top of a viewport or window
*/
class STestFunctionWidget : public SLeafWidget
{
public:
SLATE_BEGIN_ARGS(STestFunctionWidget)
{}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs);
virtual FVector2D ComputeDesiredSize(float) const override;
virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyClippingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
TWeakObjectPtr<UEnvQueryTest> DrawTestOb;
private:
FVector2D GetWidgetPosition(float X, float Y, const FGeometry& Geom) const;
};