class

MGizmo

Module
Miri
Header
#include "Miri/Widgets/MGizmo.h"
Namespace
Miri

Properties

TypeNameDescription
MiriDelegate<void(int32_t, bool)>OnAxisClicked
MiriDelegate<void()>OnCentreClicked

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetAxes
int32_tEndpointAtThe endpoint under a point: axis * 2 for the positive dot, + 1 for the negative one, 6 for the centre, -1 for none.
MiriVec2ComputeDesiredSize
int32_tOnPaint
EHitTestResultOnHitTest
CReplyOnMouseButtonDown
CReplyOnMouseMove
voidOnMouseLeave
EMiriCursorTypeOnCursorQuery
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) const

The 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 override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

OnHitTest

C++
EHitTestResult OnHitTest(const CGeometry& geo, const MiriVec2& absolutePosition) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

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

OnCursorQuery

C++
EMiriCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MGizmo.h via miri.json · Dec 5, 2026Version 1.1.0