class
AWaveformTrack
- Module
- Arc
- Header
#include "Arc/Widgets/AWaveformTrack.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void(float)> | OnSeek | |
ArcDelegate<void(float, float)> | OnLoopChanged |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetChannels | Peaks in [0, 1], one vector per channel, spread over the duration. |
void | SetDuration | |
void | SetPlayhead | |
float | GetPlayhead | |
void | SetPlaying | |
void | SetLoop | |
bool | HasLoop | |
float | GetLoopStart | |
float | GetLoopEnd | |
void | SetView | The visible window in seconds; the overview always shows it all. |
float | GetViewStart | |
float | GetViewEnd | |
float | SecondsToX | |
float | XToSeconds | |
ArcRect | LaneArea | Where the lanes, ruler and overview sit inside a widget rect. |
ArcRect | OverviewRect | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
CReply | OnMouseWheel | |
void | OnMouseCaptureLost | |
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() constSetPlaying
C++
void SetPlaying(bool playing)SetLoop
C++
void SetLoop(bool enabled, float start, float end)HasLoop
C++
bool HasLoop() constGetLoopStart
C++
float GetLoopStart() constGetLoopEnd
C++
float GetLoopEnd() constSetView
C++
void SetView(float start, float end)The visible window in seconds; the overview always shows it all.
GetViewStart
C++
float GetViewStart() constGetViewEnd
C++
float GetViewEnd() constSecondsToX
C++
float SecondsToX(const ArcRect& lanes, float seconds) constXToSeconds
C++
float XToSeconds(const ArcRect& lanes, float x) constLaneArea
C++
ArcRect LaneArea(const ArcRect& rect) constWhere the lanes, ruler and overview sit inside a widget rect.
OverviewRect
C++
ArcRect OverviewRect(const ArcRect& rect) constComputeDesiredSize
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) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseWheel
C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AWaveformTrack.h via arc.json · Nov 5, 2026Version 1.0.0