2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-06-10 16:45:28 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2015-03-09 12:24:47 -04:00
|
|
|
class UEnvQueryTest;
|
|
|
|
|
|
2014-06-10 16:45:28 -04:00
|
|
|
/**
|
|
|
|
|
* 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);
|
2015-01-14 19:04:45 -05:00
|
|
|
virtual FVector2D ComputeDesiredSize(float) const override;
|
2014-07-23 08:23:21 -04:00
|
|
|
virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyClippingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
|
2014-06-10 16:45:28 -04:00
|
|
|
|
2015-03-09 12:24:47 -04:00
|
|
|
TWeakObjectPtr<UEnvQueryTest> DrawTestOb;
|
2014-06-10 16:45:28 -04:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
FVector2D GetWidgetPosition(float X, float Y, const FGeometry& Geom) const;
|
|
|
|
|
};
|