class
AFrameChart
- Module
- Arc
- Header
#include "Arc/Widgets/AFrameChart.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void(int32_t)> | OnFrameSelected | |
ArcDelegate<void(int32_t, int32_t)> | OnRangeSelected |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetValues | |
const std::vector<float>& | GetValues | |
void | SetBudget | |
float | GetBudget | |
void | SetSelection | |
int32_t | GetSelection | |
int32_t | GetRangeFirst | |
int32_t | GetRangeLast | |
ArcRect | PlotRect | The plot inside a chart rect (the inset the bars keep off the edge). |
FArcFrameChartGeometry | Fit | |
float | ValueY | |
int32_t | IndexAt | |
void | PaintBackground | The chart's TimelineBg body in its 1 px PanelBorder outline. |
void | PaintBar | One frame's bar in its column (gap 1 between columns); over the budget it turns Warning. |
void | PaintBudget | |
void | PaintSelection | A 1 px TextBright outline around columns first..last. |
ArcRect | BarRect | One frame's bar rectangle (the selected frame is outlined round it). |
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(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() constSetBudget
C++
void SetBudget(float budget)GetBudget
C++
float GetBudget() constSetSelection
C++
void SetSelection(int32_t index)GetSelection
C++
int32_t GetSelection() constGetRangeFirst
C++
int32_t GetRangeFirst() constGetRangeLast
C++
int32_t GetRangeLast() constPlotRect
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 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/AFrameChart.h via arc.json · Nov 5, 2026Version 1.0.0