KROYSDOCS
HomeWhat's newv0.1.0
C/C++ SDK / C ABI · Viewport (editor, 2.1; capability viewport-tools) / KroysViewportToolDesc

KroysViewportToolDesc

A viewport tool (viewport->RegisterTool): a button on the viewport's plugin toolbar.

Kindstruct
Headerkroys/kroys_plugin.h
Members6
DECLARATION

Declaration

Declared in kroys/kroys_plugin.h.

kroys_plugin.h
typedef struct KroysViewportToolDesc { ... } KroysViewportToolDesc;
REFERENCE

Members

Fields
#uint32_t structSize;

Size of this struct as the writer compiled it (sizeof); the reader uses it to detect members appended by later minor versions.

field
#int32_t alwaysDraw;

draw also while another tool is active

field
#const char* id;

Local id; the tool id is "<plugin id>.<id>".

field
#const char* label;

Toolbar label.

field
#const char* icon;

Lucide icon name.

field
#const char* tooltip;

Toolbar tooltip.

field
Members
uint32_t structSize;
int32_t alwaysDraw;
const char* id;
const char* label;
const char* icon;
const char* tooltip;

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.