class

MFrameChart

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

Properties

TypeNameDescription
MiriDelegate<void(int32_t)>OnFrameSelected
MiriDelegate<void(int32_t, int32_t)>OnRangeSelected

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetValues
const std::vector<float>&GetValues
voidSetBudget
floatGetBudget
voidSetSelection
int32_tGetSelection
int32_tGetRangeFirst
int32_tGetRangeLast
MiriRectPlotRectThe plot inside a chart rect (the inset the bars keep off the edge).
FMiriFrameChartGeometryFit
floatValueY
int32_tIndexAt
voidPaintBackgroundThe chart's TimelineBg body in its 1 px PanelBorder outline.
voidPaintBarOne frame's bar in its column (gap 1 between columns); over the budget it turns Warning.
voidPaintBudget
voidPaintSelectionA 1 px TextBright outline around columns first..last.
MiriRectBarRectOne frame's bar rectangle (the selected frame is outlined round it).
MiriVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
voidOnMouseCaptureLost
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MFrameChart) MIRI_ARG(float, Budget) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetValues

C++
void SetValues(const std::vector<float>& values)

GetValues

C++
const std::vector<float>& GetValues() const

SetBudget

C++
void SetBudget(float budget)

GetBudget

C++
float GetBudget() const

SetSelection

C++
void SetSelection(int32_t index)

GetSelection

C++
int32_t GetSelection() const

GetRangeFirst

C++
int32_t GetRangeFirst() const

GetRangeLast

C++
int32_t GetRangeLast() const

PlotRect

C++
static MiriRect PlotRect(const MiriRect& chart)

The plot inside a chart rect (the inset the bars keep off the edge).

Fit

C++
static FMiriFrameChartGeometry Fit(const MiriRect& plot, size_t count, float scale)

ValueY

C++
static float ValueY(const FMiriFrameChartGeometry& geometry, float value)

IndexAt

C++
static int32_t IndexAt(const FMiriFrameChartGeometry& geometry, float x)

PaintBackground

C++
static void PaintBackground(CMiriRenderer& renderer, const MiriRect& chart, float opacity)

The chart's TimelineBg body in its 1 px PanelBorder outline.

PaintBar

C++
static void PaintBar(CMiriRenderer& renderer, const FMiriFrameChartGeometry& geometry, size_t index, float value, float budget, float opacity)

One frame's bar in its column (gap 1 between columns); over the budget it turns Warning.

PaintBudget

C++
static void PaintBudget(CMiriRenderer& renderer, const FMiriFrameChartGeometry& geometry, float budget, float opacity)

PaintSelection

C++
static void PaintSelection(CMiriRenderer& renderer, const FMiriFrameChartGeometry& geometry, int32_t first, int32_t last, float opacity)

A 1 px TextBright outline around columns first..last.

BarRect

C++
static MiriRect BarRect(const FMiriFrameChartGeometry& geometry, size_t index, float value)

One frame's bar rectangle (the selected frame is outlined round it).

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MFrameChart.h via miri.json · Dec 5, 2026Version 1.1.0