rigImGui 0.1.1
RigKit pack API - rigImGui
Loading...
Searching...
No Matches
rigkit::ChainEditor Class Reference

Generic re-orderable chain of collapsing-header rows. More...

#include <rigImGui/src/ChainEditor.h>

Public Member Functions

void setPayloadTag (const char *tag)
 Unique drag-drop scope per list (required when multiple editors share a panel).
void setSectionTitle (std::string title)
 Optional outer section (e.g.
void setFooterHint (std::string hint)
 Optional hint below the list.
void setAddTypes (std::vector< std::string > types)
 Add combo: labels[0] is placeholder; onAdd receives index >= 1 when Add is clicked.
void setDefaultOpen (bool open)
 When true (default), new step headers start expanded.
void setAddOnSelect (bool on)
 When true, selecting a type in the add combo fires onAdd immediately (no Add button).
void setSectionFooter (std::function< void()> fn)
 Optional widgets drawn inside the section CollapsingHeader (after add row + hint).

Detailed Description

Generic re-orderable chain of collapsing-header rows.

Domain-agnostic - the host supplies data and behaviour via callbacks. Typical use: prepare pipeline, image/draw filters, generators.

Member Function Documentation

◆ setAddOnSelect()

void rigkit::ChainEditor::setAddOnSelect ( bool on)
inline

When true, selecting a type in the add combo fires onAdd immediately (no Add button).

The combo resets to the placeholder afterwards.

◆ setSectionTitle()

void rigkit::ChainEditor::setSectionTitle ( std::string title)
inline

Optional outer section (e.g.

"Processors"). Empty = flat list only.


The documentation for this class was generated from the following file: