rigImGui 0.1.1
RigKit pack API - rigImGui
Loading...
Searching...
No Matches
Handle2D.h File Reference
#include "core/IMui.h"
#include "ecs/MEcs.h"
Include dependency graph for Handle2D.h:

Functions

bool rigkit::drawSelectedHandle2D (MEcs &ecs, float originX, float originY, float scale, IMui::GizmoOp op=IMui::GizmoOp::Select, UndoStack *undo=nullptr)
 Draw/manipulate a 2D bbox for the first selected geometry or text entity.

Function Documentation

◆ drawSelectedHandle2D()

bool rigkit::drawSelectedHandle2D ( MEcs & ecs,
float originX,
float originY,
float scale,
IMui::GizmoOp op = IMui::GizmoOp::Select,
UndoStack * undo = nullptr )

Draw/manipulate a 2D bbox for the first selected geometry or text entity.

origin / scale map content units to screen (View2D ox/oy + zoomAbs). Draw on the background list so handles stay under menus.

Returns
true if a handle was drawn.