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 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

Member Function Documentation

◆ popupName()

MRVIEWER_API std::string MR::UI::CustomConfigModalSettings::popupName ( ) const

returns accumulated name of the popup

Member Data Documentation

◆ configDirectory

std::filesystem::path MR::UI::CustomConfigModalSettings::configDirectory

Directory where to save config.

◆ configName

std::string MR::UI::CustomConfigModalSettings::configName

Name of desired config type.

◆ imGuiIdKey

std::string MR::UI::CustomConfigModalSettings::imGuiIdKey

Optional string added at the end of popup name to have unique names.

◆ inputName

std::string* MR::UI::CustomConfigModalSettings::inputName { nullptr }

String used by input.

◆ onSave

std::function<bool( const std::string& name )> MR::UI::CustomConfigModalSettings::onSave

Callback that is called when save is requested->returns true if file saved successfully (to close modal)

◆ warnExisting

bool MR::UI::CustomConfigModalSettings::warnExisting = true

If true - warns user before overriding existing file, otherwise override without warning.


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