class

ATrendChart

Module
Arc
Header
#include "Arc/Widgets/ATrendChart.h"
Namespace
Arcf

Properties

TypeNameDescription
ArcDelegate<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
ARC_WIDGET_ARGS
voidSetData
const FArcTrendChartData&GetData
FArcTrendChartLayoutLayout
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
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
voidOnMouseCaptureLost
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ATrendChart) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetData

C++
void SetData(const FArcTrendChartData& data)

GetData

C++
const FArcTrendChartData& GetData() const

Layout

C++
static FArcTrendChartLayout Layout(const ArcRect& plot, const FArcTrendChartData& data)

ValueAtY

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

PaintRoot

C++
static void PaintRoot(CArcUIRenderer& renderer, const ArcRect& rect, float opacity)

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

PaintPlot

C++
static void PaintPlot(CArcUIRenderer& renderer, const FArcTrendChartLayout& layout, const FArcTrendChartData& data, float opacity)

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

PaintSeriesRow

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

BeginThresholdDrag

C++
bool BeginThresholdDrag(const ArcVec2& absolute)

True when a press at absolute grabs the threshold handle.

DragThresholdTo

C++
void DragThresholdTo(float y)

EndThresholdDrag

C++
void EndThresholdDrag()

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& 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 Arc/Widgets/ATrendChart.h via arc.json · Nov 5, 2026Version 1.0.0