class

AGizmo

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

Properties

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

Public functions

ReturnsNameDescription
ARC_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.
ArcVec2ComputeDesiredSize
int32_tOnPaint
EHitTestResultOnHitTest
CReplyOnMouseButtonDown
CReplyOnMouseMove
voidOnMouseLeave
EArcCursorTypeOnCursorQuery
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AGizmo) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetAxes

C++
void SetAxes(const ArcVec2& x, const ArcVec2& y, const ArcVec2& z, float depthX, float depthY, float depthZ)

EndpointAt

C++
int32_t EndpointAt(const ArcRect& rect, const ArcVec2& 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++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

OnHitTest

C++
EHitTestResult OnHitTest(const CGeometry& geo, const ArcVec2& 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++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AGizmo.h via arc.json · Nov 5, 2026Version 1.0.0