struct

FArcTimelineView

A frame timeline's time to pixel mapping: px per frame and the frame at the left edge. The animation, montage and sequencer timelines each kept their own copy of these few lines, and the copies had started to drift.

Module
Arc
Header
#include "Arc/Widgets/CArcTimelinePaint.h"
Namespace
Arcf

Properties

TypeNameDescription
floatFrameWidthDefault 6.5f.
floatViewStartDefault 0.0f.
floatMinFrameWidthDefault 0.5f.
floatMaxFrameWidthDefault 60.0f.
floatMinViewStartDefault -60.0f.

Public functions

ReturnsNameDescription
floatFrameToX
floatXToFrame
voidClamp
voidZoomAtOne wheel notch: ×1.2 in or out, keeping the frame under x in place.
voidPanFromMiddle-drag pan from where the drag started.
voidFollowScrolls just enough to keep frame inside the rect: the view follows the playhead during playback.

Function details

FrameToX

C++
float FrameToX(const ArcRect& rect, float frame) const

XToFrame

C++
float XToFrame(const ArcRect& rect, float x) const

Clamp

C++
void Clamp()

ZoomAt

C++
void ZoomAt(const ArcRect& rect, float x, float wheelDelta)

One wheel notch: ×1.2 in or out, keeping the frame under x in place.

PanFrom

C++
void PanFrom(float startViewStart, float startX, float x)

Middle-drag pan from where the drag started.

Follow

C++
void Follow(const ArcRect& rect, float frame)

Scrolls just enough to keep frame inside the rect: the view follows the playhead during playback.

Generated from Arc/Widgets/CArcTimelinePaint.h via arc.json · Nov 5, 2026Version 1.0.0