class

CMiriTimelinePaint

Module
Miri
Header
#include "Miri/Widgets/CMiriTimelinePaint.h"
Namespace
Miri

Public functions

ReturnsNameDescription
floatRulerHeight
int32_tMajorStepThe first of steps whose span reaches the design's major tick spacing, else fallback.
int32_tMinorDivisionsMinor ticks between two majors so they land about the design's minor spacing apart (1 = none).
voidFrameTicksMajor and minor ticks for a frame view across rect, labelled in frames, seconds (frame / fps) or milliseconds.
voidLinearTicksTicks for a continuous axis (ms, seconds) mapped linearly onto [x0, x1]: a 1/2/5 step that spaces majors at the design spacing.
std::stringFormatLabel
voidRulerThe ruler band: ticks rising from its bottom edge, labels in CodeSmall beside each major, the bottom border.
voidTickGridA 1 px vertical line under each major tick across the track area.
voidPlayheadThe playhead: a 2 px AccentColor line over the whole area and its frame label centred on it inside the ruler band.
voidDiamondA filled diamond of bounding width extent centred on c.
voidRowSeparatorA track row's bottom separator.
voidNotifyA notify mark: the diamond on the row's centre line, its label beside it in Caption.
voidStateBarA notify state window: an 18 px Selection bar with its name.
voidSyncMarkerA sync marker diamond in Success.
voidWaveformBarsWaveform bars (2 px wide, 1 px apart) from peaks in [0, 1], centred on the lane's centre line; peaks are resampled to the lane width.

Function details

RulerHeight

C++
static float RulerHeight()

MajorStep

C++
static int32_t MajorStep(const int32_t* steps, size_t count, int32_t fallback, float frameWidth)

The first of steps whose span reaches the design's major tick spacing, else fallback.

MinorDivisions

C++
static int32_t MinorDivisions(float majorPx)

Minor ticks between two majors so they land about the design's minor spacing apart (1 = none).

FrameTicks

C++
static void FrameTicks(const FMiriTimelineView& view, const MiriRect& rect, int32_t majorStep, EMiriTimelineLabel label, float fps, std::vector<FMiriRulerTick>& out)

Major and minor ticks for a frame view across rect, labelled in frames, seconds (frame / fps) or milliseconds.

LinearTicks

C++
static void LinearTicks(double from, double to, float x0, float x1, EMiriTimelineLabel label, std::vector<FMiriRulerTick>& out)

Ticks for a continuous axis (ms, seconds) mapped linearly onto [x0, x1]: a 1/2/5 step that spaces majors at the design spacing.

FormatLabel

C++
static std::string FormatLabel(double value, EMiriTimelineLabel label, double step)

Ruler

C++
static void Ruler(CMiriRenderer& renderer, const MiriRect& ruler, const std::vector<FMiriRulerTick>& ticks, float opacity = 1.0f)

The ruler band: ticks rising from its bottom edge, labels in CodeSmall beside each major, the bottom border.

TickGrid

C++
static void TickGrid(CMiriRenderer& renderer, const MiriRect& tracks, const std::vector<FMiriRulerTick>& ticks, float opacity = 1.0f)

A 1 px vertical line under each major tick across the track area.

Playhead

C++
static void Playhead(CMiriRenderer& renderer, const MiriRect& area, float rulerHeight, float x, const std::string& label, float opacity = 1.0f)

The playhead: a 2 px AccentColor line over the whole area and its frame label centred on it inside the ruler band.

Diamond

C++
static void Diamond(CMiriRenderer& renderer, const MiriVec2& c, float extent, const MiriColor& color)

A filled diamond of bounding width extent centred on c.

RowSeparator

C++
static void RowSeparator(CMiriRenderer& renderer, const MiriRect& row, float opacity = 1.0f)

A track row's bottom separator.

Notify

C++
static void Notify(CMiriRenderer& renderer, const MiriRect& row, float x, const std::string& label, bool selected, float opacity = 1.0f)

A notify mark: the diamond on the row's centre line, its label beside it in Caption.

StateBar

C++
static void StateBar(CMiriRenderer& renderer, const MiriRect& row, float x0, float x1, const std::string& label, bool selected, float opacity = 1.0f)

A notify state window: an 18 px Selection bar with its name.

SyncMarker

C++
static void SyncMarker(CMiriRenderer& renderer, const MiriRect& row, float x, float opacity = 1.0f)

A sync marker diamond in Success.

WaveformBars

C++
static void WaveformBars(CMiriRenderer& renderer, const MiriRect& lane, const float* peaks, size_t count, const MiriColor& color)

Waveform bars (2 px wide, 1 px apart) from peaks in [0, 1], centred on the lane's centre line; peaks are resampled to the lane width.

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