Files
UnrealEngine/Engine/Source/Editor/Persona/Private/AnimTimeline/SAnimTimelineOverlay.cpp
2025-05-18 13:04:45 +08:00

28 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimTimeline/SAnimTimelineOverlay.h"
#include "AnimTimeline/AnimTimeSliderController.h"
#include "HAL/PlatformCrt.h"
#include "Misc/Optional.h"
class FSlateRect;
class FWidgetStyle;
struct FGeometry;
int32 SAnimTimelineOverlay::OnPaint( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled ) const
{
FPaintViewAreaArgs PaintArgs;
PaintArgs.bDisplayTickLines = bDisplayTickLines.Get();
PaintArgs.bDisplayScrubPosition = bDisplayScrubPosition.Get();
if (PaintPlaybackRangeArgs.IsSet())
{
PaintArgs.PlaybackRangeArgs = PaintPlaybackRangeArgs.Get();
}
TimeSliderController->OnPaintViewArea( AllottedGeometry, MyCullingRect, OutDrawElements, LayerId, ShouldBeEnabled( bParentEnabled ), PaintArgs );
return SCompoundWidget::OnPaint( Args, AllottedGeometry, MyCullingRect, OutDrawElements, LayerId, InWidgetStyle, bParentEnabled );
}