class
MBlendSpaceWidgetBase
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
- Miri
- Header
#include "Miri/Widgets/MBlendPad.h"- Namespace
Miri
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 FMiriBlendAxes& | GetAxes | |
const std::vector<FMiriBlendSample>& | GetSamples | |
float | GetCursorX | |
float | GetCursorY | |
float | Normalized | |
float | Denormalized | |
MiriRect | PadRect | The parameter area inside the widget rect. |
MiriVec2 | 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 | |
EMiriCursorType | OnCursorQuery |
Function details
SetView
C++
void SetView(const FMiriBlendAxes& axes, std::vector<FMiriBlendSample> 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 FMiriBlendAxes& GetAxes() constGetSamples
C++
const std::vector<FMiriBlendSample>& 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 MiriRect PadRect(const MiriRect& rect) const = 0The parameter area inside the widget rect.
ScreenOf
C++
virtual MiriVec2 ScreenOf(const MiriRect& pad, float x, float y) const = 0ParamAt
C++
virtual bool ParamAt(const MiriRect& rect, const MiriVec2& screen, float& outX, float& outY) const = 0The parameter value under a screen point; false well outside the pad.
HitSample
C++
int32_t HitSample(const MiriRect& rect, const MiriVec2& 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++
EMiriCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideGenerated from Miri/Widgets/MBlendPad.h via miri.json · Dec 5, 2026Version 1.1.0