rigImGui 0.1.1
RigKit pack API - rigImGui
Loading...
Searching...
No Matches
PresetBar.h File Reference
#include <string>
#include <vector>
Include dependency graph for PresetBar.h:

Functions

Result rigkit::PresetBar::draw (const char *strId, const char *label, const std::vector< std::string > &names, std::string &name, bool dirty, const char *hint=nullptr)
 Names dropdown + Save + Delete for named disk presets.

Function Documentation

◆ draw()

Result rigkit::PresetBar::draw ( const char * strId,
const char * label,
const std::vector< std::string > & names,
std::string & name,
bool dirty,
const char * hint = nullptr )

Names dropdown + Save + Delete for named disk presets.

Combo pick is Load. Save opens a name popup (pre-filled with name); confirm sets Action::Save. Delete uses the current name when that stem is in names. Dirty marks the combo preview with *. Same row everywhere - callers only do I/O. No inline name field.

Parameters
labelLeft-side caption ("Preset" / "Snippet").
nameCurrent stem; updated on Load and on confirmed Save.
hintOptional disabled line under the row.