Files
UnrealEngineUWP/Engine/Source/Editor/MovieSceneTools/Private/Channels/SCurveEditorEventChannelView.h
aurel cordonnier 50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00

28 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Views/SInteractiveCurveEditorView.h"
class MOVIESCENETOOLS_API SCurveEditorEventChannelView : public SInteractiveCurveEditorView
{
public:
void Construct(const FArguments& InArgs, TWeakPtr<FCurveEditor> InCurveEditor);
virtual void GetGridLinesY(TSharedRef<const FCurveEditor> CurveEditor, TArray<float>& MajorGridLines, TArray<float>& MinorGridLines, TArray<FText>* MajorGridLabels) const override;
private:
//~ SWidget Interface
virtual void Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override;
virtual FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override;
//~ SInteractiveCurveEditorView interface
virtual void PaintView(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 BaseLayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
virtual bool IsValueSnapEnabled() const override { return false; }
void DrawLabels(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 BaseLayerId, ESlateDrawEffect DrawEffects) const;
static float TrackHeight;
};