Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/SVisualLoggerTimelineBar.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

42 lines
1.7 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SLeafWidget.h"
#include "Developer/LogVisualizer/Private/SVisualLoggerTimeline.h"
class FPaintArgs;
class FSlateWindowElementList;
class FVisualLoggerTimeSliderController;
/**
* A list of filters currently applied to an asset view.
*/
class SVisualLoggerTimelineBar : public SLeafWidget
{
public:
SLATE_BEGIN_ARGS(SVisualLoggerTimelineBar){}
SLATE_END_ARGS()
/** Constructs this widget with InArgs */
virtual FReply OnMouseButtonDoubleClick(const FGeometry& InMyGeometry, const FPointerEvent& InMouseEvent) override;
virtual FReply OnMouseButtonDown(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent) override;
virtual FReply OnMouseButtonUp(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent) override;
virtual FReply OnMouseMove(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent) override;
virtual bool SupportsKeyboardFocus() const override { return false; }
virtual ~SVisualLoggerTimelineBar();
void Construct(const FArguments& InArgs, TSharedPtr<FVisualLoggerTimeSliderController> InTimeSliderController, TSharedPtr<class SLogVisualizerTimeline> TimelineOwner);
virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
FVector2D ComputeDesiredSize(float) const override;
protected:
TSharedPtr<class FVisualLoggerTimeSliderController> TimeSliderController;
TWeakPtr<class SLogVisualizerTimeline> TimelineOwner;
};