class
MGizmo
- Module
- Miri
- Header
#include "Miri/Widgets/MGizmo.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void(int32_t, bool)> | OnAxisClicked | |
MiriDelegate<void()> | OnCentreClicked |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetAxes | |
int32_t | EndpointAt | The endpoint under a point: axis * 2 for the positive dot, + 1 for the negative one, 6 for the centre, -1 for none. |
MiriVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
EHitTestResult | OnHitTest | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
EMiriCursorType | OnCursorQuery | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MGizmo) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)SetAxes
C++
void SetAxes(const MiriVec2& x, const MiriVec2& y, const MiriVec2& z, float depthX, float depthY, float depthZ)EndpointAt
C++
int32_t EndpointAt(const MiriRect& rect, const MiriVec2& position) constThe endpoint under a point: axis * 2 for the positive dot, + 1 for the negative one, 6 for the centre, -1 for none.
ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideOnHitTest
C++
EHitTestResult OnHitTest(const CGeometry& geo, const MiriVec2& absolutePosition) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnCursorQuery
C++
EMiriCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MGizmo.h via miri.json · Dec 5, 2026Version 1.1.0