MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UI::CustomConfigModalSettings Struct Reference

Settings required for UI::saveCustomConfigModal More...

#include <MRUIStyle.h>

Public Member Functions

MRVIEWER_API std::string popupName () const
 returns accumulated name of the popup
 

Public Attributes

std::string configName
 Name of desired config type.
 
std::string imGuiIdKey
 Optional string added at the end of popup name to have unique names.
 
std::filesystem::path configDirectory
 Directory where to save config.
 
std::string * inputName { nullptr }
 String used by input.
 
bool inputNameDialog = true
 If false, inputName is used (if inputName is nullptr this option is not used)
 
bool triggerSave = false
 if true - opens modal in this frame, or saves if (!inputNameDialog && inputName)
 
bool warnExisting = true
 If true - warns user before overriding existing file, otherwise override without warning.
 
std::function< bool(const std::string &name)> onSave
 Callback that is called when save is requested->returns true if file saved successfully (to close modal)
 

Detailed Description

Settings required for UI::saveCustomConfigModal


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