class

ABlendSpaceWidgetBase

Input shared by the blend pad and the blend strip: a press on a sample drags it, a double-click on empty space adds one, any other press drags the preview cursor.

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

Properties

TypeNameDescription
std::function<void(float, float)>OnCursorChanged
std::function<void(int32_t)>OnSampleDragBegin
std::function<void(int32_t, float, float)>OnSampleMoved
std::function<void()>OnSampleDragEnd
std::function<void(float, float)>OnAddSample

Public functions

ReturnsNameDescription
voidSetView
voidSetDragIndex
voidSetHoveredSamplePins a hovered sample for display (the gallery's state rows).
const FArcBlendAxes&GetAxes
const std::vector<FArcBlendSample>&GetSamples
floatGetCursorX
floatGetCursorY
floatNormalized
floatDenormalized
ArcRectPadRectThe parameter area inside the widget rect.
ArcVec2ScreenOf
boolParamAtThe parameter value under a screen point; false well outside the pad.
int32_tHitSampleThe sample within the hit radius of a screen point, or -1.
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
voidOnMouseCaptureLost
voidOnMouseEnter
voidOnMouseLeave
EArcCursorTypeOnCursorQuery

Function details

SetView

C++
void SetView(const FArcBlendAxes& axes, std::vector<FArcBlendSample> samples, float cursorX, float cursorY)

SetDragIndex

C++
void SetDragIndex(int32_t index)

SetHoveredSample

C++
void SetHoveredSample(int32_t index)

Pins a hovered sample for display (the gallery's state rows).

GetAxes

C++
const FArcBlendAxes& GetAxes() const

GetSamples

C++
const std::vector<FArcBlendSample>& GetSamples() const

GetCursorX

C++
float GetCursorX() const

GetCursorY

C++
float GetCursorY() const

Normalized

C++
static float Normalized(float value, float minValue, float maxValue)

Denormalized

C++
static float Denormalized(float t, float minValue, float maxValue)

PadRect

C++
virtual ArcRect PadRect(const ArcRect& rect) const = 0

The parameter area inside the widget rect.

ScreenOf

C++
virtual ArcVec2 ScreenOf(const ArcRect& pad, float x, float y) const = 0

ParamAt

C++
virtual bool ParamAt(const ArcRect& rect, const ArcVec2& screen, float& outX, float& outY) const = 0

The parameter value under a screen point; false well outside the pad.

HitSample

C++
int32_t HitSample(const ArcRect& rect, const ArcVec2& screen) const

The sample within the hit radius of a screen point, or -1.

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

OnMouseEnter

C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

OnCursorQuery

C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const override
Generated from Arc/Widgets/ABlendPad.h via arc.json · Nov 5, 2026Version 1.0.0