|
rigImGui 0.1.1
RigKit pack API - rigImGui
|
#include <string>#include <vector>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. | |
| 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.
| label | Left-side caption ("Preset" / "Snippet"). |
| name | Current stem; updated on Load and on confirmed Save. |
| hint | Optional disabled line under the row. |