struct

FMiriTimelineView

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
Miri
Header
#include "Miri/Widgets/CMiriTimelinePaint.h"
Namespace
Miri

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 MiriRect& rect, float frame) const

XToFrame

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

Clamp

C++
void Clamp()

ZoomAt

C++
void ZoomAt(const MiriRect& 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 MiriRect& rect, float frame)

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

Generated from Miri/Widgets/CMiriTimelinePaint.h via miri.json · Dec 5, 2026Version 1.1.0