class
MTimeline
- Module
- Miri
- Header
#include "Miri/Widgets/MTimeline.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void(float)> | OnScrub |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetTracks | |
const std::vector<FMiriTimelineTrack>& | GetTracks | |
void | SetDurationFrames | |
void | SetCurrentFrame | |
float | GetCurrentFrame | |
void | SetPlaying | While playing the view scrolls to keep the playhead visible. |
FMiriTimelineView& | View | |
const FMiriTimelineView& | View | |
MiriRect | TrackArea | The track area (right of the label column, below the ruler) for a widget of the given rect. |
float | RowHeight | |
MiriVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
CReply | OnMouseWheel | |
void | OnMouseCaptureLost | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MTimeline) MIRI_ARG(float, DurationFrames) MIRI_ARG(float, Fps) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)SetTracks
C++
void SetTracks(std::vector<FMiriTimelineTrack> tracks)GetTracks
C++
const std::vector<FMiriTimelineTrack>& GetTracks() constSetDurationFrames
C++
void SetDurationFrames(float frames)SetCurrentFrame
C++
void SetCurrentFrame(float frame)GetCurrentFrame
C++
float GetCurrentFrame() constSetPlaying
C++
void SetPlaying(bool playing)While playing the view scrolls to keep the playhead visible.
View
C++
FMiriTimelineView& View()View
C++
const FMiriTimelineView& View() constTrackArea
C++
static MiriRect TrackArea(const MiriRect& rect)The track area (right of the label column, below the ruler) for a widget of the given rect.
RowHeight
C++
static float RowHeight(EMiriTimelineTrackKind kind)ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseWheel
C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MTimeline.h via miri.json · Dec 5, 2026Version 1.1.0