class

AWaveformTrack

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

Properties

TypeNameDescription
ArcDelegate<void(float)>OnSeek
ArcDelegate<void(float, float)>OnLoopChanged

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetChannelsPeaks in [0, 1], one vector per channel, spread over the duration.
voidSetDuration
voidSetPlayhead
floatGetPlayhead
voidSetPlaying
voidSetLoop
boolHasLoop
floatGetLoopStart
floatGetLoopEnd
voidSetViewThe visible window in seconds; the overview always shows it all.
floatGetViewStart
floatGetViewEnd
floatSecondsToX
floatXToSeconds
ArcRectLaneAreaWhere the lanes, ruler and overview sit inside a widget rect.
ArcRectOverviewRect
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
CReplyOnMouseWheel
voidOnMouseCaptureLost
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AWaveformTrack) ARC_ARG(bool, ShowOverview) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetChannels

C++
void SetChannels(std::vector<std::string> names, std::vector<std::vector<float>> peaks)

Peaks in [0, 1], one vector per channel, spread over the duration.

SetDuration

C++
void SetDuration(float seconds)

SetPlayhead

C++
void SetPlayhead(float seconds)

GetPlayhead

C++
float GetPlayhead() const

SetPlaying

C++
void SetPlaying(bool playing)

SetLoop

C++
void SetLoop(bool enabled, float start, float end)

HasLoop

C++
bool HasLoop() const

GetLoopStart

C++
float GetLoopStart() const

GetLoopEnd

C++
float GetLoopEnd() const

SetView

C++
void SetView(float start, float end)

The visible window in seconds; the overview always shows it all.

GetViewStart

C++
float GetViewStart() const

GetViewEnd

C++
float GetViewEnd() const

SecondsToX

C++
float SecondsToX(const ArcRect& lanes, float seconds) const

XToSeconds

C++
float XToSeconds(const ArcRect& lanes, float x) const

LaneArea

C++
ArcRect LaneArea(const ArcRect& rect) const

Where the lanes, ruler and overview sit inside a widget rect.

OverviewRect

C++
ArcRect OverviewRect(const ArcRect& rect) const

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

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseWheel

C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) override

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AWaveformTrack.h via arc.json · Nov 5, 2026Version 1.0.0