class
ATrendChart
- Module
- Arc
- Header
#include "Arc/Widgets/ATrendChart.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void(double)> | OnThresholdChanged | A threshold dragged by its handle (the new value, in the series' unit). The host decides whether and where to persist it. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetData | |
const FArcTrendChartData& | GetData | |
FArcTrendChartLayout | Layout | |
double | ValueAtY | |
void | PaintRoot | The root card (Surface1, BorderSubtle, radius 6). |
void | PaintPlot | Grid, axis labels, baseline, threshold, series and points. |
void | PaintSeriesRow | |
bool | BeginThresholdDrag | True when a press at absolute grabs the threshold handle. |
void | DragThresholdTo | |
void | EndThresholdDrag | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
CReply | OnMouseButtonUp | |
void | OnMouseCaptureLost | |
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() constLayout
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 overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ATrendChart.h via arc.json · Nov 5, 2026Version 1.0.0