class
AGizmo
- Module
- Arc
- Header
#include "Arc/Widgets/AGizmo.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void(int32_t, bool)> | OnAxisClicked | |
ArcDelegate<void()> | OnCentreClicked |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_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. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
EHitTestResult | OnHitTest | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
EArcCursorType | OnCursorQuery | |
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) 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++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnHitTest
C++
EHitTestResult OnHitTest(const CGeometry& geo, const ArcVec2& 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++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AGizmo.h via arc.json · Nov 5, 2026Version 1.0.0