class

AFrameChart

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

Properties

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetValues
const std::vector<float>&GetValues
voidSetBudget
floatGetBudget
voidSetSelection
int32_tGetSelection
int32_tGetRangeFirst
int32_tGetRangeLast
ArcRectPlotRectThe plot inside a chart rect (the inset the bars keep off the edge).
FArcFrameChartGeometryFit
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.
ArcRectBarRectOne frame's bar rectangle (the selected frame is outlined round it).
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
voidOnMouseCaptureLost
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AFrameChart) ARC_ARG(float, Budget) ARC_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 ArcRect PlotRect(const ArcRect& chart)

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

Fit

C++
static FArcFrameChartGeometry Fit(const ArcRect& plot, size_t count, float scale)

ValueY

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

IndexAt

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

PaintBackground

C++
static void PaintBackground(CArcUIRenderer& renderer, const ArcRect& chart, float opacity)

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

PaintBar

C++
static void PaintBar(CArcUIRenderer& renderer, const FArcFrameChartGeometry& 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(CArcUIRenderer& renderer, const FArcFrameChartGeometry& geometry, float budget, float opacity)

PaintSelection

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

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

BarRect

C++
static ArcRect BarRect(const FArcFrameChartGeometry& geometry, size_t index, float value)

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

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/AFrameChart.h via arc.json · Nov 5, 2026Version 1.0.0