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
| Type | Name | Description |
|---|---|---|
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
| Returns | Name | Description |
|---|---|---|
void | SetView | |
void | SetDragIndex | |
void | SetHoveredSample | Pins a hovered sample for display (the gallery's state rows). |
const FArcBlendAxes& | GetAxes | |
const std::vector<FArcBlendSample>& | GetSamples | |
float | GetCursorX | |
float | GetCursorY | |
float | Normalized | |
float | Denormalized | |
ArcRect | PadRect | The parameter area inside the widget rect. |
ArcVec2 | ScreenOf | |
bool | ParamAt | The parameter value under a screen point; false well outside the pad. |
int32_t | HitSample | The sample within the hit radius of a screen point, or -1. |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
CReply | OnMouseButtonUp | |
void | OnMouseCaptureLost | |
void | OnMouseEnter | |
void | OnMouseLeave | |
EArcCursorType | OnCursorQuery |
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() constGetSamples
C++
const std::vector<FArcBlendSample>& GetSamples() constGetCursorX
C++
float GetCursorX() constGetCursorY
C++
float GetCursorY() constNormalized
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 = 0The parameter area inside the widget rect.
ScreenOf
C++
virtual ArcVec2 ScreenOf(const ArcRect& pad, float x, float y) const = 0ParamAt
C++
virtual bool ParamAt(const ArcRect& rect, const ArcVec2& screen, float& outX, float& outY) const = 0The parameter value under a screen point; false well outside the pad.
HitSample
C++
int32_t HitSample(const ArcRect& rect, const ArcVec2& screen) constThe sample within the hit radius of a screen point, or -1.
OnMouseButtonDown
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() overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnCursorQuery
C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideGenerated from Arc/Widgets/ABlendPad.h via arc.json · Nov 5, 2026Version 1.0.0