FTimeToPixel

Utility for converting time units to slate pixel units and vice versa

Windows
MacOS
Linux

References

Module

MovieSceneTools

Header

/Engine/Source/Editor/MovieSceneTools/Public/CommonMovieSceneTools.h

Include

#include "CommonMovieSceneTools.h"

Syntax

struct FTimeToPixel

Remarks

Utility for converting time units to slate pixel units and vice versa

Constructors

Name Description

Public function

FTimeToPixel

(
    const FGeometry& AllottedGeometry,
    const TRange< double >& InLocalVie...,
    const FFrameRate& InTickResolution
)

Functions

Name Description

Public function Const

float

 

FrameToPixel

(
    const FFrameTime& Time
)

Converts a frame time to a pixel point relative to the geometry of a widget (passed into the constructor)

Public function Const

FFrameRate

 

GetTickResolution()

Retrieve the tick resolution of the current sequence

Public function Const

FFrameTime

 

PixelDeltaToFrame

(
    float PixelDelta
)

Converts a pixel delta value to delta frame time

Public function Const

FFrameTime

 

PixelToFrame

(
    float PixelX
)

Converts a pixel value to frame time

Public function Const

double

 

PixelToSeconds

(
    float PixelX
)

Converts a pixel value to time

Public function Const

float

 

SecondsToPixel

(
    double Time
)

Converts a time to a pixel point relative to the geometry of a widget (passed into the constructor)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss