class

MTrendChart

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

Properties

TypeNameDescription
MiriDelegate<void(double)>OnThresholdChangedA threshold dragged by its handle (the new value, in the series' unit). The host decides whether and where to persist it.

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetData
const FMiriTrendChartData&GetData
FMiriTrendChartLayoutLayout
doubleValueAtY
voidPaintRootThe root card (Surface1, BorderSubtle, radius 6).
voidPaintPlotGrid, axis labels, baseline, threshold, series and points.
voidPaintSeriesRow
boolBeginThresholdDragTrue when a press at absolute grabs the threshold handle.
voidDragThresholdTo
voidEndThresholdDrag
MiriVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
voidOnMouseCaptureLost
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MTrendChart) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetData

C++
void SetData(const FMiriTrendChartData& data)

GetData

C++
const FMiriTrendChartData& GetData() const

Layout

C++
static FMiriTrendChartLayout Layout(const MiriRect& plot, const FMiriTrendChartData& data)

ValueAtY

C++
static double ValueAtY(const FMiriTrendChartLayout& layout, float y)

PaintRoot

C++
static void PaintRoot(CMiriRenderer& renderer, const MiriRect& rect, float opacity)

The root card (Surface1, BorderSubtle, radius 6).

PaintPlot

C++
static void PaintPlot(CMiriRenderer& renderer, const FMiriTrendChartLayout& layout, const FMiriTrendChartData& data, float opacity)

Grid, axis labels, baseline, threshold, series and points.

PaintSeriesRow

C++
static void PaintSeriesRow(CMiriRenderer& renderer, const MiriRect& row, const std::string& title, const std::string& value, const std::vector<double>& sparkline, EMiriTrendStatus status, float opacity)

BeginThresholdDrag

C++
bool BeginThresholdDrag(const MiriVec2& absolute)

True when a press at absolute grabs the threshold handle.

DragThresholdTo

C++
void DragThresholdTo(float y)

EndThresholdDrag

C++
void EndThresholdDrag()

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/MTrendChart.h via miri.json · Dec 5, 2026Version 1.1.0